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
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.