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
this should work. i have not tested it, just coded quikly here in editor..
TimeCurrent() was wrong, works only for times > seconds. i use GetTickCount() which according to the doc should return uptime in milliseconds.
The calculations inside the sleep function is to make shure that waittime is only one sec, no matter how long the execution of the code inside the loop takes.
You can use the array for calculations when ArrayIsReady==true
//z
I assume you have changed something in my code. because for me its working perfectly.
So stop saying that it is not working and check your code!
I cut and paste.
it is taking every tick not every seconds.
I compared tick[0] to tick[50] with values[0] to values[50] - same
With or without the sleep function, no difference.
actully on my metatrader the EA updates correctly the values every second..
With or without the sleep function, no difference.