PROTECTED SOURCE SCRIPT
5m Trend Continuation Strategy [With Dashboard]

Overview: This strategy is designed for Intraday Trading on the 5-minute timeframe. It focuses on capturing "Trend Continuation" moves by identifying pullbacks to the EMA and entering when the price resumes the trend. It includes a built-in Performance Dashboard and a strict Risk Management system.
📈 Strategy Logic:
The strategy combines Trend, Momentum, and Price Action:
Trend Filter (EMA 21):
Buy: Price must be above the 21 EMA.
Sell: Price must be below the 21 EMA.
Momentum Filter (RSI 14):
Trades are only taken if RSI is in favor (RSI > 50 for Buy, RSI < 50 for Sell).
Entry Setup (Pullback & Breakout):
The strategy waits for a valid pullback candle (Signal Candle).
Once a signal is confirmed, it marks a "Ready" level (High/Low + Buffer).
Entry: A trade is triggered immediately when the price crosses this level (Stop Limit Order).
Setup Validity:
If the entry is not triggered within Max Break Candles (default 3), the setup is automatically cancelled to avoid stale trades.
🛡️ Risk Management:
Stop Loss (SL): Placed dynamically at the recent swing High/Low with a buffer.
Target (TP): Calculated based on a fixed Risk:Reward (RR) Ratio (Default: 1.5R).
Intraday Square-off: Forces exit at a specific time (Default: 23:40) to close all positions before the market ends.
✨ Key Features:
Performance Dashboard: Shows Net Profit, Win Rate, Drawdown, and Profit Factor directly on the chart.
Alerts Included: Ready, Entry, Target, SL, and Setup Cancel alerts are pre-configured.
No Repainting: Uses bar confirmation for signals and real-time tick data for execution.
Clean Visuals: Plots Entry, SL, and Target lines on the chart for active trades.
⚙️ Default Settings:
Timeframe: 5 Minutes
EMA Length: 21
RSI Length: 14
Risk:Reward: 1.5
Buffer: 0.10 (Fixed Points)
⚠️ Disclaimer: This strategy is for educational purposes only. Past performance does not guarantee future results. Please backtest on your specific instrument before using it with real capital.
📈 Strategy Logic:
The strategy combines Trend, Momentum, and Price Action:
Trend Filter (EMA 21):
Buy: Price must be above the 21 EMA.
Sell: Price must be below the 21 EMA.
Momentum Filter (RSI 14):
Trades are only taken if RSI is in favor (RSI > 50 for Buy, RSI < 50 for Sell).
Entry Setup (Pullback & Breakout):
The strategy waits for a valid pullback candle (Signal Candle).
Once a signal is confirmed, it marks a "Ready" level (High/Low + Buffer).
Entry: A trade is triggered immediately when the price crosses this level (Stop Limit Order).
Setup Validity:
If the entry is not triggered within Max Break Candles (default 3), the setup is automatically cancelled to avoid stale trades.
🛡️ Risk Management:
Stop Loss (SL): Placed dynamically at the recent swing High/Low with a buffer.
Target (TP): Calculated based on a fixed Risk:Reward (RR) Ratio (Default: 1.5R).
Intraday Square-off: Forces exit at a specific time (Default: 23:40) to close all positions before the market ends.
✨ Key Features:
Performance Dashboard: Shows Net Profit, Win Rate, Drawdown, and Profit Factor directly on the chart.
Alerts Included: Ready, Entry, Target, SL, and Setup Cancel alerts are pre-configured.
No Repainting: Uses bar confirmation for signals and real-time tick data for execution.
Clean Visuals: Plots Entry, SL, and Target lines on the chart for active trades.
⚙️ Default Settings:
Timeframe: 5 Minutes
EMA Length: 21
RSI Length: 14
Risk:Reward: 1.5
Buffer: 0.10 (Fixed Points)
⚠️ Disclaimer: This strategy is for educational purposes only. Past performance does not guarantee future results. Please backtest on your specific instrument before using it with real capital.
Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.