Hello everyone,
I'm coding a trade assistant with hotkeys support and I was wondering what's the best way to add horizontal lines on the chart when a KeyDown event gets fired. I want the line to appear at Y value of the mouse cursor. Right now I store this value in a class variable and update it whenever the MouseMove event occurs but I noticed a small sync delay, if I move it pretty fast and press my hotkey to draw a line, sometimes the line won't be drawn at the right level. Maybe there is a better way to get the mouse Y value inside my KeyDown event handler that would reduce the delay and give a more accurate level ?
Tyvm <3