Download MetaTrader 5

MOVING AVERAGES IN SEPARATE INDICATOR WINDOW

To add comments, please log in or register
Do you keep a blog? Place a link to MQL5.community there and make money!
Mohammad Soubra
25004
Mohammad Soubra 2017.03.18 23:33 

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
9625
Keith Watford 2017.03.18 23:50  

#property  indicator_separate_window

If you want the MA applied to another indicator's values use iMAOnArray()
Mohammad Soubra
25004
Mohammad Soubra 2017.03.18 23:53  
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
25004
Mohammad Soubra 2017.03.19 00:01  

something like the below for trading:

if(iMA(....)>20)   OrderSend(....);
Mohammad Soubra
25004
Mohammad Soubra 2017.03.19 12:39  
Hello!
To add comments, please log in or register