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?
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