OPEN-SOURCE SCRIPT
Trend Classifier [ChartPrime]

Trend Classifier [ChartPrime]
This is a multi-level trend classification tool that detects bullish, bearish, and ranging conditions using an adaptive smoothing method. It highlights trend strength through color-coded candles and layered bands, making it easy to interpret market momentum visually.
⯁ KEY FEATURES
⯁ HOW TO USE
⯁ CONCLUSION
Trend Classifier [ChartPrime] helps traders stay aligned with the dominant trend while visually breaking down market momentum into levels. Its clean color-coded design and strength dashboard make it ideal for both trend following and range trading strategies.
This is a multi-level trend classification tool that detects bullish, bearish, and ranging conditions using an adaptive smoothing method. It highlights trend strength through color-coded candles and layered bands, making it easy to interpret market momentum visually.
⯁ KEY FEATURES
- Classifies trend strength using 3 bullish and 3 bearish levels relative to an adaptive trend line.
- Neutral (range) zones are marked when price stays between key bands, often signaling low volatility or consolidation.
- Automatically filters band visibility based on current trend direction:
- In uptrends, only levels below the price are displayed.
- In downtrends, only levels above the price are shown.
Color-coded candles:
- Aqua candles for bullish conditions.
- Red candles for bearish conditions.
- Orange candles during neutral or ranging conditions.
- Includes a trend direction change marker (diamond), plotted when a shift in trend is detected.
- Plots a central smoothed trend line to anchor the trend bands dynamically.
- Displays a trend strength dashboard in the top-right corner with real-time bull and bear scores (0 to 3).
- Labels with arrows (▲/▼) show current trend direction and strength on the chart.
⯁ HOW TO USE
- Use bull and bear levels (1–3) to assess the momentum of the current trend.
- When bull = 0 and bear = 0, market is considered ranging or consolidating – consider fading or waiting for breakout confirmation.
- Trend bands can be used as dynamic support/resistance during trending phases.
- Monitor the trend change diamonds to spot potential early reversals.
- Combine with volume or oscillator tools for confirmation of strength shifts.
⯁ CONCLUSION
Trend Classifier [ChartPrime] helps traders stay aligned with the dominant trend while visually breaking down market momentum into levels. Its clean color-coded design and strength dashboard make it ideal for both trend following and range trading strategies.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.