OPEN-SOURCE SCRIPT
Updated

EMA 10/20/50 Alignment Strategy

546
### 📘 **Strategy Name**

**EMA 10/20/50 Trend Alignment Strategy**

---

### 📝 **Description (for Publishing)**

This strategy uses the alignment of Exponential Moving Averages (EMAs) to identify strong bullish trends. It enters a long position when the short-term EMA is above the mid-term EMA, which is above the long-term EMA — a classic sign of trend strength.

#### 🔹 Entry Criteria:

* **EMA10 > EMA20 > EMA50**: A bullish alignment that signals momentum in an upward direction.
* The strategy enters a **long position** when this alignment occurs.

#### 🔹 Exit Criteria:

* The long position is closed when the EMA alignment breaks (i.e., the trend weakens or reverses).

#### 🔹 Additional Features:

* Includes a **date range filter**, allowing you to backtest the strategy over a specific period.
* Uses **100% of available capital** for each trade (position size auto-scales with account balance).
* No short positions, stop loss, or take profit are applied — this is a trend-following strategy meant to ride bullish moves.

---

### ✅ Best For:

* Traders looking for a **simple, trend-based entry system**
* Testing price momentum strategies during specific market regimes
* Visualizing EMA stacking patterns in historical data
Release Notes
### 📘 **Strategy Name**

**EMA 10/20/50 Trend Alignment Strategy**

---

### 📝 **Description (for Publishing)**

This strategy uses the alignment of Exponential Moving Averages (EMAs) to identify strong bullish trends. It enters a long position when the short-term EMA is above the mid-term EMA, which is above the long-term EMA — a classic sign of trend strength.

#### 🔹 Entry Criteria:

* **EMA10 > EMA20 > EMA50**: A bullish alignment that signals momentum in an upward direction.
* The strategy enters a **long position** when this alignment occurs.

#### 🔹 Exit Criteria:

* The long position is closed when the EMA alignment breaks (i.e., the trend weakens or reverses).

#### 🔹 Additional Features:

* Includes a **date range filter**, allowing you to backtest the strategy over a specific period.
* Uses **100% of available capital** for each trade (position size auto-scales with account balance).
* No short positions, stop loss, or take profit are applied — this is a trend-following strategy meant to ride bullish moves.

---

### ✅ Best For:

* Traders looking for a **simple, trend-based entry system**
* Testing price momentum strategies during specific market regimes
* Visualizing EMA stacking patterns in historical data

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.