MarketInfo() should avoid to use if possible,
somehow it just works not right, i also searched this forum
https://www.mql5.com/en/forum/32245
zero divide
- www.mql5.com
I have a question about zero divide in indicator when it run. - - Category: technical indicators
Hao-Wei Lee:
MarketInfo() should avoid to use if possible,
somehow it just works not right, i also searched this forum
https://www.mql5.com/en/forum/32245
He was asking about Build 406 which didn't support SymbolInfoDouble().
If he did it like below, we can reproduce his result.
int SymbolPoint=MarketInfo(Symbol(), MODE_POINT);
You know why I know...
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
Hello,
Does anyone know why MarketInfo(Symbol(), MODE_POINT) returns zero for EURUSD, GBPUSD, and USDCHF? How it returns non-zero (0.001) for USDJPY. I use OANDA - MetaTrader Version: 4.00 Build 406. If you have used this function in MT4/MQL4 or MT5/MQL5, can you please let me know if it was a success or failure. Thank you very much.
I thought the problem was caused on Oanda side by not fully supporting MT4/MQL4. However, when I reported the problem to Oanda, their helpdesk said I should talk about this issue to MetaQuotes.