Hi.
I've got some problem to read values from iMAOnArray function.
This is my code:
for( i = limit ; i > 0 ; i--)
{
buffer[i] = iCustom(Symbol(),0,"Juice",7,0.0004,0,i);
}
double ma = iMAOnArray(buffer,0,14,0,MODE_EMA,0);
And the ma value is like value 1 on the chart, but I want to read the value 2 from that chart to compare it with EA with custom indicator. Somebody knows how to do that?
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.
I've got some problem to read values from iMAOnArray function.
This is my code:
for( i = limit ; i > 0 ; i--)
{
buffer[i] = iCustom(Symbol(),0,"Juice",7,0.0004,0,i);
}
double ma = iMAOnArray(buffer,0,14,0,MODE_EMA,0);
And the ma value is like value 1 on the chart, but I want to read the value 2 from that chart to compare it with EA with custom indicator. Somebody knows how to do that?
The chart screen: