Download MetaTrader 5

MOVING AVERAGES IN SEPARATE INDICATOR WINDOW

To add comments, please log in or register
Mohammad Soubra
31263
Mohammad Soubra  

Hello

may I know how to add the moving averages to a separate window as below screenshot?

..

I am not asking to how add it manually, I am asking for coding

Keith Watford
Moderator
10617
Keith Watford  

#property  indicator_separate_window

If you want the MA applied to another indicator's values use iMAOnArray()
Mohammad Soubra
31263
Mohammad Soubra  
Keith Watford:

#property  indicator_separate_window

If you want the MA applied to another indicator's values use iMAOnArray()


thanks my friend

but I want in EAs

see the set file below

Mohammad Soubra
31263
Mohammad Soubra  

something like the below for trading:

if(iMA(....)>20)   OrderSend(....);
Mohammad Soubra
31263
Mohammad Soubra  
Hello!
To add comments, please log in or register