OPEN-SOURCE SCRIPT
Forecast Trend Filter ~ CharonQuant

The Forecast Trend Filter (FTF) is a trend and momentum confirmation indicator built on the original Forecast Oscillator concept developed by Tushar Chande.
The original Forecast Oscillator measures how far price deviates from a linear regression forecast to highlight momentum shifts.
This version extends that foundation and restructures it into a practical, signal-quality focused trend filter designed for real trading conditions.
What’s different in this implementation:
• Forecast Oscillator combined with slope confirmation to ensure momentum is accelerating, not stalling
• Trend alignment filter using a user-selectable moving average (SMA, EMA, WMA, HMA, ALMA, VWMA)
• Minimum deviation threshold to filter out weak or noisy signals
• Directional state logic that clearly defines bullish, bearish, or neutral conditions
• Visual trend context using adaptive colors, background bias, and overlay plots
Signals are only generated when all conditions align:
• Price deviates meaningfully from its linear regression forecast
• Oscillator slope confirms momentum continuation
• Deviation exceeds the minimum quality threshold
• Price is aligned with the higher-level trend filter
If one condition fails, the signal is ignored.
This design prioritizes signal quality over signal frequency.
Development and usage notes:
This indicator was developed and calibrated on the 1D INDEX:ETHUSD chart.
You must tweak the parameters to fit your market, timeframe, and trading style.
If you do not read this description or do not understand what the indicator is designed to do, do not use it.
Indicators amplify both discipline and mistakes.
Important reminder: No single indicator is sufficient on its own.
The original Forecast Oscillator measures how far price deviates from a linear regression forecast to highlight momentum shifts.
This version extends that foundation and restructures it into a practical, signal-quality focused trend filter designed for real trading conditions.
What’s different in this implementation:
• Forecast Oscillator combined with slope confirmation to ensure momentum is accelerating, not stalling
• Trend alignment filter using a user-selectable moving average (SMA, EMA, WMA, HMA, ALMA, VWMA)
• Minimum deviation threshold to filter out weak or noisy signals
• Directional state logic that clearly defines bullish, bearish, or neutral conditions
• Visual trend context using adaptive colors, background bias, and overlay plots
Signals are only generated when all conditions align:
• Price deviates meaningfully from its linear regression forecast
• Oscillator slope confirms momentum continuation
• Deviation exceeds the minimum quality threshold
• Price is aligned with the higher-level trend filter
If one condition fails, the signal is ignored.
This design prioritizes signal quality over signal frequency.
Development and usage notes:
This indicator was developed and calibrated on the 1D INDEX:ETHUSD chart.
You must tweak the parameters to fit your market, timeframe, and trading style.
If you do not read this description or do not understand what the indicator is designed to do, do not use it.
Indicators amplify both discipline and mistakes.
Important reminder: No single indicator is sufficient on its own.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.