While this seems to work fine, I have noticed that after pressing the key, the lines appear only after the next "tick"...not immediately after pressing the key, as I would expect.
I have read somewhere else, and also tried adding ChartRedraw() right after drawing the lines, still this does not seem to work.
I have a test script that just draws a couple of HLines in the chart when pressing a keyboard key, any key (just for testing). Something like this:
Inside drawHLines_test just have basic code to draw HLines, nothing fancy, something like this:
While this seems to work fine, I have noticed that after pressing the key, the lines appear only after the next "tick"...not immediately after pressing the key, as I would expect.
I have read somewhere else, and also tried adding ChartRedraw() right after drawing the lines, still this does not seem to work.
Is it something wrong here that I am missing?