OPEN-SOURCE SCRIPT
Pullback Marker (Inside Bars Ignored) by Shadow Quant Trader

Pullback Marker (Inside Bars Ignored)
This indicator is designed to identify pullback highs and pullback lows while completely ignoring inside bars.
How it works:
Every inside bar is skipped from the counting logic.
If multiple candles remain inside the range of the mother candle, all of them are ignored until a real breakout candle appears.
The indicator then evaluates only the real candles, not the inside bars.
Pullback high logic:
A pullback high is marked when the middle real candle forms the highest high compared to the candles before and after it.
If the next candle has the same high, the indicator waits.
If a later real candle then forms a lower high, the first candle of that equal-high sequence is marked as the pullback high.
Pullback low logic:
A pullback low is marked when the middle real candle forms the lowest low compared to the candles before and after it.
If the next candle has the same low, the indicator waits.
If a later real candle then forms a higher low, the first candle of that equal-low sequence is marked as the pullback low.
Features:
Ignores all inside bars in a mother-candle chain
Marks only valid pullback highs and lows
Handles equal-high and equal-low cases correctly
Uses arrows placed close to candles for clear chart reading
This indicator is designed to identify pullback highs and pullback lows while completely ignoring inside bars.
How it works:
Every inside bar is skipped from the counting logic.
If multiple candles remain inside the range of the mother candle, all of them are ignored until a real breakout candle appears.
The indicator then evaluates only the real candles, not the inside bars.
Pullback high logic:
A pullback high is marked when the middle real candle forms the highest high compared to the candles before and after it.
If the next candle has the same high, the indicator waits.
If a later real candle then forms a lower high, the first candle of that equal-high sequence is marked as the pullback high.
Pullback low logic:
A pullback low is marked when the middle real candle forms the lowest low compared to the candles before and after it.
If the next candle has the same low, the indicator waits.
If a later real candle then forms a higher low, the first candle of that equal-low sequence is marked as the pullback low.
Features:
Ignores all inside bars in a mother-candle chain
Marks only valid pullback highs and lows
Handles equal-high and equal-low cases correctly
Uses arrows placed close to candles for clear chart reading
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。