OPEN-SOURCE SCRIPT
Aggiornato GXG Trend Engine

GXG Trend Engine is a price-action-based strategy designed to identify short-term trend shifts using a dynamic volatility-adjusted trailing level. Built around an adaptive ATR framework, it reacts quickly to market movements while maintaining structure during trending conditions.
The system continuously calculates a real-time trailing line that follows price using a configurable sensitivity factor and volatility window. Trade signals are generated when price crosses this adaptive level with momentum confirmation, allowing for precise entries during emerging trends.
Unlike traditional indicators, GXG focuses on market structure and volatility alignment, making it effective across multiple asset classes includi
Key Features
Inputs
Reaction Factor – Controls sensitivity to price movement
Volatility Window – ATR period used for dynamic calculation
Use Heikin Ashi Source – Toggle alternative price smoothing
How It Works
The GXG engine builds a trailing threshold based on market volatility. When price moves above or below this level and confirms with a momentum crossover, the system generates a corresponding long or short signal.
This approach helps filter noise while staying responsive to genuine directional moves.
⚠️ Notes
Best suited for trending markets
May produce false signals in sideways conditions
Can be combined with higher timeframe filters for improved accuracyng crypto, forex, and indices.
The system continuously calculates a real-time trailing line that follows price using a configurable sensitivity factor and volatility window. Trade signals are generated when price crosses this adaptive level with momentum confirmation, allowing for precise entries during emerging trends.
Unlike traditional indicators, GXG focuses on market structure and volatility alignment, making it effective across multiple asset classes includi
Key Features
- Adaptive Volatility Engine | Uses ATR-based calculations to dynamically adjust to market conditions.
- Real-Time Trend Detection | Identifies directional bias through price interaction with the trailing level.
- Momentum-Based Entries | Signals are triggered only when a crossover confirms strength.
- Optional Heikin Ashi Source | Smooths price data for cleaner signals in volatile markets.
- Visual Bias Coloring | Bars and signals reflect current bullish or bearish conditions.
- Strategy-Ready | Includes built-in long/short execution logic for backtesting and optimization.
Inputs
Reaction Factor – Controls sensitivity to price movement
Volatility Window – ATR period used for dynamic calculation
Use Heikin Ashi Source – Toggle alternative price smoothing
How It Works
The GXG engine builds a trailing threshold based on market volatility. When price moves above or below this level and confirms with a momentum crossover, the system generates a corresponding long or short signal.
This approach helps filter noise while staying responsive to genuine directional moves.
⚠️ Notes
Best suited for trending markets
May produce false signals in sideways conditions
Can be combined with higher timeframe filters for improved accuracyng crypto, forex, and indices.
Note di rilascio
GXG Trend Engine is a price-action-based strategy designed to identify short-term trend shifts using a dynamic volatility-adjusted trailing level. Built around an adaptive ATR framework, it reacts quickly to market movements while maintaining structure during trending conditions.The system continuously calculates a real-time trailing line that follows price using a configurable sensitivity factor and volatility window. Trade signals are generated when price crosses this adaptive level with momentum confirmation, allowing for precise entries during emerging trends.
Unlike traditional indicators, GXG focuses on market structure and volatility alignment, making it effective across multiple asset classes includi
Key Features
- Adaptive Volatility Engine | Uses ATR-based calculations to dynamically adjust to market conditions.
- Real-Time Trend Detection | Identifies directional bias through price interaction with the trailing level.
- Momentum-Based Entries | Signals are triggered only when a crossover confirms strength.
- Optional Heikin Ashi Source | Smooths price data for cleaner signals in volatile markets.
- Visual Bias Coloring | Bars and signals reflect current bullish or bearish conditions.
- Strategy-Ready | Includes built-in long/short execution logic for backtesting and optimization.
Inputs
- Reaction Factor – Controls sensitivity to price movement
- Volatility Window – ATR period used for dynamic calculation
- Use Heikin Ashi Source – Toggle alternative price smoothing
How It Works
The GXG engine builds a trailing threshold based on market volatility. When price moves above or below this level and confirms with a momentum crossover, the system generates a corresponding long or short signal.
This approach helps filter noise while staying responsive to genuine directional moves.
⚠️ Notes
Best suited for trending markets
May produce false signals in sideways conditions
Can be combined with higher timeframe filters for improved accuracyng crypto, forex, and indices.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.