"Refresh" Equivalent in MQL?

To add comments, please log in or register
svengralla
96
svengralla  

Hi,

what is the equivalent for the "Refresh" button in MQL code?




Thx, Sven

Alain Verleyen
36131
Alain Verleyen  
svengralla:

Hi,

what is the equivalent for the "Refresh" button in MQL code?




Thx, Sven

Why are you using the "Refresh" button ?
Pasi Hakamaki
10841
Pasi Hakamaki  
ChartRedraw() ?
svengralla
96
svengralla  
angevoyageur:
Why are you using the "Refresh" button ?
Working offline or during closed markets, I need to run OnCalculate() to recalculate my data upon an CHARTEVENT_CLICK trigger.
svengralla
96
svengralla  
Candles:
ChartRedraw() ?
No, ChartRedraw() will not trigger OnCalculate().
Stanislav Korotky
24586
Stanislav Korotky  
svengralla:
Working offline, I need to run OnCalculate() to recalculate my data upon an OnEvent() trigger.
Use OnTimer and a timer to check conditions periodically and run required calculations regardless to online/offline state.
svengralla
96
svengralla  
marketeer:
Use OnTimer and a timer to check conditions periodically and run required calculations regardless to online/offline state.
Thanks, I will check this out.
To add comments, please log in or register