CustomSymbolSetInteger

Assigne une valeur de type integer à la propriété d'un symbole personnalisé.

bool  CustomSymbolSetInteger(
   const string              symbol_name,      // nom du symbole
   ENUM_SYMBOL_INFO_INTEGER  property_id,      // identifiant de la propriété
   long                      property_value    // valeur de la propriété
   );

Paramètres

symbol_name

[in]  Nom du symbole personnalisé.

property_id

[in]  Identifiant de la propriété du symbole. La valeur peut être l'une des valeurs de l'énumération ENUM_SYMBOL_INFO_INTEGER.

property_value

[in]  Une variable de type long contenant la valeur de la propriété.

Valeur de Retour

true — en cas de succès — false sinon. Pour obtenir des informations sur l'erreur, il faut appeler la fonction GetLastError().

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.

Voir aussi

SymbolInfoInteger