• Overview
  • Reviews
  • Comments
  • What's new

Moving Average Crossover EA

How it works?

  • This EA trades with Fast MA and Slow MA crossovers.
  • Moving Average will base its value on the current time frame.
  • Only allows one open trade at a time.
  • Two strategy to choose,  crossover and trend following.
  • Optimize risk management settings for lot size and martingale.

Strategy:

Crossover

    • Opens a Buy position if the Slow MA crosses below Fast MA.
    • Opens a Sell position if the Slow MA crosses above Fast MA.
Trend Following
    • Opens a Buy position if the Slow MA is below Fast MA.
    • Opens a Sell position if the Slow MA is above Fast MA.
Parameters:
  • MagicNumber - return an identifying (magic) number of the currently selected order.
  • Strategy - The option to choose Crossover or Trend Following.
  • Max Spread Pips - distance between Ask and Bid, at which you allow the EA to open a trade.
  • Max Slippage - The difference between the expected price of a trade, and the price the trade actually executes at which you allow the EA to execute an order.
  • Indicator Bar Value - The option to choose current bar value or closed bar value.
  • ~~~~~Moving Average Settings~~~~~
  • Fast Moving Average Period - Averaging period for the calculation of the fast moving average.
  • Slow Moving Average Period Averaging period for the calculation of the slow moving average.
  • MA Method - Moving Average method. It can be any of enumeration values. SMA, EMA, SMMA, LWMA.
  • Applied Price - used to specify the desired price base for calculations.
  • ~~~~~Risk Management Settings~~~~~
  • Start Lot - Starting lot size.
  • Loss Factor - Multiplier of last lot size if the last trade was a loss.
  • Max Consecutive loss - Maximum Consecutive loss, it will restart to starting lot size if reached.
  • StopLoss - Stop loss value relative to open price. Measured in pips.
  • TakeProfit - Take profit value relative to open price. Measured in pips.
  • Trailing Stop - Modify Stop order when moves price moves to its favor, set 0 to deactivate.
  • Close on Reverse Trend - if set to true, it will close open trade if it met the condition in reverse of opening the trade.
  • ~~~~~Time and Day Filter Settings~~~~~ - For Opening of Trades Only.
  • Daily Start Time - Starts to open a trade.
  • Daily Stop Time - Ends to stop opening a trade.
  • Monday - Trade on Monday.
  • Tuesday Trade on Tuesday.
  • Wednesday Trade on Wednesday.
  • Thursday Trade on Thursday.
  • Friday Trade on Friday.
  • ~~~~~Alert Settings~~~~~
  • Send_Email
  • Audible_Alerts 
  • Push_Notifications 
Martingale is a very risky strategy! 
Do not trade with money you can’t afford to lose! 
Consider withdrawal as a part of the strategy!


For more questions and suggestions, email me at geniebulltrader@gmail.com or private message me here at MQL5.

Thank you!

No reviews
Version 1.1 2019.01.20
Added:
Max Spread Pips - distance between Ask and Bid, at which you allow the EA to open a trade.
Max Slippage - slippage, at which you allow the EA to execute an order.
Indicator Bar Value - The option to choose current bar value or closed bar value.