OPEN-SOURCE SCRIPT
EMA 9 + VWAP Strategy with ATR Trailing Stop - WIN THE TRADE

EMA 9 + VWAP Strategy with ATR Trailing Stop
A simple trend-following strategy that combines the power of the 9 EMA, VWAP, and an ATR-based trailing stop for cleaner entries and dynamic trade management.
This strategy is designed for traders who want a straightforward system with minimal discretion and clear buy/sell conditions.
Strategy Logic
Buy Conditions
A long position is opened when the 9 EMA crosses above VWAP.
Sell Conditions
A short position is opened when the 9 EMA crosses below VWAP.
Trade Management
Uses an ATR trailing stop to automatically lock in profits and manage risk. The trailing stop dynamically adjusts based on market volatility.
Features
EMA + VWAP crossover entries
ATR-based trailing stop exits
Visual BUY/SELL labels
Dynamic trailing stop lines plotted on chart
Built-in alerts
Works well for scalping, intraday trading, and trend continuation setups
Best Markets
This strategy can be used on Forex, Gold (XAUUSD), Indices, Crypto, and Stocks.
Recommended Timeframes
Popular timeframes include 1 Minute, 5 Minute, 15 Minute, and 1 Hour.
Lower timeframes generally produce more signals, while higher timeframes can provide cleaner trends.
Inputs
ATR Length controls the ATR calculation period.
ATR Multiplier adjusts the trailing stop distance.
Increasing the ATR multiplier gives trades more room to breathe, while lowering it creates tighter exits.
Alerts
The script includes ready-to-use JSON webhook alerts for automation and bot integrations.
You can connect it to trading bots, Discord alerts, Telegram alerts, trade execution systems, and prop firm automation tools.
Disclaimer
This strategy is for educational purposes only and should not be considered financial advice. Always test and optimize settings before using on a live account.
A simple trend-following strategy that combines the power of the 9 EMA, VWAP, and an ATR-based trailing stop for cleaner entries and dynamic trade management.
This strategy is designed for traders who want a straightforward system with minimal discretion and clear buy/sell conditions.
Strategy Logic
Buy Conditions
A long position is opened when the 9 EMA crosses above VWAP.
Sell Conditions
A short position is opened when the 9 EMA crosses below VWAP.
Trade Management
Uses an ATR trailing stop to automatically lock in profits and manage risk. The trailing stop dynamically adjusts based on market volatility.
Features
EMA + VWAP crossover entries
ATR-based trailing stop exits
Visual BUY/SELL labels
Dynamic trailing stop lines plotted on chart
Built-in alerts
Works well for scalping, intraday trading, and trend continuation setups
Best Markets
This strategy can be used on Forex, Gold (XAUUSD), Indices, Crypto, and Stocks.
Recommended Timeframes
Popular timeframes include 1 Minute, 5 Minute, 15 Minute, and 1 Hour.
Lower timeframes generally produce more signals, while higher timeframes can provide cleaner trends.
Inputs
ATR Length controls the ATR calculation period.
ATR Multiplier adjusts the trailing stop distance.
Increasing the ATR multiplier gives trades more room to breathe, while lowering it creates tighter exits.
Alerts
The script includes ready-to-use JSON webhook alerts for automation and bot integrations.
You can connect it to trading bots, Discord alerts, Telegram alerts, trade execution systems, and prop firm automation tools.
Disclaimer
This strategy is for educational purposes only and should not be considered financial advice. Always test and optimize settings before using on a live account.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน