I wrote some code to move vertical line by keyboard( number 4 for backward & number 6 for forward)
it is correct but it has delay every time I press bottom.
how can I overcome this issue?
(sorry for my bad english)
void OnChartEvent(const int EventID,const long& lparam,const double& dparam,const string& sparam)
if(EventID == CHARTEVENT_KEYDOWN )
short KeyThatWasPressed = TranslateKey((int)lparam);
Therefor ChartRedraw - Chart Operations - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Thanks a lot
ChartRedraw was my answer.
I didn't know that was asynchronous.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.