• Overview
  • Reviews
  • Comments

Many Moving Averages

The Expert Advisor determines a trade signal based on multiple moving average lines. It can use a lot of such lines. When a sufficient number of lines signal a buy, the EA makes a buy deal, and similarly for sell deals. The number of lines and many other settings are customizable. In addition, the EA features an additional signal for confirming opening a deal, which is calculated based on the history of the currency pair and parameters of the last closed bar. If necessary, it can be disabled.

This Expert Advisor does not use any risky trading methods, it is able to transfer stop loss to breakeven and supports trailing stop feature.


Input parameters

  • Lots - lot size (if Lots=0, then the lot will be calculated based on the percentage of account free margin);
  • Percentage of free money - percentage of free margin to open each new trade (applicable when Lots=0);
  • MaxSpread - the maximum allowable spread to open trades (for floating-spread symbols, to avoid opening with a large spread);
  • Magic - unique identifier (use different magic numbers if multiple Expert Advisors run in your terminal);
  • StopLoss - stop loss in points;
  • TakeProfit - take profit in points;
  • Stop to breakeven after - move stop loss to breakeven after a specified number of points;
  • TrailingStopValue - trailing stop value (distance from the current price of the currency pair), if set to 0, trailing stop is not used;
  • MAFilterStartPeriod - initial period of the Moving averages indicators;
  • MAFilterCount - the number of the Moving averages indicators;
  • MAFilterIncrease - increase of the period of each Moving average indicator;
  • MinTrendStrength - the minimum strength of signals from the Moving averages indicators to open a deal;
  • BarsSignalEnabled - enable and disable the signal depending on the parameters of the last closed bar;
  • HistoryForSignal - the number of bars in history to determine the best BarsSignal signal;
  • BarsLengthForSignal - length of bars to determine the BarsSignal signal;
  • AreaForSignal - size of the area to determine the BarsSignal signal;
  • BarsForSignal - the number of bars to determine the BarsSignal signal;
  • SpeedCalculation - speed of calculation to determine the BarsSignal signal (the higher the value, the less precise the signal calculation, but faster the optimization);
  • AdxPeriod - ADX indicator period;
  • MinAdxLevel - ADX indicator minimum level;
  • MaxAdxLevel - ADX indicator maximum level;
  • Trading start hour - trading start hour;
  • Trading end hour - trading end hour;
  • ShowInfo - enable the display of information.
No reviews