OPEN-SOURCE SCRIPT
Atualizado 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.
Notas de Lançamento
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 de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.