I want to make an indicator that adds ray cast price lines and price regions into the future. When price trades back to them I can click on or hover over the line or region it will displays a popup text box with more info about the line or region.
So I made a custom drawing tool that extends Line take advantage of its OnMouseDown/Up callbacks and its IsSelected behaviour for the text box pop up. The tool creates lines and regions with working pop ups as desired by hand.
But I can't figure out what is the correct way to instantiate a DrawingTool instances from an Indicator?
(Current efforts either CustomDrawingTool.OnRender doesn't get called, or if I use the Indicator.OnRender method to call all the CustomDrawingTools OnRender methods they have no RenderTargets set.)
Or If I headed down a dead end with DrawingTool, what is the correct way to have an Indicator add drawing objects that have mouse interactivity?
Thanks
Comment