jonatas:
Hi, I'm creating my first signal with CiMA and every bar I'm getting 1.#INF because the ma.Main(i) is returning 1.797693134862316e+308
My Code is here:
and I'm trying to use:
where i is the common iterator between bars.
What's missing here?
Use:
if(ma.Refresh(-1)) value=ma.Main(1);
uncleVic:
Use:
if(ma.Refresh(-1)) value=ma.Main(1);
it's continue the same error. I can't declare this if because the Refresh() method is void.
jonatas:
it's continue the same error. I can't declare this if because the Refresh() method is void.
ma.Refresh(-1);
value=ma.Main(1);
jonatas: I'm getting 1.#INF because the ma.Main(i) is returning 1.797693134862316e+308
double DBL_MAX == EMPTY_VALUE
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi, I'm creating my first signal with CiMA and every bar I'm getting 1.#INF because the ma.Main(i) is returning 1.797693134862316e+308
My Code is here:
and I'm trying to use:
where i is the common iterator between bars.
What's missing here?