OPEN-SOURCE SCRIPT
已更新 9/15 EMA Scalper

9/15 EMA Scalper — by uzairbaloch
This script is a price-action based scalping system built around the 9 EMA and 15 EMA trend structure.
It identifies short-term reversal points where the market pulls back into the EMAs and confirms direction with a strong candle signal.
The strategy looks for:
• A clear EMA trend (9 above 15 for buys, 9 below 15 for sells)
• Pullback into EMA9/EMA15 with candle bodies touching the fast EMA
• Strong confirmation candle (engulfing / strong momentum / controlled wick)
• Optional slope filter to avoid flat, choppy sessions
• Automatic trade labels showing Entry, SL and TP (based on R:R)
The script is designed for scalping on gold, indices, and high-volatility FX pairs.
It resets trade logic immediately after SL or TP is hit, so it can catch the next valid signal without delay.
This tool is meant as an indicator — not a full strategy — and can be used to visually mark high-probability EMA pullback setups with precise levels.
Author: uzairbaloch
This script is a price-action based scalping system built around the 9 EMA and 15 EMA trend structure.
It identifies short-term reversal points where the market pulls back into the EMAs and confirms direction with a strong candle signal.
The strategy looks for:
• A clear EMA trend (9 above 15 for buys, 9 below 15 for sells)
• Pullback into EMA9/EMA15 with candle bodies touching the fast EMA
• Strong confirmation candle (engulfing / strong momentum / controlled wick)
• Optional slope filter to avoid flat, choppy sessions
• Automatic trade labels showing Entry, SL and TP (based on R:R)
The script is designed for scalping on gold, indices, and high-volatility FX pairs.
It resets trade logic immediately after SL or TP is hit, so it can catch the next valid signal without delay.
This tool is meant as an indicator — not a full strategy — and can be used to visually mark high-probability EMA pullback setups with precise levels.
Author: uzairbaloch
發行說明
✅ Script Description for Update (v1 → v2 or latest)9/15 EMA Scalper — Updated Version
This update introduces a smarter and more accurate entry system designed to fix the common issues with fast-moving markets like Gold, BTC, and indices. The core logic remains based on the 9/15 EMA trend structure, but the entry confirmation has been significantly upgraded.
🔥 Major Improvements
1. Displacement-Candle Detection
The script now filters for true displacement candles by analyzing body size, wick size, and overall strength. Weak candles, indecision candles, and long-wick candles are ignored.
2. Real-Time FVG Retest Entry (No Candle Close Required)
Instead of entering at the close of a displacement candle, the script waits for the next live candle to tap 30–70% of the displacement candle’s Fair Value Gap.
As soon as the retest happens → the signal prints instantly.
3. Dynamic FVG Zone Handling
FVG is detected only on valid displacement candles. All normal candles are ignored to keep the chart clean.
4. Correct Swing-Based SL + 1:2 TP
Stop loss is assigned automatically at the previous candle’s swing point.
Take profit is 2R by default, adjustable in settings.
5. Improved Cooldown Logic
If a trade hits TP or SL, the script resets immediately and looks for the next setup — no unnecessary freezing.
6. EMA Angle & Slope Validation
Both EMAs now must show a minimum angle/slope for a valid trend, reducing false entries in choppy markets.
📌 Summary
This update makes the scalper far more accurate by avoiding premature entries, eliminating fake displacement signals, and ensuring entries align with real imbalances retested in live price action.
Perfect for scalpers who rely on fast, precise confirmations.
Author: uzairbaloch
發行說明
🚀 What’s New in Version 31. Full Candle-Type Intelligence System (Pin Bar, Engulfing, Displacement)
The script now understands three key bullish and bearish signals, just like a human trader:
• Pin bars forming on or touching the EMAs
• True engulfing candles
• High-momentum displacement candles
Only displacement candles are allowed to generate FVG setups, while pins and engulfings trigger normal EMA entries.
This removes all the “everything looks like FVG” problem from older versions.
⸻
2. FVG Entry Mode Selector (Conservative vs. Aggressive)
You now choose how strict you want FVG entries to behave:
Conservative Mode
• FVG retest must stay above the displacement low (for buys)
• Must stay below the displacement high (for sells)
• Prevents entries where price tries to break structure immediately
Aggressive Mode
• As long as 30–70% of the candle is tapped, the entry is valid
• Even if price sweeps the displacement candle’s high/low
• Great for fast-moving charts like XAU or BTC
You finally get to control how bold the strategy should be.
⸻
3. FVG Validation Fixed — Only When Price Returns Properly
FVG signals now fire ONLY when:
• The displacement candle is touching/crossing 9 & 15 EMA
• The next bar actually taps the 30–70% zone
• Retest is valid according to the mode selected
• Candle is not miles away from EMAs
This solves the previous issue where FVG printed on bad setups.
⸻
4. Arrow + Label System Rebuilt (Cleaner UI)
Signals are now visually clean:
• Arrows appear directly under/above candle
• Labels appear below arrows for buys, above arrows for sells
• Arrow transparency set to 20 for softer look
• Chart no longer feels cluttered
• Entries, SL and TP values remain readable and organized
⸻
5. Normal EMA Entries No Longer Interfere With FVG Logic
The script now separates both systems:
• EMA entries follow pin/engulf/strong-candle rules
• FVG entries trigger only from displacement logic
• No overlapping, no lost signals
The engine finally behaves predictably.
⸻
6. Big Improvement for Reversal Scenarios
We added logic to skip FVG buys if:
• The next candle invalidates displacement by breaking the low
• Or sells if it breaks the high
This filters out many losing setups that looked valid visually but were never safe entries.
⸻
📌 Summary — Why v3 Is a Big Upgrade
Version 3 feels like a real trader’s brain:
✔ Detects pin bars, engulfing candles, and real displacement
✔ FVG entries are now highly accurate and clean
✔ Option for strict/relaxed behavior depending on trader preference
✔ EMA logic is untouched and stays stable
✔ Arrows and labels redesigned for clarity
✔ Helps avoid “fake comeback” FVG signals
✔ Much more reliable on Gold 5m, BTC, and NAS100
This is the most stable and realistic version so far.
Author: uzairbaloch
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。