OPEN-SOURCE SCRIPT
Algogram Trend Identifier

Algogram Trend Identifier (ATI) is an advanced oscillator designed to identify trend direction, momentum strength, volatility shifts, and potential reversal points. It uses Arnaud Legoux Moving Average (ALMA) applied to percentage price changes, wrapped in Root Mean Square (RMS) dynamic bands, and features built-in divergence detection.
Key Features:
* ALMA Percentage Change Engine: Smooths price percentage changes using ALMA to eliminate lag while reducing noise.
* Dynamic RMS Volatility Bands: Automatically adjusts band boundaries based on recent volatility to define overbought, oversold, and trend continuation zones.
* Preset Profiles: Built-in presets for 5m, 15m, 30m, 1h, and Daily timeframes that automatically apply optimized calculation parameters.
* Divergence Detection Engine: Detects regular bullish and bearish divergences between price and oscillator fractals, drawing custom lines and dots.
* Consolidation Detection: Visual thresholds highlight periods of market squeezes and low-volatility consolidation.
* Multiple Alert Triggers: Pre-configured alert conditions for threshold crossings, zero-line breaches, trend switches, and divergences.
How It Works:
1. Trend Calculation: Measures smoothed percentage change via ALMA to establish a core directional oscillator line.
2. Dynamic RMS Bands: Calculates upper and lower bands using root mean square volatility to gauge strong directional breakout momentum versus consolidation ranges.
3. Trend States:
* Green Zone: Strong bullish momentum above the upper RMS band.
* Red Zone: Strong bearish momentum below the lower RMS band.
* Consolidation: Oscillator activity within inner threshold bounds indicates sideways ranges.
4. Divergence Signals: Automatic detection plots dots and trendlines whenever price makes higher highs/lower lows that diverge from oscillator peaks.
Inputs and Settings:
* Preset: Quickly switch between 5 Minute, 15 Minute (Default), 30 Minute, 1 Hour, and Daily parameters.
* Trend Calculation Settings: Adjust ALMA length, offset, sigma, and smoothing bars.
* Threshold Settings: Custom upper/lower boundary levels (Default: 60 / -60).
* Consolidation Settings: Adjust upper and lower thresholds for identifying low volatility (Default: 20 / -20).
* Divergence Settings: Toggle divergence visualization, lookback length, line thickness, and shape styles.
How to Use:
* Trend Continuation: Trade in the direction of the color-coded oscillator when it expands outside the RMS bands.
* Range / Reversal Trading: Look for divergence dots near extreme upper or lower thresholds to anticipate trend exhaustion or reversals.
* Squeeze / Expansion: Watch for the oscillator breaking out of inner consolidation thresholds after a low-volatility period.
Key Features:
* ALMA Percentage Change Engine: Smooths price percentage changes using ALMA to eliminate lag while reducing noise.
* Dynamic RMS Volatility Bands: Automatically adjusts band boundaries based on recent volatility to define overbought, oversold, and trend continuation zones.
* Preset Profiles: Built-in presets for 5m, 15m, 30m, 1h, and Daily timeframes that automatically apply optimized calculation parameters.
* Divergence Detection Engine: Detects regular bullish and bearish divergences between price and oscillator fractals, drawing custom lines and dots.
* Consolidation Detection: Visual thresholds highlight periods of market squeezes and low-volatility consolidation.
* Multiple Alert Triggers: Pre-configured alert conditions for threshold crossings, zero-line breaches, trend switches, and divergences.
How It Works:
1. Trend Calculation: Measures smoothed percentage change via ALMA to establish a core directional oscillator line.
2. Dynamic RMS Bands: Calculates upper and lower bands using root mean square volatility to gauge strong directional breakout momentum versus consolidation ranges.
3. Trend States:
* Green Zone: Strong bullish momentum above the upper RMS band.
* Red Zone: Strong bearish momentum below the lower RMS band.
* Consolidation: Oscillator activity within inner threshold bounds indicates sideways ranges.
4. Divergence Signals: Automatic detection plots dots and trendlines whenever price makes higher highs/lower lows that diverge from oscillator peaks.
Inputs and Settings:
* Preset: Quickly switch between 5 Minute, 15 Minute (Default), 30 Minute, 1 Hour, and Daily parameters.
* Trend Calculation Settings: Adjust ALMA length, offset, sigma, and smoothing bars.
* Threshold Settings: Custom upper/lower boundary levels (Default: 60 / -60).
* Consolidation Settings: Adjust upper and lower thresholds for identifying low volatility (Default: 20 / -20).
* Divergence Settings: Toggle divergence visualization, lookback length, line thickness, and shape styles.
How to Use:
* Trend Continuation: Trade in the direction of the color-coded oscillator when it expands outside the RMS bands.
* Range / Reversal Trading: Look for divergence dots near extreme upper or lower thresholds to anticipate trend exhaustion or reversals.
* Squeeze / Expansion: Watch for the oscillator breaking out of inner consolidation thresholds after a low-volatility period.
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.
Algogram
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.
Algogram
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.