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. קרא עוד ב־תנאי השימוש.