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が提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。