Valid BOS Pullback MT5 Multi TF Scanner
- Indicators
-
Duc Hoan Nguyen
I develop practical trading tools for MetaTrader 4/5, with a focus on indicator integration, Multi-Timeframe analysis, market scanning, and automated trading solutions.
My work mainly includes:
• Indicator-to-EA Solutions - Version: 1.0
View the MT5 version: Valid BOS Pullback Multi TF Scanner (MT5)
View the MT4 version: Valid BOS Pullback Multi TF Scanner (MT4)
See more products: All Products or Trading Indicators, Special Offers & New Releases
Price has just broken a key high or low. When it pulls back, which level should you watch and which candle will confirm continuation?
Valid BOS Pullback Multi TF Scanner
Valid BOS Pullback Multi TF Scanner automatically tracks the three stages of a structure-break setup with a retest. It marks the level that was broken, the candle that retests it, and the candle that confirms the Break of Structure (BOS). See at a glance whether each setup is developing, complete, or invalidated.
1. Selecting the structure level and detecting the first break
The indicator confirms swing highs and lows (pivots) using bars on both sides of the swing point. Within the structure lookback, it considers the highest confirmed swing high for bullish setups and the lowest confirmed swing low for bearish setups. A level’s age is measured from the bar that formed the high or low.
- Bullish setup. The previous candle closes at or below the old high. The current candle’s Close exceeds the old high by more than the configured breakout distance.
- Bearish setup. The previous candle closes at or above the old low. The current candle’s Close falls below the old low by more than the configured breakout distance.
After the first break, the old level becomes the retest reference. At the same time, the indicator tracks the highest high of the new upward leg or the lowest low of the new downward leg to identify the next level price must break.
2. When is a pullback valid?
A retest is recorded when the candle’s range from Low to High touches the exact old level. Before the touch, the setup must have accumulated enough consecutive bars without touching that level, and the new extreme must have held for the required number of bars on its right.
An early touch resets the untouched-bar count to 0. If the leg sets a new extreme, the confirmation period starts again from the bar that formed it. Once both conditions are met, the indicator labels the setup Valid Pullback, places a circle on the touching candle, and locks the level that must be broken to confirm BOS.
3. Where do BUY/SELL signals appear?
After the retest, a subsequent candle must close beyond the locked extreme. An intrabar High or Low through the level shows that it was tested. The closing price determines confirmation.
| Signal | Confirmation condition | Signal dot location |
|---|---|---|
| BUY | The Close breaks above the new high after the retest. | Green dot below the Low of the BOS candle. |
| SELL | The Close breaks below the new low after the retest. | Red dot above the High of the BOS candle. |
Bearish BOS example. After breaking the old low at 100, price sets a new low at 98. When it rebounds to touch 100 and meets the retest conditions, the indicator marks the touch with a circle at 100. If a later candle closes at 97.90, the indicator confirms SELL because the Close is below 98. The SELL dot appears above the candle that closed at 97.90.
4. Reading structure lines and ended setups
- Reference line. This marks the old high or low. After a valid retest, it becomes dashed in the BOS direction’s color and ends at the touching candle.
- Target line. This marks the extreme of the leg following the first break. The line updates as the setup develops, keeps the same price once the retest is valid, and ends at the candle that completes BOS.
- Circle and Valid Pullback label. The circle identifies the exact retest candle. The label marks the price level that was retested.
- Check mark (✓). When BOS is confirmed, the check mark is placed at the new high or low that was broken. The BUY or SELL dot marks the candle that broke the level.
The indicator can track several setups at once. A setup can expire or be invalidated if the Close crosses back through the retest level by more than the tolerance. A new qualifying structure break cancels open setups in the opposite direction.
While a confirmed BOS extreme remains in the tracking window, the indicator excludes it from new reference levels and cancels setups using the same reference in that direction. Once a setup has retested and is awaiting BOS, its target is reserved for that setup, including when a proposed reference for another setup in the same direction is within one tick of the target.
You can keep expired or canceled setups to review how they developed. When this option is enabled, the levels of ended setups appear as dotted gray lines. Hover over a line to see its status. After a valid retest, the touch marker and label can be retained according to your display settings.
5. Alerts and multi-timeframe, multi-symbol monitoring
On the live candle, a BUY or SELL dot can appear and disappear as price changes. The Bullish BOS and Bearish BOS alerts evaluate the candle that has just closed. You can enable each alert direction separately and receive notifications in the terminal or via push, email, or sound according to your MetaTrader configuration.
The Multi-Timeframe mode applies the same BOS logic across timeframes and lets you use separate parameters for each timeframe. Multi-Symbol Scanner collects results by symbol and timeframe in one table so you can choose which chart to inspect. You can scan the current symbol, symbols in Market Watch, or a custom symbol list. The guide at the top of this description explains the setup.
6. Parameters that directly affect signals
| Parameter | Default | Effect on signals |
|---|---|---|
| Swing left bars | 2 bars | Number of bars to the left used to assess a swing high or low. |
| Swing right bars | 2 bars | Number of bars to the right required to confirm a pivot. This is also the minimum time the new leg’s extreme must hold before a retest can qualify. |
| Structure lookback (bars) | 32 bars | Maximum age of a pivot considered as a reference. A longer lookback lets the indicator consider older structure levels. |
| Close invalidation tolerance (ticks) | 4 ticks | How far the Close may cross back through the old level before the setup is canceled. The retest is still assessed at the exact old price. |
| Minimum bars without a retest | 3 bars | Number of consecutive bars that must stay clear of the old level before the retest candle. An early touch resets the count. |
| Minimum initial break (ticks) | 1 tick | Distance threshold from the old level to the Close of the first break. The Close must exceed that threshold in the breakout direction. |
| Maximum setup age (bars) | 120 bars | Maximum time from the first break to complete both the retest and BOS. |
7. Conclusion
Valid BOS Pullback Multi TF Scanner helps you read a structure break in a clear sequence. The reference line shows which price level was broken, the circle identifies the retest candle, and the BUY/SELL dot marks the confirmation candle. Use the Scanner to find charts with a signal, then review the full setup on the chart.
