script detachment

 
Hi,

when trying to detach a script from a chart I always have to click "Delete from Chart" (or whatever) twice so that it gets timed out and deleted. The same thing with EAs with loops. Can you guys tell me if and what I am doing wrong?
Also, why does it always have to get timed out why not just cancel the loop?

Sincerely,

tradeigel
 
Also, when I have a script with a loop it sometimes happens that - when I detach it - it gets timed out and is not reaching deinit(), isn't that stupid? Is there a work around? How do you solve this?
 
Add conditional exit with IsStopped() to the loops
 
oh, yeah, this might be a good idea - will give it a try, thanks :)
Reason: