Download MetaTrader 5

Who knows how to change EA from SMA to EMA?

To add comments, please log in or register
pikachucom
269
pikachucom  

Hi all,

Does anyone know how to change this EA from a SMA crossover to a EMA crossover?

Here are the peramiters:

Slow MA- Expotential with a period of 3 and on a CLOSE.

Fast MA- Expotential with a period of 5 and on a Median Price (HL/2)

Please see existing EA.

thanks

David Michael
695
David Michael  

Hi, I think slow MA always have greater number than fast MA. So according to your statement, if you like :

Fast MA- Expotential with a period of 3 and on a CLOSE, then set :

- MAFastPeriod = 3

- MAFastShift = 0

- MAFastMethod = 1

- MAFastPrice = 0

Slow MA- Expotential with a period of 5 and on a Median Price (HL/2), then set :

- MASlowPeriod = 5

- MASlowShift = 0

- MASlowMethod = 1

- MASlowPrice = 4

Or you can just change the source code and recompile. Hope this help

pikachucom
269
pikachucom  

your right, I got it reversed.

I will try your suggestion

thanks

To add comments, please log in or register