OPEN-SOURCE SCRIPT

Strategy with DI+/DI-, ADX, RSI, MACD, EMA + Time Stop [EXP. 1]

178
🧠 Concept & Purpose

This strategy combines several time-tested technical indicators—DI+/DI-, ADX, RSI, MACD, and long-term EMAs—to filter trend strength, momentum, and timing precision. The goal was to develop a multi-layered trend-following system suitable for low timeframes (tested on BTCUSDT 5m) while controlling risk with tight stop-losses, a high reward ratio, and a time-based exit to avoid long exposure in sideways markets.

⚙️ Components & Logic
• ADX + DI+/DI-: Confirm the presence and direction of a strong trend.
• RSI: Used to filter momentum bias. Buy signals require RSI > 55, sell signals < 45.
• MACD Histogram: Ensures entry is aligned with short-term momentum shifts.
• Strong Candle Filter: Filters out weak entries using candle body % strength.
• EMA 600 & EMA 2400: Define long-term trend bias. Entries only occur within 25 bars after EMA crossover in trend direction.
• Time-Based Stop: If a trade doesn’t move at least 0.75% in favor within 85 bars, it is closed to minimize stagnation.
• Reward-Risk Management: 1% stop-loss, 7.5:1 reward-to-risk ratio.
• One Signal Per Trend Shift: Only takes the first entry after each EMA cross.

📊 Strategy Settings & Backtest Conditions
• Initial Capital: $10,000
• Commission: 0.1% per trade
• Timeframe: 5-minute
• Test Range: Jan–Apr 2023
• Sample Size: Limited (⚠️ <10 trades – experimental phase)

Backtest Results (v1.0)

This version showed:

• ✅ 66.7% win rate on 3 trades
• 📉 P/L: +11,257.46 USDT (+112.57%)
• 🔻 Max drawdown: 5.03%
• 📈 Profit factor: 11.01

In an earlier test configuration:

• ❌ 5 trades, 0 wins
• 📉 -14.45% total P&L
• ⚠️ All losses hit the 1.5% stop
• ⚠️ Profit factor: 0.00

This contrast shows how sensitive the logic is to market context and parameter tuning.

💡 Purpose of Publication

This strategy is experimental and educational. It is open-sourced for transparency and to help other traders learn how complex indicator stacking may or may not work in real environments. The failed and improved tests are both part of the process.

⚠️ Disclaimer

This script is not financial advice. Please do your own research, forward-test it thoroughly, and adjust parameters based on your asset and timeframe.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。