Download MetaTrader 5

Why price of XAUUSD is 1093.09 but digits=0 and point=0.00 from MarketInfo?

To add comments, please log in or register
Manage agents in your profile. It is easy!
Amy Liu
640
Amy Liu 2015.11.18 17:38 

Can anybody help me: Why price of XAUUSD is 1093.09 but digits=0 and point=0.00 from MarketInfo?

Thanks, a lot. 

Carl Schreiber
6590
Carl Schreiber 2015.11.18 18:02  
Amy Liu:

Can anybody help me: Why price of XAUUSD is 1093.09 but digits=0 and point=0.00 from MarketInfo?

Thanks, a lot. 

It could be that your terminal wasn't connected or was about to connect?

Did you had the function call in OnInit()?

To me it looks like a 'thread-race' and OnInit() is executed while from the server the information is still not available.

Try to put things like MrketInfo(..) OnTick()..

Martyn Tinsley
122
Martyn Tinsley 2015.12.03 12:45  
Amy Liu:

Can anybody help me: Why price of XAUUSD is 1093.09 but digits=0 and point=0.00 from MarketInfo?

Thanks, a lot. 

Make sure it is definitely added into your symbols list. Sometimes not all info is available if they are not. Hope this helps...
Amy Liu
640
Amy Liu 2015.12.03 15:35  
calli:

It could be that your terminal wasn't connected or was about to connect?

Did you had the function call in OnInit()?

To me it looks like a 'thread-race' and OnInit() is executed while from the server the information is still not available.

Try to put things like MrketInfo(..) OnTick()..

Thank You!
Amy Liu
640
Amy Liu 2015.12.03 15:35  
Martyn Tinsley:
Make sure it is definitely added into your symbols list. Sometimes not all info is available if they are not. Hope this helps...
Thank you!
Alain Verleyen
Moderator
30737
Alain Verleyen 2015.12.03 18:32  
From my experience, some brokers (sometimes) don't provide right data for MarketInfo.
Amy Liu
640
Amy Liu 2015.12.04 09:44  
Alain Verleyen:
From my experience, some brokers (sometimes) don't provide right data for MarketInfo.
Yes. It seems to be. Thank you, Alain.
To add comments, please log in or register