Download MetaTrader 5

can anyone explain?

To add comments, please log in or register
Do you know that MQL5 is an object-oriented language?
Ali Poormomen
1700
Ali Poormomen 2013.08.13 04:21 

Please, can anyone explain what this functions return.

it's always return 18.

SymbolInfoInteger("EURUSD",SYMBOL_TRADE_STOPS_LEVEL)

and


it's always return 0.

SymbolInfoInteger ("EURUSD", SYMBOL_VOLUMEHIGH);
Stephen Njuki
5179
Stephen Njuki 2013.08.13 05:54  
The first function returns the minimum distance at which you can place a pending order in points I.e. you need to multiply it by a point to get the actual distance in price decimals. The second function returns the real volume contracts for EURUSD that are being traded with your broker. Not all brokers provide this so that could be why it is zero in your case.
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Order Properties - Documentation on MQL5
Ali Poormomen
1700
Ali Poormomen 2013.08.13 06:09  
Thank you. Sometimes it looks easy, but it can be confusing.
To add comments, please log in or register