OPEN-SOURCE SCRIPT

First Candle Direction

901
We determine the color of the first candle based on whether the closing price is greater than or equal to the opening price.
If the closing price is higher, the candle is green; otherwise, it’s red.

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.