Download MetaTrader 5

While specified a symbol that different from current symbol,the MACD indicator doesn't work.

To add comments, please log in or register
Have you developed an application? Publish it in Code Base!
Wei Sun
699
Wei Sun 2010.04.03 18:21 

 In MACD indicator, use "AUDUSD" instead of "NULL" as below:

 ExtFastMaHandle=iMA("AUDUSD",0,InpFastEMA,0,MODE_EMA,InpAppliedPrice);
 ExtSlowMaHandle=iMA("AUDUSD",0,InpSlowEMA,0,MODE_EMA,InpAppliedPrice);

and then it can't work unless current symbol is  "AUDUSD".

To add comments, please log in or register