Skip to content
All library documents

Moving Average and Oscillator Signals with Bar Based Trailing Stops

Article MQL5 code base

Summary

This MetaTrader expert advisor combines three moving averages with the Moving Average of Oscillator and Relative Vigor Index indicators. It evaluates signals only when a new bar forms, and exposes a minimum separation setting for the moving averages. The description outlines a technical indicator approach but does not specify the exact entry or exit rules, so the signal logic cannot be reconstructed from this text alone.

Risk and trade management options include fixed lots or sizing based on a percentage of free margin, stop loss and take profit settings, and a minimum balance condition that closes the advisor below the threshold. A trailing stop can use prior bar highs or lows, with a selectable timeframe and offset from the bar shadow. The document mentions a EURUSD hourly example using five minute bars for trailing, but provides no performance results or test details. It therefore describes configurable mechanics rather than evidence that the method is profitable.

Key ideas

  • The advisor combines three moving averages, the Moving Average of Oscillator, and Relative Vigor Index.
  • It checks for trading decisions only when a new bar forms.
  • Position size can be fixed or calculated from free margin risk.
  • Trailing stops can follow prior bar highs or lows on a selectable timeframe.
  • The description does not provide exact signal rules or performance evidence.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.