I'm trying to create a button for my indicator to allow for easy cycling of showing the indicator. The indicator draws lines and text at specific DateTime's. I want to just click a button and remove all objects, than upon clicking again, to show all objects.
I have tried using a bool cycle in the button click function, than checking that bool in OnBarUpdate to return; if true. This does not work.
Is there any method that can accomplish this? I have searched the forum and just am not finding what I need.

Comment