Candle counter

I've created a simple red/green candle counting script with a custom number of candles to look back on.
Let me know if any bugs, issues, or suggestions.
Let me know if any bugs, issues, or suggestions.
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.
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.