OPEN-SOURCE SCRIPT
ES EMA Pullback System

Filter 1 — Trend Direction
This is determined by the EMA stack.
Bullish
EMA9 > EMA21 > EMA50
Bearish
EMA9 < EMA21 < EMA50
Illustration:
UPTREND
price
↑
│ ●
│ ●
│ ●
│
EMA9
EMA21
EMA50
Filter 2 — Pullback to the Moving Average
You want price to return to the EMA area.
Trend move
↑
│
│
│
│
│
↓ pullback
Example:
price
│
│ ●
│ ●
│ ●
│ ●
│●
└────────────
EMA9
This is where new traders panic and exit.
Professionals enter here.
Filter 3 — Momentum Candle
We need proof that the trend is resuming.
Example bearish signal candle:
│
│ ▲ pullback
│ ▲
│▲
│
│ ▼ big red candle
│ ▼
This candle shows sellers are back in control.
5️⃣ Bearish Trade Example
Step-by-step:
Step 1 — Confirm downtrend
EMA9
EMA21
EMA50
All sloping down.
Step 2 — Wait for pullback
Price retraces toward the EMA zone.
downtrend
↓
↓
↑ pullback
↑
Step 3 — Momentum candle
A bearish candle appears.
pullback
↑
↑
▼ SELL candle
Step 4 — Enter trade
ENTRY = close of signal candle
Step 5 — Stop and target
Your system uses ATR risk management.
Example:
Entry: 5000
Stop: 5008
Target: 4984
That gives 1:2 reward/risk.
Illustration:
stop
│
│
entry ─────┼────────
│
│
target
6️⃣ Bullish Trade Example
The rules are the mirror image.
Step 1 — Confirm uptrend
EMA9 above EMA21
EMA21 above EMA50
Step 2 — Wait for pullback
trend up
↑
↑
↓ pullback
Step 3 — Bullish momentum candle
pullback
↓
↓
▲ strong green candle
Step 4 — Enter
buy at close of signal candle
Step 5 — Stop and target
target = 2x stop distance
7️⃣ When NOT to Trade
Your strategy fails in chop.
Example:
price
│ ▲
│ ▼
│ ▲
│ ▼
│ ▲
This sideways action causes:
false signals
stop outs
drawdown
Warning signs:
🚫 EMAs tangled together
🚫 No clear direction
🚫 Small candles
Illustration:
EMA9
EMA21
EMA50
all tangled
Avoid trading then.
8️⃣ Ideal Trading Session
ES moves most during:
9:30 – 11:30 AM
1:30 – 4:00 PM
Worst time:
11:30 – 1:30 (lunch chop)
9️⃣ Trade Management
Your system is designed for:
Win rate ≈ 35-40%
Reward ≈ 2x risk
That means:
Many small losses
Few big winners
Example sequence:
Loss
Loss
Win
Loss
Win
Win
Still profitable.
🔑 The Core Idea
Your strategy exploits one simple behavior:
Trends
pause
then continue
You enter during the pause.
What a Perfect Setup Looks Like
trend
↓
↓
pullback
↑
↑
momentum candle
▼
ENTRY
This is determined by the EMA stack.
Bullish
EMA9 > EMA21 > EMA50
Bearish
EMA9 < EMA21 < EMA50
Illustration:
UPTREND
price
↑
│ ●
│ ●
│ ●
│
EMA9
EMA21
EMA50
Filter 2 — Pullback to the Moving Average
You want price to return to the EMA area.
Trend move
↑
│
│
│
│
│
↓ pullback
Example:
price
│
│ ●
│ ●
│ ●
│ ●
│●
└────────────
EMA9
This is where new traders panic and exit.
Professionals enter here.
Filter 3 — Momentum Candle
We need proof that the trend is resuming.
Example bearish signal candle:
│
│ ▲ pullback
│ ▲
│▲
│
│ ▼ big red candle
│ ▼
This candle shows sellers are back in control.
5️⃣ Bearish Trade Example
Step-by-step:
Step 1 — Confirm downtrend
EMA9
EMA21
EMA50
All sloping down.
Step 2 — Wait for pullback
Price retraces toward the EMA zone.
downtrend
↓
↓
↑ pullback
↑
Step 3 — Momentum candle
A bearish candle appears.
pullback
↑
↑
▼ SELL candle
Step 4 — Enter trade
ENTRY = close of signal candle
Step 5 — Stop and target
Your system uses ATR risk management.
Example:
Entry: 5000
Stop: 5008
Target: 4984
That gives 1:2 reward/risk.
Illustration:
stop
│
│
entry ─────┼────────
│
│
target
6️⃣ Bullish Trade Example
The rules are the mirror image.
Step 1 — Confirm uptrend
EMA9 above EMA21
EMA21 above EMA50
Step 2 — Wait for pullback
trend up
↑
↑
↓ pullback
Step 3 — Bullish momentum candle
pullback
↓
↓
▲ strong green candle
Step 4 — Enter
buy at close of signal candle
Step 5 — Stop and target
target = 2x stop distance
7️⃣ When NOT to Trade
Your strategy fails in chop.
Example:
price
│ ▲
│ ▼
│ ▲
│ ▼
│ ▲
This sideways action causes:
false signals
stop outs
drawdown
Warning signs:
🚫 EMAs tangled together
🚫 No clear direction
🚫 Small candles
Illustration:
EMA9
EMA21
EMA50
all tangled
Avoid trading then.
8️⃣ Ideal Trading Session
ES moves most during:
9:30 – 11:30 AM
1:30 – 4:00 PM
Worst time:
11:30 – 1:30 (lunch chop)
9️⃣ Trade Management
Your system is designed for:
Win rate ≈ 35-40%
Reward ≈ 2x risk
That means:
Many small losses
Few big winners
Example sequence:
Loss
Loss
Win
Loss
Win
Win
Still profitable.
🔑 The Core Idea
Your strategy exploits one simple behavior:
Trends
pause
then continue
You enter during the pause.
What a Perfect Setup Looks Like
trend
↓
↓
pullback
↑
↑
momentum candle
▼
ENTRY
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。