Documentation
The long-awaited program of the website beta testing has been launched. For some time the website operation may be inconsistent. The website developers are filling up its contents now doing their best to make it maximum convenient for you. Please accept our apologies for the temporary inconvenience.
MQL5 ReferenceMarket Info 

Getting Market Information

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

Function

Action

SymbolsTotal

Returns the number of available (selected in Market Watch or all) symbols

SymbolName

Returns the name of a specified symbol

SymbolSelect

Selects a symbol in the Market Watch window or removes a symbol from the window

SymbolIsSynchronized

Checks whether data of a selected symbol in the terminal are synchronized with data on the trade server

SymbolInfoDouble

Returns the double value of the symbol for the corresponding property

SymbolInfoInteger

Returns a value of an integer type (long, datetime, int or bool) of a specified symbol for the corresponding property

SymbolInfoString

Returns a value of the string type of a specified symbol for the corresponding property

SymbolInfoTick

Returns the current prices for the specified symbol in a variable of the MqlTick type

MarketBookAdd

Provides opening of Depth of Market for a selected symbol, and subscribes for receiving notifications of the DOM changes

MarketBookRelease

Provides closing of Depth of Market for a selected symbol, and cancels the subscription for receiving notifications of the DOM changes

MarketBookGet

Returns a structure array MqlBookInfo containing records of the Depth of Market of a specified symbol