You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?