Discussing the article: "Automating Trading Strategies in MQL5 (Part 47): Nick Rypock Trailing Reverse (NRTR) with Hedging Features"

 

Check out the new article: Automating Trading Strategies in MQL5 (Part 47): Nick Rypock Trailing Reverse (NRTR) with Hedging Features.

In this article, we develop a Nick Rypock Trailing Reverse (NRTR) trading system in MQL5 that uses channel indicators for reversal signals, enabling trend-following entries with hedging support for buys and sells. We incorporate risk management features like auto lot sizing based on equity or balance, fixed or dynamic stop-loss and take-profit levels using ATR multipliers, and position limits.

The Nick Rypock Trailing Reverse strategy identifies potential trend reversals by tracking the emergence of dynamic support levels in an NRTR channel, which is constructed using Average True Range calculations multiplied by a user-defined factor to form upper and lower boundaries that adapt to volatility. Entry signals occur when a new support level appears, initiating a buy position at the start of an upward support (long channel) or a sell position at the beginning of a downward support (short channel), enabling the system to follow emerging trends. Hedging is permitted to maintain opposing positions if enabled. Risk controls are integral, featuring automatic lot sizing proportional to account balance, equity, or free margin to cap exposure per trade, combined with fixed-point or ATR-based stop-loss and take-profit settings for volatility-responsive protection.

Our plan involves loading the NRTR channel indicator to detect support transitions for signals, a free indicator provided by MQL5 which is our main feature here, enforcing entry rules with position caps and hedging, computing adaptive sizes and stops via risk parameters, and implementing trailing and virtual closure routines for active oversight, yielding a reversal-oriented system that balances trend capture with disciplined risk mitigation. In brief, this framework provides a volatility-adapted trading approach centered on trailing reversals and customizable safeguards to ensure consistent operation. Here is a visualization of the strategy framework.

NRTR FRAMEWORK


Author: Allan Munene Mutiiria