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. Подробнее читайте в Условиях использования.