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.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.