OPEN-SOURCE SCRIPT

DrNon EMA5 Cross-Up EMA200 ATR Stop

📌 EMA5 Cross-Up EMA200 Strategy with ATR Trailing Stop & Take-Profit

This TradingView strategy enters a long trade when the 5 EMA crosses above the 200 EMA, signaling an uptrend. It uses an ATR-based trailing stop-loss and exits at a predefined take-profit percentage.

How It Works
1. Entry Condition → A long position is triggered when the 5 EMA crosses above the 200 EMA.
2. Stop-Loss (ATR-Based Trailing Stop) → The stop price is dynamically set at Close - (ATR * Multiplier), adjusting as the price moves up.
3. Take-Profit → The strategy exits if the price reaches 5% above entry.
4. Exit Condition → The trade closes when either the ATR trailing stop or the take-profit target is hit.

Why Use This?

✅ Trend-Following – Catches strong uptrends with EMA crossover.
✅ Dynamic Stop-Loss – Uses ATR to adapt to market volatility.
✅ Automated Risk Management – Ensures systematic exits.

This strategy works well in trending markets but may require filters to avoid false signals in sideways conditions. Traders can adjust ATR multipliers and take-profit % for optimization. 🚀

إخلاء المسؤولية