What happens if there is a new tick and the OnCalculate() function has not finished its calculations?
Will this tick simply be ignored or what happens then?
Marbo: Will this tick simply be ignored or what happens then?
The tick event is queued so that the OnCalculate event handler will be called again afterwards with the current bar updated with the new data.
I beleive if your case happened then pc (or server) will hang.
But, generally we have not yet seen operations which not performed fast by computer these days unless you have a very old pc
Mohammed Abdulwadud Soubra #:
I beleive if your case happened then pc (or server) will hang.
Hey Soubra 😘 I beleive if your case happened then pc (or server) will hang.
But, generally we have not yet seen operations which not performed fast by computer these days unless you have a very old pc
It's true in most case nowadays hardware is powerful enough to return the ontick before the new one.
But ... EAs are now sophisticated, often with multi currencies ... So there's exception.
Add to this that sometimes ticks arrives by packets of many hundred like during news ... And it gives good arguments to the pros ontick-nonblocking
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