I am developing an Add-On that has a panel that docks in the current tab of the chart window like the chart trader.
I have a toggle button on this panel and I want to start a custom drawing tool when the user checks it, and stop the drawing tool when the user unchecks it.
I have seen examples of how to use a drawing tool from inside an indicator or another drawing tool, but not how to just start the drawing tool, ready for the end user to use, just as if they had gone through the chart menu and started it.
Can someone provide a sample of how to do this?
Thanks for your time,
codeowl
Comment