I'm trying to find a way to turn On/Off my Fibo indicator but I can't find a way to do it properly. Also when I remove the indicator from chart all the objects they remained there.
This is actually doing something but it's not working as expected.
The second issue I have is that when I remove the indicator from the list, all the objects they stay there.
The only way I've found to delete those objects is with the help of an external script I tweaked so that it deletes only the objects with a precise prefix I wanted.
Does anyone know how could I modify the main code so that I can turn the indicator ON/OFF (without affecting the position of it while navigating through different timeframes) while applied on chart? Also is there a way to totally remove the Objects from chart when the indicator is deleted from the list of indicators?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi everyone,
I'm trying to find a way to turn On/Off my Fibo indicator but I can't find a way to do it properly.
Also when I remove the indicator from chart all the objects they remained there.
For the On/Off button I've tried to add:
and modify the int start section like:
This is actually doing something but it's not working as expected.
The second issue I have is that when I remove the indicator from the list, all the objects they stay there.
The only way I've found to delete those objects is with the help of an external script I tweaked so that it deletes only the objects with a precise prefix I wanted.
This is working but it's not ideal.
Does anyone know how could I modify the main code so that I can turn the indicator ON/OFF (without affecting the position of it while navigating through different timeframes) while applied on chart?
Also is there a way to totally remove the Objects from chart when the indicator is deleted from the list of indicators?
Thanks for your help