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.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.