I think the smartest solution now is to apply the EMA21 formula into the array I got with the data.
I have been assessing but cant loe the EMA formula utilized on metatrader, I used the one supplied in the link below:

I remembered something else that this morning about iMAOnArray(). It can not be utilised in an EA. I remember fighting with this for hours - just when I looked for sample code and eventually like you I found that this discussion thread which confirmed my suspicions. What I ended up doing was using iMAOnArray() in an indior and regaining the values by means of iCustom().

Sorry I did not remember this in my earlier reponses. Do not waste any more time, I doubt if it can be carried out.

We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.

All times are GMT. The time now is 10:30 AM.
Risk Disclosure: nigeriaforextrading will not accept any liability for loss or damage as a result of reliance on the information contained within this website including data, quotes, charts and buy/sell signals. Please be fully informed regarding the risks and costs associated with trading the financial markets, it is one of the riskiest investment forms possible. Currency trading on margin involves high risk, and is not suitable for all investors. Before deciding to trade foreign exchange or any other financial instrument you should carefully consider your investment objectives, level of experience, and risk appetite.