EA with StepMA and MACD

 

I need some help to create a Simple EA with the StepMA and MACD indicators.

The settings must be as follow:

MACD (20,80,9)

First StepMA : Lenght = 10

Kv = 1.3

Second StepMA: Lenght =25

Kv = 2.2

The EA must have a preset : Stop loss,Take Profit and Trailing Stop

Entry must be when the two StepMA indicators cross and the cross of the MACD indicator is in the same direction.

Use the 30M gbpusd chart.

I will post the StepMA here if someone wants to help.The attached picture shows what I got in mind.

Thank you

Files:
 

Hi

please post us, required Indicators, (Step MA)

thanks

 
 
 

When i cimpiled corrected code there is error

ATRO,averange is not defined

 

the error occours as

As the "AVGR ange" should actually be AVGRange.

 
kumawat:
When i cimpiled corrected code there is error ATRO,averange is not defined

it should be "AvgRange"

 

I have tried to make the ea with Expert Advisor Builder .Not sure if it will work correct.

Files: