Hi! Moving Average output.

 

Hello!

How do I code an EA so it would show a moving average,or several of them (with predefined range) when I drop it to the chart( I am guessing the code should be in init() func.

Please Help.

 
t0mbfunk:

Hello!

How do I code an EA so it would show a moving average,or several of them (with predefined range) when I drop it to the chart( I am guessing the code should be in init() func.

Please Help.

You don't,  if you want to show a MA you code an Indicator,  and if you want more than one MA you sue more than one buffer.  Take a look in the Code Base for some good, bad and average examples.
 
t0mbfunk: How do I code an EA so it would show a moving average,or several of them
You can have the EA draw line(s) with my polyline code but adding an indicator is easier.
 
Thank you guys. I have just started with this, so your help is very important to me.
Reason: