MQL4 - automated forex trading   /  

Documentation

ODL Securities

MQL4 Reference  Standard constants  MarketInfo

 

Market information identifiers, used with MarketInfo() function.
It can be any of the following values:

ConstantValueDescription
MODE_LOW1Low day price.
MODE_HIGH2High day price.
MODE_TIME5The last incoming tick time (last known server time).
MODE_BID9Last incoming bid price. For the current symbol, it is stored in the predefined variable Bid
MODE_ASK10Last incoming ask price. For the current symbol, it is stored in the predefined variable Ask
MODE_POINT11Point size in the quote currency. For the current symbol, it is stored in the predefined variable Point
MODE_DIGITS12Count of digits after decimal point in the symbol prices. For the current symbol, it is stored in the predefined variable Digits
MODE_SPREAD13Spread value in points.
MODE_STOPLEVEL14Stop level in points.
MODE_LOTSIZE15Lot size in the base currency.
MODE_TICKVALUE16Tick value in the deposit currency.
MODE_TICKSIZE17Tick size in points.
MODE_SWAPLONG18Swap of the long position.
MODE_SWAPSHORT19Swap of the short position.
MODE_STARTING20Market starting date (usually used for futures).
MODE_EXPIRATION21Market expiration date (usually used for futures).
MODE_TRADEALLOWED22Trade is allowed for the symbol.
MODE_MINLOT23Minimum permitted amount of a lot.
MODE_LOTSTEP24Step for changing lots.
MODE_MAXLOT25Maximum permitted amount of a lot.
MODE_SWAPTYPE26Swap calculation method. 0 - in points; 1 - in the symbol base currency; 2 - by interest; 3 - in the margin currency.
MODE_PROFITCALCMODE27Profit calculation mode. 0 - Forex; 1 - CFD; 2 - Futures.
MODE_MARGINCALCMODE28Margin calculation mode. 0 - Forex; 1 - CFD; 2 - Futures; 3 - CFD for indices.
MODE_MARGININIT29Initial margin requirements for 1 lot.
MODE_MARGINMAINTENANCE30Margin to maintain open positions calculated for 1 lot.
MODE_MARGINHEDGED31Hedged margin calculated for 1 lot.
MODE_MARGINREQUIRED32Free margin required to open 1 lot for buying.
MODE_FREEZELEVEL33Order freeze level in points. If the execution price lies within the range defined by the freeze level, the order cannot be modified, cancelled or closed.