Documentation
MQL5 ReferenceMarket InfoSymbolInfoString 

SymbolInfoString

Returns the corresponding property of a specified symbol. There are 2 variants of the function.

1. Immediately returns the property value.

string  SymbolInfoString(
   string  name,        // Symbol
   int     prop_id      // Identifier properties
   );

2. Returns true or false, depending on the success of a function. If successful, the value of the property is placed in a foster variables passed by reference the last parameter.

bool  SymbolInfoString(
   string  name,        // Symbol
   int     prop_id,     // Identifier properties
   string& string_var   // Here we assume the property value
   );

Parameters

name

[in] Symbol name.

prop_id

[in] Identifier of a symbol property. The value can be one of the values of the ENUM_SYMBOL_INFO_STRING enumeration.

string_var

[out] Variable of the string type receiving the value of the requested property.

Return Value

The value of string type.