OPEN-SOURCE SCRIPT

WEN_GPT - CDC Action Zone V.2

139
**WEN_GPT - CDC Action Zone V.2 Strategy**

The **WEN_GPT - CDC Action Zone V.2 Strategy** is a trend-following strategy based on the **CDC Action Zone** indicator, which utilizes two exponential moving averages (EMAs) to identify bullish and bearish trends. This strategy is designed for medium-volatility markets and executes trades based on trend reversals.

**Key Features:**
- **EMA-Based Trend Detection:**
- A short EMA (Fast) and a long EMA (Slow) are calculated using an additional smoothing EMA (AP).
- A bullish trend is identified when the Fast EMA crosses above the Slow EMA.
- A bearish trend is identified when the Fast EMA crosses below the Slow EMA.

- **Trade Execution Logic:**
- **Long Entry:** Opens a long position when the trend shifts from bearish to bullish.
- **Exit Position:** Closes the long position when the trend shifts from bullish to bearish.
- **No Short Trades:** This strategy only takes long positions and exits instead of opening short trades.

- **Visual Elements for Market Analysis:**
- Plots the Fast and Slow EMAs on the chart.
- Uses dynamic bar coloring to represent different market conditions:
- **Green:** Strong bullish momentum.
- **Red:** Strong bearish momentum.
- **Yellow:** Weak bullish signal (caution).
- **Blue:** Weak bearish signal (caution).

- **Risk Management & Execution Settings:**
- Uses 100% of the account equity for each trade.
- Includes a **0.1% commission** and **3-point slippage** to simulate real trading conditions.
- Trades are only executed within the user-defined time range (default: **January 1, 2018 – December 31, 2030**).

This strategy is ideal for traders looking for **trend-following** setups with clear entry and exit signals. It provides a structured approach to capitalizing on trend shifts while maintaining an intuitive visual representation of market conditions.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.