I would like to know if there is a way to disable, by code, that ninjatrader 8 goes back on bars when using the mouse wheel. I create a button on chart, that is reacting at the mouse wheel, and making some action, but soon as I place the mouse cursor on the button, it also makes the chart to go back on past bars. and I want to disable that function, only when Im above the button, but not on every other point on the chart.
I hope I could explain what I need.
Thank you!

Comment