OPEN-SOURCE SCRIPT
AlphaTrend Strategy-Dexter

📌 AlphaTrend Strategy – Brief Description
The AlphaTrend Strategy uses ATR with RSI/MFI filters to build a dynamic trend line.
Buy when AlphaTrend crosses above its past value (trend up).
Sell when AlphaTrend crosses below its past value (trend down).
Works as a trend-following system, but can whipsaw in sideways markets.
📊 Backtest Summary (Nifty 50, 10-min TF)
Period: Aug 19, 2024 – Sep 11, 2025
Metric Value
Total P&L ₹5,595.65 (+0.56%)
Total Trades 230
Win Rate 42.61%
Profit Factor 1.40
Max Equity Drawdown ₹1,704.15 (0.17%)
Sharpe Ratio -1.80 ❌
Sortino Ratio -0.87 ❌
⚠️ Observations & Risks
Profit Factor > 1 → profitable but thin edge.
Negative Sharpe & Sortino → risk-adjusted performance is poor (high volatility, low consistency).
Low Win Rate (42%) → depends heavily on a few big winners.
No Stop Loss / Take Profit → exposes account to streaks of losses.
Works better in trending markets, fails in choppy/sideways conditions.
✅ Caution: The system makes money on paper, but the risk profile is weak. Use strict money management and additional filters (higher timeframe trend or volume confirmation) before considering it live.
The AlphaTrend Strategy uses ATR with RSI/MFI filters to build a dynamic trend line.
Buy when AlphaTrend crosses above its past value (trend up).
Sell when AlphaTrend crosses below its past value (trend down).
Works as a trend-following system, but can whipsaw in sideways markets.
📊 Backtest Summary (Nifty 50, 10-min TF)
Period: Aug 19, 2024 – Sep 11, 2025
Metric Value
Total P&L ₹5,595.65 (+0.56%)
Total Trades 230
Win Rate 42.61%
Profit Factor 1.40
Max Equity Drawdown ₹1,704.15 (0.17%)
Sharpe Ratio -1.80 ❌
Sortino Ratio -0.87 ❌
⚠️ Observations & Risks
Profit Factor > 1 → profitable but thin edge.
Negative Sharpe & Sortino → risk-adjusted performance is poor (high volatility, low consistency).
Low Win Rate (42%) → depends heavily on a few big winners.
No Stop Loss / Take Profit → exposes account to streaks of losses.
Works better in trending markets, fails in choppy/sideways conditions.
✅ Caution: The system makes money on paper, but the risk profile is weak. Use strict money management and additional filters (higher timeframe trend or volume confirmation) before considering it live.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menjadikannya sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Hormat untuk penulisnya! Meskipun anda dapat menggunakannya secara gratis, ingatlah bahwa penerbitan ulang kode tersebut tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menjadikannya sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Hormat untuk penulisnya! Meskipun anda dapat menggunakannya secara gratis, ingatlah bahwa penerbitan ulang kode tersebut tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.