OPEN-SOURCE SCRIPT
3 or more consecutive candles

This indicator Colors in candles if there are 3 or more consecutive bearish or bullish candles.
If you are familiar with the BTMM/Stacey Burke Trading concept of expecting a stop hunt after 3 cycles of rise/fall this indicator may be useful to you.
I'm new to coding/making indicators so the code may not be as polished so please bare with me, I am in the process of learning :)
Eventually I'll make it so that you can edit the minimum and maximum number of candles needed for it to be colored, but it may take a long time lol.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.