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,
ENUM_SYMBOL_INFO_STRING prop_id
); |
2. Returns true or false, depending on the success of a function. If successful, the value of the property is placed in a placeholder variable passed by reference in the last parameter.
bool SymbolInfoString(
string name,
ENUM_SYMBOL_INFO_STRING prop_id,
string& string_var
); |
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
•5040 – invalid string parameter for specifying a symbol name,
•4301 – unknown symbol (financial instrument),
•4302 – symbol is not selected in "Market Watch" (not found in the list of available ones),
•4303 – invalid identifier of a symbol property.
Note