The Life Cycle of an Order Block: When to Delete a Zone
Open any manually marked chart a week after you drew it. Half the boxes are probably still there, though many have long since been traded through. The chart gets crowded not because there are many valid zones, but because deleting a zone is a decision, and decisions get skipped.
The fix is to treat every zone as having a life cycle with a precise end. If you can state the rule that ends a zone, you can follow it by hand or hand it to a script.
Birth: when a zone exists
A zone should only be drawn after three things have happened, in this order:
- Price closed beyond a swing high or low (a confirmed break of structure).
- The candle that did it was an impulse, meaning its range was well above recent average.
- You can point to the last candle of the opposite colour before the move. That candle is the zone.
If any step is missing, nothing should be on the chart. This is stricter than most people draw by hand, and it is why hand-drawn charts fill up faster than rule-based ones.
Active phase: when a zone is still tradeable
While price stays on the right side of the zone, it remains a candidate. A few practical notes about this phase:
- Being active does not mean being valuable. A zone far from the current price is just an object on the chart.
- Price can wick into a zone and leave. A wick through is not an invalidation.
- You are looking for a reaction, not a touch.
Death: the rule that ends a zone
This is the part most people leave vague. A clean rule has one condition: a candle closes through the far side of the zone. For a bullish zone, that means a close below its low. For a bearish zone, a close above its high.
Why closes and not wicks? A wick can be a stop run that reverses. A close beyond the zone is a decision by the market to accept prices on the other side. After that, the idea that orders were waiting there has failed.
There is also a time rule worth having. A zone that has not been touched for hundreds of candles belongs to a market that no longer exists. The Automated Order Blocks script removes any zone older than 200 bars by default, and that value is an input you can change.
What goes wrong when you do this by hand
You can follow the rule manually. The reasons it breaks down in practice are ordinary:
- Volume of zones. Five or six active zones across a couple of timeframes means checking five or six levels after every candle close.
- Attention. The close that kills a zone often arrives while you are focused on a different trade.
- Selective memory. It is easy to keep a zone alive because you like the trade it would give you.
None of these are about skill. They are the reason a rule works better as code than as a habit.
The same life cycle as a script
The Automated Order Blocks indicator implements the cycle above:
- Birth: a closed break of the last confirmed swing (10 bars on each side by default), on a candle whose range exceeds 1.5 times the 20-bar average. The zone is the last opposing candle within the previous 20 bars.
- Active: the box extends to the right while price respects it.
- Death: deleted when price closes back through it, or after the maximum age in bars.
It also provides alerts when a new bullish or bearish block forms, so you do not have to watch for the break yourself.
What it does not do is judge whether a living zone is worth trading. It does not check higher-timeframe direction, nearby liquidity or volume. Those remain decisions for you, as covered in the five-question post-mortem for failed order blocks.
A manual checklist if you prefer to draw by hand
- After each candle close on your trading timeframe, scan active zones for a close through the far side. Delete any that have one.
- Write the creation date next to each zone. Delete any older than your time limit.
- Keep a maximum number of live zones per chart (for example, the 3 closest to price).
Frequently Asked Questions
Should a zone be deleted if price closes through it but comes back? Under a strict rule, yes. You can always redraw a new one if a fresh impulse forms from it. Keeping a dead zone "just in case" is how charts become cluttered.
Does a partial touch count as mitigation? It depends on your definition. The script used here counts only a close through the far side. Some traders also treat a first touch as using up the zone. Pick one definition and apply it consistently.
How many bars should a zone live? There is no correct number; it depends on your timeframe and how long your trades last. Start with the default and adjust after reviewing which old zones still produced reactions.
Educational content only, not financial advice.