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

 

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

Thanks, a lot. 

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

 
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...
 
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!
 
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!
 
From my experience, some brokers (sometimes) don't provide right data for MarketInfo.
 
Alain Verleyen:
From my experience, some brokers (sometimes) don't provide right data for MarketInfo.
Yes. It seems to be. Thank you, Alain.
Reason: