Using the iMA function I can get values for various period MAs just fine. The problem is that they don't match with what the value is on the chart when moused over. What I need are the values as displayed.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Using the iMA function I can get values for various period MAs just fine. The problem is that they don't match with what the value is on the chart when moused over. What I need are the values as displayed.
Here's what I get--- (USDJPY)
double fast_1=iMA(Symbol(),0,MA_Fast,10,MODE_SMA,PRICE_CLOSE,1);
double fast_2=iMA(Symbol(),0,MA_Fast,10,MODE_SMA,PRICE_CLOSE,4);
fast_1 = 90.642 but displayed value is 90.57
fast_2 = 90.684 but displayed value is 90.58
Is there any way to get the MA displayed values bar by bar as they are displayed for different period MA's?
Thanks for the help