OPEN-SOURCE SCRIPT
Directional EMA - For Loop | Lyro RS

Directional EMA - For Loop | Lyro RS
Introduction
This indicator combines multi-type moving averages, loop-based momentum scoring, and divergence detection for adaptive trend and reversal analysis.
Key Features:
Multiple Moving Average Selection System: Choose from 16 different MA types - HMA, ALMA and JMA etc. To match your style best.
For Loop Based Scoring: Uses a From / To system to calculate cumulative buying/selling pressure across recent price action.
Signal Threshold: Long / Short threshold levels to control the sensitivity for different market conditions.
Divergence Detection: Regular bullish / bearish with clear labels for potential reversal points.
Clean Visuals: Multiple color themes with table and color based indicator line for easy reading.
How It Works:
Core Calculation: The indicator first creates a directional signal by comparing price to your selected moving average, normalized for current volatility.
Loop Analysis: This signal feeds into a for-loop that scores recent price history, generating a cumulative momentum value.
Signal Generation:
Bullish signals trigger when the score crosses above the Upper Threshold
Bearish signals trigger when the score crosses below the Lower Threshold
Divergence Alerts: Automatically detects when price makes new highs/lows that aren't confirmed by the oscillator.
Practical Use:
Trend Identification: The color-coded oscillator and signal table help confirm trend direction.
Reversal Warning: Divergence labels highlight potential trend exhaustion points for careful watch.
Customization:
Adjust MA type and length for sensitivity tuning
Modify loop parameters (From/To) to change analysis depth
Fine-tune threshold levels for signal frequency
Enable/disable divergence detection as needed
⚠️ Disclaimer
This tool is for technical analysis education only. It does not guarantee results or constitute financial advice. Always use proper risk management and combine with other analysis methods. Past performance doesn't predict future results.
Introduction
This indicator combines multi-type moving averages, loop-based momentum scoring, and divergence detection for adaptive trend and reversal analysis.
Key Features:
Multiple Moving Average Selection System: Choose from 16 different MA types - HMA, ALMA and JMA etc. To match your style best.
For Loop Based Scoring: Uses a From / To system to calculate cumulative buying/selling pressure across recent price action.
Signal Threshold: Long / Short threshold levels to control the sensitivity for different market conditions.
Divergence Detection: Regular bullish / bearish with clear labels for potential reversal points.
Clean Visuals: Multiple color themes with table and color based indicator line for easy reading.
How It Works:
Core Calculation: The indicator first creates a directional signal by comparing price to your selected moving average, normalized for current volatility.
Loop Analysis: This signal feeds into a for-loop that scores recent price history, generating a cumulative momentum value.
Signal Generation:
Bullish signals trigger when the score crosses above the Upper Threshold
Bearish signals trigger when the score crosses below the Lower Threshold
Divergence Alerts: Automatically detects when price makes new highs/lows that aren't confirmed by the oscillator.
Practical Use:
Trend Identification: The color-coded oscillator and signal table help confirm trend direction.
Reversal Warning: Divergence labels highlight potential trend exhaustion points for careful watch.
Customization:
Adjust MA type and length for sensitivity tuning
Modify loop parameters (From/To) to change analysis depth
Fine-tune threshold levels for signal frequency
Enable/disable divergence detection as needed
⚠️ Disclaimer
This tool is for technical analysis education only. It does not guarantee results or constitute financial advice. Always use proper risk management and combine with other analysis methods. Past performance doesn't predict future results.
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Get access to our private indicators & analysis: whop.com/lyro-rs
Join our community: discord.gg/YUg8UxeRu8
All material from Lyro RS is for educational purposes only. Past performance does not guarantee future results.
Join our community: discord.gg/YUg8UxeRu8
All material from Lyro RS is for educational purposes only. Past performance does not guarantee future results.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Get access to our private indicators & analysis: whop.com/lyro-rs
Join our community: discord.gg/YUg8UxeRu8
All material from Lyro RS is for educational purposes only. Past performance does not guarantee future results.
Join our community: discord.gg/YUg8UxeRu8
All material from Lyro RS is for educational purposes only. Past performance does not guarantee future results.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.