OPEN-SOURCE SCRIPT

Turtle Strategy - Triple EMA Trend with ADX and ATR

304
Description
The Triple EMA Trend strategy is a directional momentum system built on the alignment of three exponential moving averages and a strong ADX confirmation filter. It is designed to capture established trends while maintaining disciplined risk management through ATR-based stops and targets.

Core Logic
The system activates only under high-trend conditions, defined by the Average Directional Index (ADX) exceeding a configurable threshold (default: 43).
A bullish setup occurs when the short-term EMA is above the mid-term EMA, which in turn is above the long-term EMA, and price trades above the fastest EMA.
A bearish setup is the mirror condition.

Execution Rules

Entry:
 • Long when ADX confirms trend strength and EMA alignment is bullish.
 • Short when ADX confirms trend strength and EMA alignment is bearish.

Exit:
 • Stop Loss: 1.8 × ATR below (for longs) or above (for shorts) the entry price.
 • Take Profit: 3.3 × ATR in the direction of the trade.
Both parameters are configurable.

Additional Features

 • Start/end date inputs for controlled backtesting.
 • Selective activation of long or short trades.
 • Built-in commission and position sizing (percent of equity).
 • Full visual representation of EMAs, ADX, stop-loss, and target levels.

This strategy emphasizes clean trend participation, strict entry qualification, and consistent reward-to-risk structure. Ideal for swing or medium-term testing across trending assets.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.