Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 78
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
Check if there is a symbol in the market overview. It cannot be zero.
I'm sure it can't be, but here's the moderator's response.2017.01.17 12:09:36.871 CMB2 EURNZD,Daily: zero divide in 'CMB2.mq4' (196,77).
And this is actually line 196 from the code: (iOpen('GBPNZD',p,b)-iClose('GBPNZD',p,b))/MarketInfo('GBPNZD',MODE_POINT)+
I'm sure it can't be, but here's the moderator's response.2017.01.17 12:09:36.871 CMB2 EURNZD,Daily: zero divide in 'CMB2.mq4' (196,77).
And this is actually line 196 from the code: (iOpen("GBPNZD",p,b)-iClose("GBPNZD",p,b))/MarketInfo("GBPNZD",MODE_POINT)+
Is this symbol allowed to trade?
I'm sure it can't be, but here's the moderator's response.2017.01.17 12:09:36.871 CMB2 EURNZD,Daily: zero divide in 'CMB2.mq4' (196,77).
And this is actually line 196 from the code: (iOpen('GBPNZD',p,b)-iClose('GBPNZD',p,b))/MarketInfo('GBPNZD',MODE_POINT)+
Is trading allowed on the symbol?
Point is usually multiplied by, there's a number about 0.00001 why you would divide by it, it's possible to round and divide by zero.
It's an indicator. Why would he need permission to trade?
It's an indicator. Why does it need permission to trade?
Not him, but the symbol. If there is no trade on the symbol on the server from which you are taking the data, then Point() may not be given there either.
Then what should be done?
Is there such a symbol in the server symbol list that the indicator stands on?