Skip to content

Market Info

Getting Market Information

These are functions intended for receiving information about the market state.

FunctionAction
SymbolsTotalReturns the number of available (selected in Market Watch or all) symbols
SymbolExistChecks if a symbol with a specified name exists
SymbolNameReturns the name of a specified symbol
SymbolSelectSelects a symbol in the Market Watch window or removes a symbol from the window
SymbolIsSynchronizedChecks whether data of a selected symbol in the terminal are synchronized with data on the trade server
SymbolInfoDoubleReturns the double value of the symbol for the corresponding property
SymbolInfoIntegerReturns a value of an integer type (long, datetime, int or bool) of a specified symbol for the corresponding property
SymbolInfoStringReturns a value of the string type of a specified symbol for the corresponding property
SymbolInfoMarginRateReturns the margin rates depending on the order type and direction
SymbolInfoTickReturns the current prices for the specified symbol in a variable of the MqlTick type
SymbolInfoSessionQuoteAllows receiving time of beginning and end of the specified quoting sessions for a specified symbol and day of week.
SymbolInfoSessionTradeAllows receiving time of beginning and end of the specified trading sessions for a specified symbol and day of week.
MarketBookAddProvides opening of Depth of Market for a selected symbol, and subscribes for receiving notifications of the DOM changes
MarketBookReleaseProvides closing of Depth of Market for a selected symbol, and cancels the subscription for receiving notifications of the DOM changes
MarketBookGetReturns a structure array MqlBookInfo containing records of the Depth of Market of a specified symbol
Last updated on