Well I mean there should never be a new bar beginning at 11:59:5x seconds because any tick before 12:00:00 belongs to the previous bar. But many times a new bar starts several seconds before the correct open time.
SDC: Well I mean there should never be a new bar beginning at 11:59:5x seconds because any tick before 12:00:00 belongs to the previous bar. But many times a new bar starts several seconds before the correct open time.
First part is clear, but sorry but I still don't get it your point. Are you reporting a bug in build 646 ?
Sleep(), OnTimer(), OnEvent() - all are messed up if you compile anything (does not matter what - it does not have to be related to the running code at all). It will affect any code using those functions (indicators, scripts, EAs) in the moment of compilation
And all such running stuff require that you restart terminal or they will not work as they should. Error is caused by the compiler
Sleep(), OnTimer(), OnEvent() - all are messed up if you compile anything (does not matter what - it does not have to be related to the running code at all). It will affect any code using those functions (indicators, scripts, EAs) in the moment of compilation
And all such running stuff require that you restart terminal or they will not work as they should. Error is caused by the compiler
Could you explain the problem with OnEvent and Sleep?
Could you explain the problem with OnEvent and Sleep?
Sleep, for example, starts to "sleep" 10 seconds (or some random time interval but anything it has been given) instead of given interval in milliseconds (in my case 250 milliseconds)
PS: I hardly believe that restarting terminal each time when I compile a peace of code is a solution. All the best
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.
Terminal build 646 does not respect the time when beginning a new bar, it starts the new bar several seconds before the supposed end time of that bar.
Well I mean there should never be a new bar beginning at 11:59:5x seconds because any tick before 12:00:00 belongs to the previous bar. But many times a new bar starts several seconds before the correct open time.
First part is clear, but sorry but I still don't get it your point. Are you reporting a bug in build 646 ?
Or is it related to broker feeds since mine is opened few seconds later.
Indeed, and OnEvent has the same problem.
Sleep(), OnTimer(), OnEvent() - all are messed up if you compile anything (does not matter what - it does not have to be related to the running code at all). It will affect any code using those functions (indicators, scripts, EAs) in the moment of compilation
And all such running stuff require that you restart terminal or they will not work as they should. Error is caused by the compiler
I found problems with version 650 and 652.
Aft er recompiilation of live working in Terminal EA or Indicator :
- OnTimer function not triggers
Reopening Terminal eliminates problem.
Reproduced.
Just reopen chart to eliminate problem.
Sleep(), OnTimer(), OnEvent() - all are messed up if you compile anything (does not matter what - it does not have to be related to the running code at all). It will affect any code using those functions (indicators, scripts, EAs) in the moment of compilation
And all such running stuff require that you restart terminal or they will not work as they should. Error is caused by the compiler
Could you explain the problem with OnEvent and Sleep?
Could you explain the problem with OnEvent and Sleep?
Sleep, for example, starts to "sleep" 10 seconds (or some random time interval but anything it has been given) instead of given interval in milliseconds (in my case 250 milliseconds)
PS: I hardly believe that restarting terminal each time when I compile a peace of code is a solution. All the best
Or is it related to broker feeds since mine is opened few seconds later.