OPEN-SOURCE SCRIPT

Candle de Reversão

60
//version=5
indicator("Candle de Reversão", overlay=true)

// Condição de reversão
bullish_reversal = close > open and close[1] < open[1] and close > high[1]
bearish_reversal = close < open and close[1] > open[1] and close < low[1]

// Pintando o candle
barcolor(bullish_reversal ? color.green : bearish_reversal ? color.red : na)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.