OPEN-SOURCE SCRIPT

Dubic EMA Strategy

358
The Dubic EMA Strategy is a trend-following and volatility-aware strategy that combines dual EMA filters with intelligent range and noise detection to provide clean, actionable entries. It's designed to avoid choppy markets, enhance trade precision, and adapt to different market conditions.

✅ Key Features:
Dual EMA Filter: Enters long when price is above both EMA High & EMA Low, and short when below both.

Range Filter: Avoids entries during tight consolidations or sideways markets.

Volatility Filter: Prevents trading in low-ATR conditions.

Dynamic Risk Management:

ATR-based or fixed % Stop Loss and Take Profit.

Optional Parabolic SAR trailing stop.

One Trade per Trend: Prevents re-entry until trend direction changes.

Unbroken Range Visualization: Detects and displays consolidation zones that can lead to breakouts.

Alerts & Labels: Clean BUY/SELL signals with alerts and chart labels.

🧩 Customization Options:
Adjustable EMA length

Toggle between ATR or % based SL/TP

Volatility threshold

Range detection sensitivity

Enable/disable SAR trailing stop

This strategy works best on trending assets and timeframes with volatility (e.g., crypto, forex, indices). Suitable for both manual trading and automation.

🛠️ Built for clarity, control, and precision.
📈 Backtest, optimize, and deploy with confidence.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.