How to remove indicator through itself?
Is there equivalent function of ExpertRemove() on indicators. Indicator should be removed by itself by pressing button (like END) or in some
other condition.
Mokara:
Is there equivalent function of ExpertRemove() on indicators. Indicator should be removed by itself by pressing button (like END) or in some other condition.
Is there equivalent function of ExpertRemove() on indicators. Indicator should be removed by itself by pressing button (like END) or in some other condition.
Documentation on MQL5: Timeseries and Indicators Access / IndicatorRelease
- www.mql5.com
//| Test_IndicatorRelease.mq5 | //| Copyright 2010, MetaQuotes Software Corp. | //| https://www.mql5.com | //| Expert initialization function |...
Thanks. this works for me;
IndicatorSetString(INDICATOR_SHORTNAME, "SimSim");
...
ChartIndicatorDelete(0, 0, "SimSim");