OPEN-SOURCE SCRIPT
Updated Trend Duration Forecast v1.04 [Far_Q]

Based on Trend Duration Forecast [ChartPrime].
This version includes a few usability improvements and a small label-placement fix.
The indicator plots a Hull Moving Average (HMA), tracks the current bullish or bearish trend duration in bars, and estimates the probable trend length from historical completed trend durations.
This version includes a few usability improvements and a small label-placement fix.
The indicator plots a Hull Moving Average (HMA), tracks the current bullish or bearish trend duration in bars, and estimates the probable trend length from historical completed trend durations.
Release Notes
Based on Trend Duration Forecast [ChartPrime].This version includes clearer trend-state logic, corrected bar counting, and improved label placement.
Trend Duration Forecast plots a Hull Moving Average (HMA), detects bullish and bearish trend phases from HMA slope persistence, counts the current trend duration in bars, and estimates the probable trend length using the average duration of previous completed trends.
Release Notes
Based on Trend Duration Forecast by [ChartPrime].This version includes clearer trend-state logic, corrected bar counting, and improved label placement.
Trend Duration Forecast plots a Hull Moving Average (HMA), detects bullish and bearish trend phases from HMA slope persistence, counts the current trend duration in bars, and estimates the probable trend length using the average duration of previous completed trends.
This update is merely version control, should show V1.05 - Hopefully.
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.
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.
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.