Could you please give me general direction for code to allow the user to draw a user defined box on the chart. I wrote code that will draw a box between two price bars if the user clicks on the first bar and then the second. I would like to adapt this code to do the following:
The user clicks somewhere on the chart and drags his mouse while holding in the left mouse button to draw a box around a set of price bars. When the user releases the left mouse button, that would be the user defined box.
My biggest problem at this point is the normal chart behavior that when a user left clicks on the chart and moves their mouse, the chart pans left and right. Not sure if this can be disabled in code for the period that the box is drawn.
I am developing this specifically for NT8. Any direction would be greatly appreciated.
Kind Regards,
John Steinberg
Comment