OPEN-SOURCE SCRIPT
Updated

Trend Duration Forecast v1.04 [Far_Q]

2 635
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.
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.

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.