breizhforex:
If you are running this in the Strategy Tester you should be aware that the Sleep() doesn't actually do anything useful in the Strategy Tester. Testing Features and Limits in MetaTrader 4Hello @ all,
Below is my simple void function that should return the minute value but it don't work.
The first return minute is good but: 1, 2, 3, 4 or 5 minutes later (and so on) the returned value is always the same...
Is there a cache to reset or something else to do ?
"Some functions are processed/passed without output
These are Sleep(), Alert(), SendMail(), PlaySound(), MessageBox(), WindowFind(), WindowHandle(), WindowIsVisible()"
RaptorUK:
Functions of type void do not return anything . . .
Functions of type void do not return anything . . .
Hello RaptorkUK:
Thank for answering.
Yes i know that void does not return anything, but if you watch my simple code, you can see that i have a print in my void function to survey the minute evolution.
And never it change... why ?
Once thank.
What your suggest to make it working ?
breizhforex:
above is the start function
So you have an infinite loop . . . have you read the Documentation on Minute() ? you should . . . above is the start function
I suspect that the Server time isn't being updated as you are doing everything after receiving one tick . . . you could try a RefreshRates() after your Sleep() in your HandleTIME() function.
trying now
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
Hello @ all,
Below is my simple void function that should return the minute value but it don't work.
The first return minute is good but: 1, 2, 3, 4 or 5 minutes later (and so on) the returned value is always the same...
Is there a cache to reset or something else to do ?
Help would be appreciated.
Thank.