OPEN-SOURCE SCRIPT
EMA System

**EMA System V6 (9/21/50/200) — Context, Pullback & Volume**
This indicator turns the classic 9/21/50/200 EMA stack into a simple, rule-based “trend + pullback” framework.
It’s designed to help you trade with **context**, not chase candles.
### Core idea
Price doesn’t “respect” indicators — but moving averages can act like a **map of participation** over time.
Different EMAs represent different horizons, and when they align, trends tend to behave cleaner.
### What it plots
* **EMA 9** (short-term momentum)
* **EMA 21** (pullback / re-entry zone)
* **EMA 50** (trend structure)
* **EMA 200** (macro filter / regime)
### Trend filter (high-probability context)
The script highlights a “trend-friendly” environment when:
* **Price is above EMA 200** → *Long bias / long-only mode*
* **EMA 21 is above EMA 50** → *Trend is considered valid*
* **Price is not below EMA 50** → *Avoid buying in weak structure*
### Pullback & Volume conditions
It then looks for trend continuation opportunities by checking:
* **Price pulls back near EMA 21**
(proximity is configurable by **ATR distance** or **% distance**)
* **Volume dries up during the pullback**
(volume must be below its SMA by a configurable factor)
### Signals
* **SET** = All filters are aligned and the pullback conditions are met (setup is ready)
* **BUY** = A bullish candle confirms the setup near EMA 21
(bullish candle definition is configurable)
### Built-in status panel
A small panel shows the current state:
* Long-only ON/OFF (EMA200)
* Trend valid / not valid (21 vs 50)
* Pullback near/far (EMA21 proximity)
* Volume dries up / not
* Buys OK / No buys (relative to EMA50)
### Notes
* This is an **indicator**, not a complete trading strategy.
* Signals are meant to be used with proper risk management and market structure.
* Works on any asset (crypto, forex, stocks) — best results typically appear in **clean trending markets**.
---
If you want, I can also add a short “one-liner” summary for the first line of the description (more marketing style), or a more technical version for serious quants.
This indicator turns the classic 9/21/50/200 EMA stack into a simple, rule-based “trend + pullback” framework.
It’s designed to help you trade with **context**, not chase candles.
### Core idea
Price doesn’t “respect” indicators — but moving averages can act like a **map of participation** over time.
Different EMAs represent different horizons, and when they align, trends tend to behave cleaner.
### What it plots
* **EMA 9** (short-term momentum)
* **EMA 21** (pullback / re-entry zone)
* **EMA 50** (trend structure)
* **EMA 200** (macro filter / regime)
### Trend filter (high-probability context)
The script highlights a “trend-friendly” environment when:
* **Price is above EMA 200** → *Long bias / long-only mode*
* **EMA 21 is above EMA 50** → *Trend is considered valid*
* **Price is not below EMA 50** → *Avoid buying in weak structure*
### Pullback & Volume conditions
It then looks for trend continuation opportunities by checking:
* **Price pulls back near EMA 21**
(proximity is configurable by **ATR distance** or **% distance**)
* **Volume dries up during the pullback**
(volume must be below its SMA by a configurable factor)
### Signals
* **SET** = All filters are aligned and the pullback conditions are met (setup is ready)
* **BUY** = A bullish candle confirms the setup near EMA 21
(bullish candle definition is configurable)
### Built-in status panel
A small panel shows the current state:
* Long-only ON/OFF (EMA200)
* Trend valid / not valid (21 vs 50)
* Pullback near/far (EMA21 proximity)
* Volume dries up / not
* Buys OK / No buys (relative to EMA50)
### Notes
* This is an **indicator**, not a complete trading strategy.
* Signals are meant to be used with proper risk management and market structure.
* Works on any asset (crypto, forex, stocks) — best results typically appear in **clean trending markets**.
---
If you want, I can also add a short “one-liner” summary for the first line of the description (more marketing style), or a more technical version for serious quants.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。