Change it to an EA and get rid of the loop. The EA will be displaying the last tick data.
There are no ticks when the market is closed. Run the tester in VISUAL MODE to end of history and it will display the current status. No coding needed.
If you want to have the EA update when the market is closed and you switch pairs/TF, then have init() queue a tick to force start().
thanks this is really useful to know - I'm trying not to use the Tester as it's a bit cumbersome for what I'm trying to do but with 'queue a tick' I can use the charts in regular mode.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Change it to an EA and get rid of the loop. The EA will be displaying the last tick data.
thanks this is really useful to know - I'm trying not to use the Tester as it's a bit cumbersome for what I'm trying to do but with 'queue a tick' I can use the charts in regular mode.