OPEN-SOURCE SCRIPT
EMA Trend (Long Only) - ATR Stop, No Trailing

This strategy is designed to capture medium- and long-term uptrends in Bitcoin on the 1-day timeframe. It uses a combination of moving average crossovers, momentum confirmation, and trend strength filters to identify high-quality long entries, while controlling risk with a dynamic stop-loss.
⚙️ How It Works:
Long Entry Conditions:
✅ 20 EMA crosses above 50 EMA — trend trigger
✅ +DI > -DI — directional strength
✅ RSI > 40 — confirms bullish momentum
✅ ADX > 5 — filters low-trend environments
✅ EMA separation > 0.0% — prevents flat crossovers
Exit Conditions:
❌ Manual exit when 20 EMA crosses below 50 EMA
❌ Stop-loss triggered at 4× ATR below entry price
📈 Key Features:
Focuses on high-quality trend entries
Designed for swing traders or position traders
Works best on Bitcoin 1D chart, but adaptable to other assets
🔧 Customizable Inputs:
EMA lengths
RSI threshold
ADX minimum value
ATR stop-loss multiplier
Minimum EMA separation filter
⚠️ Notes:
Long-only (no short trades)
Works best in trending markets
Filters can be adjusted to increase or reduce trade frequency
⚙️ How It Works:
Long Entry Conditions:
✅ 20 EMA crosses above 50 EMA — trend trigger
✅ +DI > -DI — directional strength
✅ RSI > 40 — confirms bullish momentum
✅ ADX > 5 — filters low-trend environments
✅ EMA separation > 0.0% — prevents flat crossovers
Exit Conditions:
❌ Manual exit when 20 EMA crosses below 50 EMA
❌ Stop-loss triggered at 4× ATR below entry price
📈 Key Features:
Focuses on high-quality trend entries
Designed for swing traders or position traders
Works best on Bitcoin 1D chart, but adaptable to other assets
🔧 Customizable Inputs:
EMA lengths
RSI threshold
ADX minimum value
ATR stop-loss multiplier
Minimum EMA separation filter
⚠️ Notes:
Long-only (no short trades)
Works best in trending markets
Filters can be adjusted to increase or reduce trade frequency
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.