OPEN-SOURCE SCRIPT
BOS & FVG Pullback Signals TMT

How it Works:
Fair Value Gaps (FVGs): The script looks for three-candle patterns where a gap is formed between the first candle's high/low and the third candle's low/high, indicating a strong momentum move (often occurring after a Break of Structure).
Pullback Detection:
For a BUY, price must pull back and touch an active Bullish FVG without breaking fully below it.
For a SELL, price must pull back into an active Bearish FVG without breaking fully above it.
Rejection & Continuation (The Signal):
BUY Signal: When price wicks into the Bullish FVG, confirms a rejection by closing above the top of the FVG, and displays a prominent lower wick.
SELL Signal: When price wicks into the Bearish FVG, confirms a rejection by closing below the bottom of the FVG, and displays a prominent upper wick.
Invalidation: An FVG is invalidated if price completely violates it (closes below a Bull FVG or above a Bear FVG). Once a signal is fired for a specific FVG, that FVG stops acting as a signal trigger to prevent duplicate entries on sideways movement.
You can customize the Minimum FVG Size (using an ATR multiplier) in the settings to filter out minor, insignificant gaps and focus only on the ones that cause strong trend continuations.
Fair Value Gaps (FVGs): The script looks for three-candle patterns where a gap is formed between the first candle's high/low and the third candle's low/high, indicating a strong momentum move (often occurring after a Break of Structure).
Pullback Detection:
For a BUY, price must pull back and touch an active Bullish FVG without breaking fully below it.
For a SELL, price must pull back into an active Bearish FVG without breaking fully above it.
Rejection & Continuation (The Signal):
BUY Signal: When price wicks into the Bullish FVG, confirms a rejection by closing above the top of the FVG, and displays a prominent lower wick.
SELL Signal: When price wicks into the Bearish FVG, confirms a rejection by closing below the bottom of the FVG, and displays a prominent upper wick.
Invalidation: An FVG is invalidated if price completely violates it (closes below a Bull FVG or above a Bear FVG). Once a signal is fired for a specific FVG, that FVG stops acting as a signal trigger to prevent duplicate entries on sideways movement.
You can customize the Minimum FVG Size (using an ATR multiplier) in the settings to filter out minor, insignificant gaps and focus only on the ones that cause strong trend continuations.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Tradingmientrung
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Tradingmientrung
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.