OPEN-SOURCE SCRIPT
MNQ 5m V5 AGG Dual Mode Trend Continuation Strategy

This strategy is designed for MNQ and NQ on the 5 minute timeframe. It focuses on trend continuation using structured EMA alignment, slope confirmation, and ATR based volatility expansion. The goal is to capture high probability pullbacks and breakdown moves during strong intraday trends while maintaining disciplined risk control.
Core Concept
The strategy trades only in the direction of the prevailing trend. Trend direction is defined by the relationship between a fast EMA and a slow EMA. A slope filter is applied to ensure momentum is present and to avoid flat consolidation environments. An ATR expansion filter confirms volatility participation before allowing entries.
Entry Logic
Long entries occur when price pulls back to the fast EMA within an uptrend and closes back above it, provided slope and volatility conditions are satisfied.
Short entries occur either on pullbacks to the fast EMA within a downtrend or on breakdown continuation moves when price makes a new low in an established bearish structure. Breakdown logic helps capture strong trend days where price does not offer clean pullbacks.
Dual Exit Modes
Scalp Mode is optimized for consistency. It uses a moderate ATR based stop and a controlled ATR target with earlier trailing activation. This mode aims for a higher win rate and smoother equity curve behavior.
Runner Mode is optimized for larger directional moves. It uses a wider ATR target and delayed trailing activation, allowing trades more room to expand. This mode typically produces a lower win rate but higher average winner size and improved expectancy during strong trend sessions.
Risk Management
The strategy uses ATR based dynamic stop loss and take profit levels. Trailing stops are optional and adaptive to volatility. A cooldown period after each exit prevents immediate re entry and reduces overtrading. Trading can be restricted to regular trading hours and positions can automatically close at session end.
Best Conditions
This strategy performs best during trending sessions with expanding volatility, especially during post open momentum or strong directional days. It is not designed for low volatility, range bound, or mean reversion environments.
Recommended Use
Optimized for MNQ and NQ on the 5 minute chart. Performance can improve when aligned with higher timeframe bias such as 15 minute or 1 hour structure.
Disclaimer
This script is for research and educational purposes only. Futures trading involves substantial risk. Always forward test and apply proper position sizing before trading live capital.
Core Concept
The strategy trades only in the direction of the prevailing trend. Trend direction is defined by the relationship between a fast EMA and a slow EMA. A slope filter is applied to ensure momentum is present and to avoid flat consolidation environments. An ATR expansion filter confirms volatility participation before allowing entries.
Entry Logic
Long entries occur when price pulls back to the fast EMA within an uptrend and closes back above it, provided slope and volatility conditions are satisfied.
Short entries occur either on pullbacks to the fast EMA within a downtrend or on breakdown continuation moves when price makes a new low in an established bearish structure. Breakdown logic helps capture strong trend days where price does not offer clean pullbacks.
Dual Exit Modes
Scalp Mode is optimized for consistency. It uses a moderate ATR based stop and a controlled ATR target with earlier trailing activation. This mode aims for a higher win rate and smoother equity curve behavior.
Runner Mode is optimized for larger directional moves. It uses a wider ATR target and delayed trailing activation, allowing trades more room to expand. This mode typically produces a lower win rate but higher average winner size and improved expectancy during strong trend sessions.
Risk Management
The strategy uses ATR based dynamic stop loss and take profit levels. Trailing stops are optional and adaptive to volatility. A cooldown period after each exit prevents immediate re entry and reduces overtrading. Trading can be restricted to regular trading hours and positions can automatically close at session end.
Best Conditions
This strategy performs best during trending sessions with expanding volatility, especially during post open momentum or strong directional days. It is not designed for low volatility, range bound, or mean reversion environments.
Recommended Use
Optimized for MNQ and NQ on the 5 minute chart. Performance can improve when aligned with higher timeframe bias such as 15 minute or 1 hour structure.
Disclaimer
This script is for research and educational purposes only. Futures trading involves substantial risk. Always forward test and apply proper position sizing before trading live capital.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。