CustomSymbolSetInteger

Sets the integer type property value for a custom symbol.

bool  CustomSymbolSetInteger(
   const string              symbol_name,      // symbol name
   ENUM_SYMBOL_INFO_INTEGER  property_id,      // property ID
   long                      property_value    // property value
   );

Parameters

symbol_name

[in]  Custom symbol name.

property_id

[in]  Symbol property ID. The value can be one of the values of the ENUM_SYMBOL_INFO_INTEGER enumeration.

property_value

[in]  A long type variable containing the property value.

Return Value

true – success, otherwise – false. To get information about the error, call the GetLastError() function.

Note

The minute and tick history of the custom symbol is completely removed if any of these properties is changed in the symbol specification:

  • SYMBOL_CHART_MODE – price type for constructing bars (Bid or Last)
  • SYMBOL_DIGITS – number of digits after the decimal point to display the price

After deleting the custom symbol history, the terminal attempts to create a new history using the updated properties. The same happens when the custom symbol properties are changed manually.

See also

SymbolInfoInteger