MQL4参考 市场信息 SymbolInfoTick

SymbolInfoTick

The function returns current prices of a specified symbol in a variable of the MqlTick type.

bool  SymbolInfoTick(
   string    symbol,     // symbol name
   MqlTick&  tick        // reference to a structure
   );

Parameters

symbol

[in]  Symbol name.

tick

[out]  Link to the structure of the MqlTick type, to which the current prices and time of the last price update will be placed.

Return Value

The function returns true if successful, otherwise returns false.