run function when tester is stopped manually (when testing with an indicator)



Is there a way to know when the stop button pressed in the tester for an indicator? I've found details how to do so in an EA but I can't seem to find the right search parameters/details in the manual to find out how to do so with an indicator.

I just need to run a function when stop is pressed...

Any help much appreciated!!

Thank you,