Is there a way for an indicator to tell the terminal to stop it and remove it from the chart it was running on?
I believe that ExpertRemove also works.
Works on indicators?
Millard Melnyk:
Removes an indicator with a specified name from the specified chart window.
Is there any way to do this, such as maybe the indicator could run a script that kills the indicator somehow, or tells the terminal to do it?
There are times I'd like a logic path to end in "quit" or "KillMe" or something.

Documentation on MQL5: Chart Operations / ChartIndicatorDelete
- www.mql5.com
Removes an indicator with a specified name from the specified chart window. Parameters chart_id [in] Chart ID. 0 denotes the current chart...
Thank you Alexander! Just what I was looking for. I'll play around with it.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Is there any way to do this, such as maybe the indicator could run a script that kills the indicator somehow, or tells the terminal to do it?
There are times I'd like a logic path to end in "quit" or "KillMe" or something.