OPEN-SOURCE SCRIPT
OB + 2G2R + EMA/BB/ST/VWAP + Doji + Day Levels

It is a multi-signal chart indicator. It does not place trades automatically; it plots trend tools, levels, and buy/sell markers.
It shows:
BB Mid — the 20-period SMA, used as the crossover reference.
EMA 5, EMA 20, EMA 50, EMA 200 — trend direction filters.
SuperTrend — green when bullish and red when bearish.
Today’s High and Today’s Low — running intraday high/low levels, updated as new candles form.
EMA BUY — EMA 5 crosses above BB Mid, the candle is bullish, and price is above EMA 20/50/200.
EMA SELL — EMA 5 crosses below BB Mid, the candle is bearish, and price is below EMA 20/50/200.
ST BUY / ST SELL — SuperTrend direction changes and the current candle breaks the previous candle’s high or low.
2R2G BUY — two bearish candles followed by two bullish candles.
2G2R SELL — two bullish candles followed by two bearish candles.
Doji Buy / Sell setups — a bullish-to-bearish or bearish-to-bullish two-candle sequence followed by a small-body doji.
The signals are independent. For example, a 2R2G marker does not require an EMA crossover or SuperTrend confirmation. The strongest practical use is to treat EMA trend, SuperTrend direction, and the candle pattern as confirmation together rather than entering on every marker.
It shows:
BB Mid — the 20-period SMA, used as the crossover reference.
EMA 5, EMA 20, EMA 50, EMA 200 — trend direction filters.
SuperTrend — green when bullish and red when bearish.
Today’s High and Today’s Low — running intraday high/low levels, updated as new candles form.
EMA BUY — EMA 5 crosses above BB Mid, the candle is bullish, and price is above EMA 20/50/200.
EMA SELL — EMA 5 crosses below BB Mid, the candle is bearish, and price is below EMA 20/50/200.
ST BUY / ST SELL — SuperTrend direction changes and the current candle breaks the previous candle’s high or low.
2R2G BUY — two bearish candles followed by two bullish candles.
2G2R SELL — two bullish candles followed by two bearish candles.
Doji Buy / Sell setups — a bullish-to-bearish or bearish-to-bullish two-candle sequence followed by a small-body doji.
The signals are independent. For example, a 2R2G marker does not require an EMA crossover or SuperTrend confirmation. The strongest practical use is to treat EMA trend, SuperTrend direction, and the candle pattern as confirmation together rather than entering on every marker.
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.
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.
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.