use SetIndexEmptyValue(0, 0.0); function in the init function of your custom indicator "Juice"

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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: