INVITE-ONLY SCRIPT

Heikin Ashi Trend Count Sums

1 053
Provides the number of uninterrupted HA candle color trends over the past x bars that lasted 1, 2, 3, 4, 5, 6, 7, 8, or 9+ bars, where x is an input.

Plotchar is messy, so this is best used with Chart Options->Background->Indicator Values checked. Numbers in order, from lime to red, are the binned number of 9+, 8, 7, 6, 5, 4, 3, 2, and 1 trends that ended within the last x bars.

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.