Order blocks from structure breaks, and how long such zones have held on your chart
Order Block Power marks bull and bear order blocks on your TradingView chart from closed-candle structure breaks and paints only the live zones nearest to price, three above and three below by default.
- Bull and bear order blocks from closes beyond confirmed swings, decided on the closed candle
- Only the live zones nearest to price are painted, with up to 60 per side tracked
- Hold curves and the median life of past blocks, measured on the loaded history
- A panel with the nearest support and resistance, their range and distance from price
- The full Pine Script source code. Paste it into the Pine Editor, save, and add “Order Block Power [AlgoFXStore]” to your chart.
- A 13-page PDF manual with installation, every setting and how to read the chart. One-time €47.

See Order Block Power on a real chart
Press play; use the full-screen button to see every detail.
Most order block charts show every box and say nothing about which ones matter
Order blocks are easy to draw and hard to rank. Many tools mark every block that ever formed, and after a few days the chart is a stack of boxes, most of them already broken or far from price. You end up picking the zone that looks right, and the same chart read by two traders gives two different levels.
The second gap is time. A zone that formed ten candles ago and one that has held for three hundred candles look the same on the chart, yet they are not the same thing. Without some measure of how long zones on your market usually last, you cannot tell a fresh level from an old survivor, or whether bull zones tend to hold longer than bear zones on this symbol.
Order Block Power answers both with fixed rules. A block is created by a closed-candle break of a confirmed swing and ends when a candle closes through its far side, and only the live zones nearest to price are painted. The hold curves count, on the history loaded on your chart, what share of past blocks survived to each age. That is a measurement of the past, not a forecast.
Everything Order Block Power draws on your chart
Read from the shipped Pine Script code.
- Order block zones on price: the live blocks nearest to price, 3 per side by default (Zones shown per side, up to 8), each painted as five stepped translucent layers with a rounded left end on the order block candle and a bright 2-px core line through its middle, ending 7 bars right of the last bar; bull blocks green (support, below price), bear blocks red (resistance, above price)
- Numbered circles on each painted zone and, just right of the zone, the share of past blocks that lasted as long as this one has (e.g. '63%', or '≤12% (180 bars)' once it is older than the curve horizon) - input 'Link zones to curve', on
- Hold curves chart to the right of the zones (starts 28 bars after them, 70 bars wide): one curve for bull blocks (green) and one for bear blocks (red) showing the chance a block is still holding at each age, painted fills, 25/50/75 % grid, axis labels '100%', '50%', '0%', ages '0' '50' '100' '150 bars old', caption 'CHANCE AN ORDER BLOCK IS STILL HOLDING · BY AGE', legend '━ bull OBs · n <count>' / '━ bear OBs · n <count>', median markers 'bull median · <n> bars' / 'bear median · <n> bars', each zone's numbered circle at its age on its curve. Needs about 115 bars of empty space right of the last bar to be seen.
- Optional 95 % confidence band around the leading side's curve (input Confidence band, off)
- Panel (Top right) with the nearest resistance and support blocks, hold odds, lead, median life, live block count and the last bar
- Two invisible 'Headroom' plots that widen the price scale above and below the visible candles so the panel and the legend do not cover price
- AlgoFXStore watermark bottom right
From swing to zone to hold curve
Swings, structure breaks, new blocks and broken blocks are all decided on closed candles. The painting, the curves and the panel are redrawn on the newest candle from that closed-candle state.
- 1
Confirmed swings
Swing highs and lows are pivots with 5 candles on each side (Swing length), so a swing is confirmed five candles after it forms. The indicator keeps the last confirmed swing high and swing low, and each swing can create one order block when price breaks it.
- 2
A structure break creates the block
When a candle closes above the last confirmed swing high, the last down candle (close below open) within the 15 candles before the break becomes a bull order block, from that candle's high to its low. A close below the last swing low makes the last up candle in that window a bear order block. Order block search sets the 15.
- 3
A block lives until price closes through
A bull block breaks when a closed candle closes below its bottom; a bear block breaks when a closed candle closes above its top. A wick through the zone does not break it. Up to 60 live blocks are tracked per side, and a broken block disappears from the chart.
- 4
Only the nearest zones are painted
Of the live blocks, those nearest to price are painted, three per side by default (Zones shown per side, 0 to 8): green bull zones below price and red bear zones above. Each one is drawn as a glowing layered band with a bright core line and a numbered circle, from the order block candle to just past the last candle.
- 5
Hold curves to the right of the chart
For each side, the indicator measures how long every block in the loaded history lasted before it broke, counting live blocks at the age they have reached, and draws the share still holding at each age up to a 150-candle horizon. The bull curve is green, the bear curve red, and each side's median life is marked where its curve crosses 50 %.
- 6
Numbers on the zones and in the panel
Each painted zone's number also sits on its side's curve at the zone's own age, with that curve value next to the zone. The panel names the nearest resistance and support with range and distance, what share of past blocks of the same age held another 20 candles, which side's blocks lasted longer and whether that gap could be chance, the median lives and the live block counts.
Order Block Power on 12 different markets
Every chart below is a screenshot of TradingView itself with the shipped Order Block Power [AlgoFXStore] attached at its default settings. Forex, metals, indices, energy and crypto, so you can see how it reads each kind of market. They show what the indicator draws; they are not trading results. Tap or click any chart to open it full size.












Order Block Power on a real TradingView chart, frame by frame
Frames of a screen recording of the shipped indicator at its default settings, as the chart updates. Nothing is edited into the chart.




Using zones and hold curves in your own plan
There are no signal arrows and no drawn stops or targets. These steps show one way to turn the zones into a trade plan of your own.
- 1
Start with the nearest zones
Read the panel's Resistance (bear) and Support (bull) rows: the nearest live blocks above and below price, their numbers on the chart, ranges and distances. These are the levels price meets next. A zone that price is already in reads inside, and that is the moment to watch the candles closely, not to act blindly.
- 2
Wait for a reaction at the zone
A zone is a place to look, not an entry. For a long at a bull zone, wait for price to reach it and show a reaction you trust, for example a candle closing back up and out of the zone. If a candle closes below the zone's bottom, the block is broken and the idea is gone.
- 3
Put the stop beyond the far side
Every zone has a clear far side: the bottom of a bull block, the top of a bear block. A close beyond it breaks the block, so your stop belongs just beyond that edge. Count the distance from your entry to that stop in ticks or points and size the position so the stop costs only the amount you planned.
- 4
Use the hold curves as context
A very young zone and one that has outlived most past blocks on this chart are different situations, and the curve shows where each painted zone sits in that history. Treat it as background for your own judgement: the curves describe how past blocks behaved on the loaded candles, and the next block can behave differently.
- 5
Choose your own target
No target is drawn. A common choice is the next opposite zone: for a long from support, the nearest bear zone above. Check that the distance to it is worth the risk to your stop before you enter, and let the trade go if it is not.
The dashboard, row by row
- Header: Order Block Holding Power [AlgoFXStore] hold curves, filled green or red when the lead is unlikely to be chance, grey otherwise
- Settings line: swing, search, horizon, smoothing and hold window
- Resistance (bear): the nearest live bear block's number, range and distance above price, or inside, or none
- Holds next 20 bars: share of past bear blocks of the same age that held 20 more bars, with the block's age
- Support (bull): the nearest live bull block's number, range and distance below price
- Holds next 20 bars: the same reading for the nearest bull block
- Lead: which side's blocks lasted longer, as a multiple, with a p value; collecting until 5 breaks each side
- Median life (bars): bull and bear
- Live OBs: number of live bull and bear blocks
- Last bar: its time in exchange time and the number of bars loaded
Everything Order Block Power does for you
Order blocks by a fixed rule
The last opposite candle within 15 candles before a closed-candle break of a confirmed swing, from its high to its low. Swing length (5) and Order block search (15) are inputs on the Inputs tab.
State changes only at the close
Swings, structure breaks, new blocks and broken blocks change only when a candle closes, so a wick through a zone during a candle does not remove it.
A chart that shows what matters now
Up to 60 live blocks per side are tracked, but only the ones nearest to price are painted, 3 per side by default and up to 8. Broken blocks leave the chart instead of piling up.
Hold curves for each side
Survival curves of past bull and bear blocks up to a 150-candle horizon, smoothed over 8 candles, with each side's median life marked. Curve width (70) and Space before curve (28) set where the curves sit to the right of the last candle.
Zones linked to the curves
Each painted zone carries a numbered circle, and the same number sits on its side's curve at the zone's own age. Link zones to curve can be switched off if you only want the zones.
A panel of nearest levels
Nearest resistance and support with number, range and distance, the hold window reading (20 candles) for each, the lead between the sides with a p value, median lives, live block counts and the time of the last candle. Four corners, three text sizes.
An optional confidence band
Confidence band draws a band around the leading curve that shows how uncertain the curve is, given the number of blocks behind it. It is off by default.
Readable on light and dark charts
Text switches to deeper shades on a light chart and to the chart's own text colour wherever contrast would be too low; the zones and curves keep their green and red either way.
Order Block Power, feature by feature
Each picture is built from real platform screenshots of the shipped indicator at its default settings, labelled so you can see what every part does. Tap any picture to open it full size.







How traders put it to work
Index futures intraday
On NQ, ES and their micro contracts, 5 and 15-minute charts suit intraday work. Ages, the horizon and the hold window are counted in candles, so on a 5-minute chart the 20-candle hold window covers 100 minutes, and on a 15-minute chart it covers five hours.
Gold and crude oil
On gold and crude, 15-minute to 1-hour charts are a sensible start. Because the curves are built from the blocks of the symbol and timeframe on screen, they describe that market's own zones rather than a mix of markets.
Forex, crypto and stocks
It runs on any TradingView symbol and timeframe and on the free plan, and futures charts work the same on delayed data. The curves need several broken blocks on each side, and the Lead row waits for 5 breaks per side before it compares them.
A levels-only chart
Turn Show panel off and keep only a small right margin, and you see just the painted zones. Set Zones shown per side to 1 for the single nearest support and resistance, or to 0 if you only want blocks painted on one side of price.
Every setting, with its default
The names are the ones in the script's Settings dialog in TradingView (Inputs tab); the defaults are what every chart on this page uses.
Order blocks (3)
| Setting | Default | What it does |
|---|---|---|
| Swing length | 5 | Bars on each side that confirm a swing high / low (2-30); a close through it is a structure break. |
| Order block search | 15 | How many bars back from the structure break to look for the last opposite candle (2-50). |
| Zones shown per side | 3 | Live order blocks painted on price, nearest to price first (0-8); every live block still counts in the curves. |
Hold curves (6)
| Setting | Default | What it does |
|---|---|---|
| Curve horizon (bars) | 150 | Oldest age the hold curves cover (30-500). |
| Curve width (bars) | 70 | Width of the curve chart right of the last bar (30-200). |
| Space before curve (bars) | 28 | Gap between the zones' right end and the curve chart (3-60). |
| Curve smoothing (bars) | 8 | Smoothing along age (1-30); narrows near age 0. |
| Confidence band | off | Optional 95 % band around the leading side's curve, once each side has 5 breaks. |
| Link zones to curve | on | Numbered circle and share label on each painted zone, and the same number on its curve. |
Panel (4)
| Setting | Default | What it does |
|---|---|---|
| Show panel | on | Nearest resistance and support blocks with hold odds, lead, median life, live count. |
| Position | Top right | Top right, Bottom right, Top left, Bottom left. |
| Text size | Small | Tiny, Small, Normal. |
| Hold window (bars) | 20 | The panel's odds that the nearest blocks hold this many more bars (1-200). |

Order Block Power next to the usual options
Where it wins, and where it does not.
| Order Block Power | Typical free order block indicator | Reading it by hand | |
|---|---|---|---|
| Block rule | Last opposite candle before a closed-candle break of a confirmed swing | Varies, often unstated | Your own choice of candle |
| What is drawn | Only the live zones nearest to price, up to 8 per side | Often every block, broken ones included | Whatever you keep on the chart |
| When a zone ends | When a candle closes through its far side | Varies | When you decide |
| How long zones last | Hold curves and median life from the loaded history | Not shown | Not measured |
| Entries, stops and alerts | None: zones and statistics only, no built-in alerts | Some draw signals or offer alerts | Your own |
| Simplicity | Curves and a statistics panel to learn | Boxes only, quick to read | As simple as you make it |
| Cost | One payment | Free | Free |
Honest about who this fits
A good fit if you
- You trade from support and resistance and want order blocks found by a rule you can check.
- You want only the zones near price on the chart, not every box from last week.
- You want to know how long zones on your own market and timeframe have lasted, and you read a statistic as history rather than a promise.
- You trade futures, forex, gold, crypto or stocks on TradingView and set your own entries and stops.
Not for you if you
- Traders who want BUY and SELL arrows or drawn stops and targets: there are none.
- Anyone who needs built-in alerts: the indicator has none, so you set TradingView's own price or drawing alerts at a zone.
- Traders who read percentages on a chart as predictions: the curves and the panel describe past blocks on the loaded history and change as new candles close.
- Anyone who wants orders placed: it draws and measures only.
The full code, one manual, installed in two minutes
- 1Pine Script source codeOrder_Block_Power_TradingView_Code.txt (43 KB): the full code. Paste it into the Pine Editor and it appears as “Order Block Power [AlgoFXStore]”.
- 13Page PDF manualInstallation, every setting with its default and how to read the chart.
- 13SettingsEvery one explained above, with the defaults the charts use.
- 60Day money-back guaranteeIf it is not for you, request a full refund within 60 days through your Digistore24 order e-mail.
Install in five steps
- Download the zip from the page Digistore24 sends you to after checkout and unzip it.
- Open Order_Block_Power_TradingView_Code.txt in a text editor, select all and copy the whole code.
- In TradingView, open the Pine Editor, paste the code over everything that is there and click Save.
- Click Add to chart: “Order Block Power [AlgoFXStore]” appears on your chart.
- Read the PDF manual; the defaults are the settings shown on this page.

Kestutis Balciunas
AlgoFXStore · chart indicators
Kestutis Balciunas builds and publishes chart indicators under the AlgoFXStore name. Every product page shows what the indicator draws on real charts, and every number on it comes from the shipped build.
The charts on this page were captured in TradingView from the shipped Order Block Power [AlgoFXStore] at its default settings and are shown unedited.
No get-rich claims and no quoted win rates. Every trade is uncertain, and no indicator changes that. If you want to know whether it suits the way you trade before you buy, e-mail [email protected] and you will get a straight answer.
One price, one payment
- The full Pine Script source code of Order Block Power and the 13-page PDF manual
- Delivered as a digital download: one zip with the code file and the PDF manual on your download page
- Return period: 60 days, with a full refund if it is not for you
- Free updates to the current version on the same download page
60-day money-back guarantee. Install it, run it on your own charts and read the manual. If Order Block Power is not for you within 60 days of purchase, request a full refund from Digistore24, no questions asked: use the refund link in your Digistore24 order e-mail or Digistore24's order page digistore24.com/en/cancel-revoke-contract. Digistore24 refunds to your original payment method. It is a digital download: right after checkout you land on your download page, and the link to it is also in your Digistore24 order e-mail.
About the zones
Does it repaint?
The blocks themselves are decided on closed candles: swings, structure breaks, new blocks and broken blocks only change at a candle close, and a swing is confirmed five candles after it forms. What changes live is the selection and the measurement. The painted zones are re-ranked by distance to the current price, the curves, percentages and panel are recalculated as candles close and history loads, and scrolling or zooming redraws the geometry, because the script reads the visible range.
Why did a zone disappear?
Either a candle closed through its far side, which breaks the block and removes it, or another live block moved nearer to price and took its place among the painted zones. A block that is only no longer painted is still tracked and still counts in the curves.
Why does a wick through a zone not break it?
Only closes count. A bull block breaks when a candle closes below its bottom, a bear block when a candle closes above its top. A wick that pierces the zone while the candle closes back inside or beyond it leaves the block alive.
Why are there no arrows, stops or targets?
The indicator's job is the zones and how long they hold, not a signal. You decide where to enter, put your stop just beyond the zone's far side and choose your own target, for example the next zone on the other side of price.
The curves and the panel
What exactly do the hold curves show?
For each side, the share of past blocks on the loaded history that were still unbroken at each age, counted in candles up to the 150-candle horizon, with live blocks counted at the age they have reached so far. The point where a curve crosses 50 % is that side's median life. It is hindsight bookkeeping of past blocks, not a forecast.
How should I read the Holds next 20 bars row?
It takes the nearest block's age and reads from its side's curve what share of past blocks that reached that age went on to hold another 20 candles. It describes how blocks behaved on your chart in the past, not what this block will do. Treat it as context for your own judgement and never as a reason to trade on its own.
What does the Lead row mean?
It compares how long bull and bear blocks held on average within the horizon, shown as a multiple, and tests whether that gap could be chance, with a p value. Blocks formed in the same stretch of price are grouped, because they lived through the same moves. Until each side has 5 breaks the row reads collecting, and the panel header turns green or red only when the gap is unlikely to be chance.
Why can't I see the curves?
They sit to the right of the last candle, starting 28 candles after the zones end and 70 candles wide by default. Scroll the chart to the left so there are about 115 candles of empty space on the right, or reduce Space before curve and Curve width.
Do the numbers change when I scroll?
The statistics come from the loaded history, so they change when more history loads and when new candles close. Scrolling or zooming also changes the height of the curve chart and where an old zone starts, because the script reads the visible range, so the drawing is redone.
Settings and daily use
Should I keep the defaults?
Yes, to start. Swing length and Order block search change which blocks are found, and a larger swing length gives fewer, larger structure breaks. Zones shown per side only changes how many are painted. Curve horizon, smoothing and Hold window change the statistics, so change them one at a time and give the curves enough history.
What do the colours mean?
Green is bull: order blocks below price that act as support, and the bull curve. Red is bear: blocks above price that act as resistance, and the bear curve. The panel header is filled green or red when one side's lead is unlikely to be chance and grey otherwise. A small AlgoFXStore watermark sits in the bottom-right corner.
Which markets and timeframes suit it?
Any TradingView symbol and timeframe. The guide suggests 5 and 15 minutes for index futures and 15 minutes to 1 hour for gold and crude, and it also runs on forex, crypto and stocks. Ages are counted in candles, so their meaning in time changes with the timeframe.
How do I get alerted at a zone?
The indicator has no built-in alerts. Place a horizontal line or a price alert with TradingView's own alert tool at the zone you plan to trade, and check that the zone is still live when the alert fires.
Can I use it on several charts or with other tools?
Yes. Each copy finds its own blocks and builds its own curves from its symbol and timeframe, so the statistics of a 5-minute chart and a 1-hour chart differ. It draws on the price chart only, so volume or a session indicator sit beside it without conflict.
How it works
Will it place trades for me?
No. Order Block Power is an indicator: it draws on the chart. It never sends an order.
Do I need a paid TradingView plan?
No. It reads only the chart's own bars, so the free TradingView plan runs it. Alerts count against your plan's alert limit.
After you buy
How do I get it after paying?
Digistore24 runs the checkout. Right after payment it takes you to your download page with one zip holding the Pine Script source code file and the PDF guide; the link to that page is also in your Digistore24 order e-mail, so you can download again at any time.
How do I install it?
Open the code file, open the Pine Editor in TradingView, paste the whole code, click Save and then Add to chart: “Order Block Power [AlgoFXStore]” appears on your chart. The guide walks through it step by step.
Who is Digistore24?
Digistore24 is the reseller that sells Order Block Power for Kestutis Balciunas (AlgoFXStore): it runs the checkout, charges your card or PayPal, collects the VAT for your country and delivers the download. Its name is the one on your statement, and its order e-mail holds your download link and the refund link.
What is the refund policy?
A 60-day money-back guarantee, handled by Digistore24. If Order Block Power is not for you within 60 days of purchase, use the refund link in your Digistore24 order e-mail or Digistore24's order page (digistore24.com/en/cancel-revoke-contract) for a full refund, no questions asked. Digistore24 makes the refund to your original payment method.
Do I get the source code?
Yes. You get the full Pine Script source code as a text file for your own use; the licence line at the top of the code does not allow resale, sharing or republishing.
Order Block Power for TradingView.
Put order blocks found by a fixed rule, and a measure of how long such zones have held, on your own TradingView charts. The full code, the manual and every setting explained. Instant download for €47, one payment.
Get instant access