Expert Advisor - 2 MA Crossover - MQL4 Trading Automation

Ema crossover ea mt4

Ema crossover ea mt4


I 8767 m looking for a similar EA but i prefer it to open a buy or sell trade after the whole candle including wicks has closed above or below the 7 moving averages. And a couple of other requirements.
thanks Ken

Buy the 'Moving Average Crossover EA' Trading Robot

This EA trades using Moving Averages Crossovers. It offers fully customizable settings, flexible position management settings, plus many useful features like customizable trading sessions and a martingale and inverse martingale mode.

EMA cross EA @ Forex Factory

Hi Srinivasan,
The EA already waits for a new bar for the signal, so if I am in BAR X the crossover happened and completed in the previous bar, adding the condition of open above/below both EMA can be implemented with something like
double MASlowCurr=iMA(Symbol(),5,MASlowPeriod,5,MODE_EMA,PRICE_CLOSE,5)
double MAFastCurr=iMA(Symbol(),5,MAFastPeriod,5,MODE_EMA,PRICE_CLOSE,5)

EA MA Crossover Master - Simple But Royal - FX Trading

MA Crossover is a very popular and simple trading strategy. This MA Cross EA allows you to trade Simple, Exponential, Smoothed and Linear-weighted Moving Averages for the fast and slow MA. You can also choose the Applied Price for both MAs.

Download Free MA Crossover EA for Metatrader (MT4/MT5)

With the exit strategy is activated, the EA will close a open position at the next crossover. If the exit strategy is not active, the positions will only get closed by TakeProfit or StopLoss.

We'll start with the left part. You'll find EMA listed under Indicators. You can also type "ema" into the search field on the top to search for indicator using its name.

The file must be downloaded and copied in the Experts Folder, open it with the MetaEditor and Compile it, this will create the file for Metatrader.
Let me know if it doesn 8767 t make sense

Hi Ashish,
I am glad you like the code.
Regarding your issues
6) What timeframe are you testing? Can you see any message in the journal and expert tab of the strategy tester?
7) These compiling messages are warning only, they mean you should check the code but they do not stop the compile to happen

Now we can repeat the whole process also for the Go short rule, but there is an easier way. We can Close the existing rule and just modify it. This way we can save a lot of time and work.


Leave a comment