How to draw multiple moving average using single scripts ?

 

I want to Draw 3 EMAs using only one mql script, is it possible ?

pls guide if any one has any leads 

thanks
RSm 

 
Yes, you can add indicators to chart from mql5 script. It's only available in mql5. Use this function->  ChartIndicatorAdd

ChartIndicatorAdd()

 
Why write and use a script? Just add them to the chart, and you are done.
 
Rupras Metkar : I want to Draw 3 EMAs using only one mql script, is it possible ? pls guide if any one has any leads 

You can see an example of the indicator [data folder] \ MQL5 \ Indicators \ Examples \ Alligator.mq5 - one indicator draws three graphical plots.

 
William Roeder #: Why write and use a script? Just add them to the chart, and you are done.

Because this doesn't work in the tester.

 
@Christian Linden #: Because this doesn't work in the tester.
Scripts can't be used in the Strategy Tester either, so why wake up an old thread for such an irrelevant comment?
Reason: