OPEN-SOURCE SCRIPT
Pin Bar Fib Pullback + Engulfing + Pin Reversal (21 EMA + VWAP)

Dear Traders
Pin bar fib pullback continuation (in 0.50–0.618 zone)
Bullish/Bearish engulfing
Pin bar reversals (bottom/top)
Then we ask: did the next candle move at least atrMult × ATR away from the signal close in the right direction?
For a long signal: next high ≥ signal close + ATR * atrMult
For a short signal: next low ≤ signal close − ATR * atrMult
If yes, that signal gets a big circle with text:
BIG ▲ for long
BIG ▼ for short
drawn on the original signal bar (using offset = -1 trick).
You can tune how “big” you want:
Increase ATR length for smoother ATR
Increase ATR * (e.g., from 1.5 → 2.0) to only mark really strong moves.
Pin bar fib pullback continuation (in 0.50–0.618 zone)
Bullish/Bearish engulfing
Pin bar reversals (bottom/top)
Then we ask: did the next candle move at least atrMult × ATR away from the signal close in the right direction?
For a long signal: next high ≥ signal close + ATR * atrMult
For a short signal: next low ≤ signal close − ATR * atrMult
If yes, that signal gets a big circle with text:
BIG ▲ for long
BIG ▼ for short
drawn on the original signal bar (using offset = -1 trick).
You can tune how “big” you want:
Increase ATR length for smoother ATR
Increase ATR * (e.g., from 1.5 → 2.0) to only mark really strong moves.
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.
Ramesh Raju
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.
Ramesh Raju
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.