• Overview
  • Reviews
  • Comments (15)

Moving average systems

The Expert Advisor is based on the popular moving average indicator. Includes the functions of trailing stop a break-even, measured in the deposit currency, and also closing all trades upon reaching a certain percentage of profit or loss from the initial deposit size, the option of using the martingale principle to make trades. Also the indicator has trend filters, including the Parabolic SAR and moving average with a large period.


Parameters of the EA:

  • Magic_number - magic number that allows the EA to distinguish its own deals;
  • Lot - the lot for trade opening;
  • Slippage - allowed slippage;
  • NumberOfTries - number of attempts to execute the OrderClose function;

Block_signals_for_input - signals to enter a trade.

  • Intersection_ma1_and_price - intersection of the price chart and the first moving average.
  • Intersection_ma1_and_ma2 - intersection of the first and the second moving averages.

Block_signals_for_output - signals to exit a trade.

  • prc_profit_close - close all trades when reaching profit in percents of the deposit.
  • prc_loss_close - close all trades when reaching loss in percents of the deposit.
  • Breakeven - breakeven function (active at the value true).
  • Profit_breakeven - move the trade to breakeven when reaching profit in the deposit currency.
  • TrailingStop - trailing stop function (active at the value true).
  • Trailing_profit_step - trailing stop step in the deposit currency.
  • Martin - martingale function (active at the value true).
  • KoefMartin - lot multiplier.
  • Quantity_rders - limitation of the number of simultaneously opened orders.

Block_indicator_settings:

  • Moving_average - setting of the moving average indicator.
  • ma_period_1 - the period of the first moving average.
  • ma_period_2 - the period of the second moving average.
  • ma_shift_1 - the shift of the first moving average.
  • ma_shift_2 - the shift of the second moving average.
  • ma_method_1 - the method of the first moving average.
  • ma_method_2 - the method of the second moving average.
  • aplied_price_ma_1 - applied price for the calculation of the first moving average.
  • aplied_price_ma_2 - applied price for the calculation of the second moving average.

SAR_filtr setting of the Parabolic SAR indicator.

  • SAR_filtr_trend - use the Parabolic SAR indicator for trend filtering (active at the value true).
  • \step_SAR - step.
  • maximum_SAR - maximum.

Moving_average_filtr settings of the moving average indicator.

  • Moving_average_filtr_trend - use the moving average indicator for trend filtering (active at the value true).
  • ma_period - period.
  • ma_shift - shift.
  • ma_method -method.
  • aplied_price_ma - applied price for calculation.
No reviews