OPEN-SOURCE SCRIPT

FVG Candle Color

50
//version=5
indicator("FVG Candle Color", overlay=true)

// Identificando FVG simples
bullFVG = low > high[2]
bearFVG = high < low[2]

// Colorindo vela
barcolor(bullFVG ? color.green : na)
barcolor(bearFVG ? 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.