Alain Verleyen #: That means use "Get" function AFTER an asynchronous function call is NOT guaranteed to give correct values.
Hi!
Thanks for the new feedback. Fortunately, thanks to the related situation talked about in the other thread, my actual code is already using chart events + state machine control to gradually call the required functions, such as ChartNavigate, bypassing the sync/assync problem. The only problem, now, is that ChartNavigate can't fail actually moving the chart as shown in the posted video. Waiting a couple msecs for it to happen is no problem; the problem is it never happening.
If you desire, I may recreate the EA code example posted here with events to see the problem behaving in perfect alignment with this sync/assync situation, even though I imagine it's not needed given the video I posted and you having already reproduced it.
Thanks for the new feedback. Fortunately, thanks to the related situation talked about in the other thread, my actual code is already using chart events + state machine control to gradually call the required functions, such as ChartNavigate, bypassing the sync/assync problem. The only problem, now, is that ChartNavigate can't fail actually moving the chart as shown in the posted video. Waiting a couple msecs for it to happen is no problem; the problem is it never happening.
You probably meant "can fail".
If you desire, I may recreate the EA code example posted here with events to see the problem behaving in perfect alignment with this sync/assync situation, even though I imagine it's not needed given the video I posted and you having already reproduced it.
It's not needed to post new code. I understand the problem very well.
The difficulty is to reproduce the problem without having to click again and again which flood the system with Get/Set functions. I suppose originally you had the problem in "normal" usage when you clicked once and nothing happened ?
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.
That means use "Get" function AFTER an asynchronous function call is NOT guaranteed to give correct values.
Hi!
Thanks for the new feedback. Fortunately, thanks to the related situation talked about in the other thread, my actual code is already using chart events + state machine control to gradually call the required functions, such as ChartNavigate, bypassing the sync/assync problem. The only problem, now, is that ChartNavigate can't fail actually moving the chart as shown in the posted video. Waiting a couple msecs for it to happen is no problem; the problem is it never happening.
If you desire, I may recreate the EA code example posted here with events to see the problem behaving in perfect alignment with this sync/assync situation, even though I imagine it's not needed given the video I posted and you having already reproduced it.
Hi!
Thanks for the new feedback. Fortunately, thanks to the related situation talked about in the other thread, my actual code is already using chart events + state machine control to gradually call the required functions, such as ChartNavigate, bypassing the sync/assync problem. The only problem, now, is that ChartNavigate can't fail actually moving the chart as shown in the posted video. Waiting a couple msecs for it to happen is no problem; the problem is it never happening.
If you desire, I may recreate the EA code example posted here with events to see the problem behaving in perfect alignment with this sync/assync situation, even though I imagine it's not needed given the video I posted and you having already reproduced it.
It's not needed to post new code. I understand the problem very well.
The difficulty is to reproduce the problem without having to click again and again which flood the system with Get/Set functions. I suppose originally you had the problem in "normal" usage when you clicked once and nothing happened ?