Download MetaTrader 5
MQL5 ReferenceCustom SymbolsCustomSymbolDelete 

CustomSymbolDelete

Deletes a custom symbol with the specified name.

bool  CustomSymbolDelete(
   const string     symbol_name          // custom symbol name
   );

Parameters

symbol

[in]  Custom symbol name. It should not match the name of an already existing symbol.

Return Value

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

Note

The custom symbol displayed in the Market Watch or the one a chart is opened for cannot be deleted.

 

See also

SymbolName, SymbolSelect, CustomSymbolCreate