Question about MarketInfo()?

To add comments, please log in or register
Sherif Hasan
7216
Sherif Hasan  

Shall i use NULL instead of Currency name?

I tried as NULL instead of EURUSD,but results are "0"?

int    digits=MarketInfo("EURUSD",MODE_DIGITS);
Simon Gniadkowski
17602
Simon Gniadkowski  
sheriffonline:

Shall i use NULL instead of Currency name?

I tried as NULL instead of EURUSD,but results are "0"?

Why not use Digits instead of the MArketInfo() call ?
Sherif Hasan
7216
Sherif Hasan  
RaptorUK:
Why not use Digits instead of the MArketInfo() call ?


yes. agree with you.
onewithzachy
1864
onewithzachy  

Because the first parameter for MarketInfo is a string, and the second parameter is an integer of MarketInfo's identifier.


whroeder1
17942
whroeder1  
You must RTFM. The use of NULL,0 for current Pair/Current TF is allowed for some calls. Where in MarketInfo do you see that is allowed?
Ian Venner
2396
Ian Venner  
digits = MarketInfo(Symbol(),MODE_DIGITS);
To add comments, please log in or register