MARE5.1: Your Go-To EA for MetaTrader 5

Mike 2017.03.02 20:50 15 0 0
Attachments

Concept by Collector, coded by barabashkakvn.

The MARE5.1 Expert Advisor is incredibly user-friendly. It utilizes two Simple Moving Averages (SMA) based on the closing prices of the 0th, 2nd, and 5th bars. This EA is optimized for the M1 timeframe, making it ideal for scalpers.

Input Parameters:

  • Lots: Volume of the entry position
  • TakeProfit: The level at which profits will be taken
  • StopLoss: The level at which losses will be capped
  • MAFastPeriod: The averaging period for the first Moving Average
  • MASlowPeriod: The averaging period for the second Moving Average
  • MovingShift: Shift for the Moving Averages (applies to both)
  • HourTimeOpen and HourTimeClose: The hours during which position opening is allowed
The OnInit() block ensures that the time settings are valid:
   if((HourTimeOpen<0 || HourTimeClose<0) || (HourTimeOpen>23 || HourTimeClose>23))
     {
      return(INIT_PARAMETERS_INCORRECT);
     }
   if(HourTimeOpen==HourTimeClose)
     {
      return(INIT_PARAMETERS_INCORRECT);
     }
   if(HourTimeOpen>HourTimeClose)
     {
      return(INIT_PARAMETERS_INCORRECT);
     }

This means that the hour values cannot be less than "0" or greater than "23", and overlapping hours are not permitted.

MARE5.1 tester

List
Comments 0