Download MetaTrader 5

MarketInfo(Symbol(), MODE_POINT) failed to return valid value in MT4

To add comments, please log in or register
Lin Xie
98
Lin Xie  

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.

Hao-Wei Lee
2031
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


use SymbolInfoDouble()

zero divide
zero divide
  • www.mql5.com
I have a question about zero divide in indicator when it run. - - Category: technical indicators
Atsushi Yamanaka
5582
Atsushi Yamanaka  
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


use SymbolInfoDouble()

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...

To add comments, please log in or register