Download MetaTrader 5

Problem Getting Lot size

To add comments, please log in or register
lesliecarr206
22
lesliecarr206  

Hi,

Does anyone else have the problem that I have: I try to get the the lot size for EURUSD, using the MarketInfo("EURUSDD", MODE_LOTSIZE) instruction. The value I get returned is 0. Is their another way of getting lot size?

Keith Watford
Moderator
9641
Keith Watford  
leslie:

Hi,

Does anyone else have the problem that I have: I try to get the the lot size for EURUSD, using the MarketInfo("EURUSDD", MODE_LOTSIZE) instruction. The value I get returned is 0. Is their another way of getting lot size?


Does your broker add a "D" to the Symbol's names?

"EURUSDD"

lesliecarr206
22
lesliecarr206  
GumRai:


Does your broker add a "D" to the Symbol's names?

"EURUSDD"


I think I found what the problem was. I am trading minilots, and using the symbol "EURUSD" instead of "EURUSDm". Making the change in my code, causes it to work now. Thanks.
To add comments, please log in or register