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
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 ?