PROTECTED SOURCE SCRIPT
Aggiornato

True Order Block (OB)

1 311
True Order Block (OB)

This script automatically detects and plots Order Blocks (OBs) based on the presence of Fair Value Gaps (FVGs).
Only Order Blocks are displayed on the chart.

🔎 How it works

The script looks for Fair Value Gaps (FVGs) according to a relaxed 3-candle definition.

Once an FVG is detected:

  • For a Bullish FVG → the last bearish candle before the gap is marked as the Bullish Order Block.

  • For a Bearish FVG → the last bullish candle before the gap is marked as the Bearish Order Block.


OBs are extended into the future until price either:

  • mitigates the zone (optional auto-removal), or

  • the number of live OBs exceeds the user’s maximum (FIFO cleanup).


⚙️ User settings

  • Draw Order Blocks (enable/disable plotting)

  • Minimum OB length (how far each zone extends initially)

  • Remove OB after violation (auto delete invalidated zones)

  • Max active OBs (limit on displayed zones for clarity)

  • Bullish/Bearish OB colors


âś… Key features

  • Fully automated OB detection

  • No clutter – only OBs are plotted (FVG logic hidden in the background)

  • Smart cleanup: mitigated zones are removed automatically

  • Customizable colors & limits


⚠️ Notes

This tool is designed for educational and analytical purposes only.

It does not generate trade signals.

Always combine with your own strategy, market context, and risk management.
Note di rilascio
True Order Block (OB)

This script automatically detects and plots Order Blocks (OBs) based on the presence of Fair Value Gaps (FVGs).
Only Order Blocks are displayed on the chart.

🔎 How it works

The script looks for Fair Value Gaps (FVGs) according to a relaxed 3-candle definition.

Once an FVG is detected:

For a Bullish FVG → the last bearish candle before the gap is marked as the Bullish Order Block.

For a Bearish FVG → the last bullish candle before the gap is marked as the Bearish Order Block.


OBs are extended into the future until price either:

mitigates the zone (optional auto-removal), or

the number of live OBs exceeds the user’s maximum (FIFO cleanup).


⚙️ User settings

Draw Order Blocks (enable/disable plotting)

Minimum OB length (how far each zone extends initially)

Remove OB after violation (auto delete invalidated zones)

Max active OBs (limit on displayed zones for clarity)

Bullish/Bearish OB colors


âś… Key features

Fully automated OB detection

No clutter – only OBs are plotted (FVG logic hidden in the background)

Smart cleanup: mitigated zones are removed automatically

Customizable colors & limits


⚠️ Notes

This tool is designed for educational and analytical purposes only.

It does not generate trade signals.

Always combine with your own strategy, market context, and risk management.

Update 07.12.2025
Added an optional mode for displaying old damaged blocks. In this mode, previously damaged blocks stay visible until they fully break. This lets players track damage progression more naturally. An alternative mode changes the block’s appearance as soon as new damage occurs. Both modes can be switched in the indicator settings.

Declinazione di responsabilitĂ 

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.