Errors, bugs, questions - page 1564

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
iCustom+IndicatorRelease. It's probably not a crutch solution to produce complex entities on the spot. There's no arguing about tastes. The question is how much such a crutch on multiple agents will go to waste resources.
Well almost everything is cool in 5. Speed is top-notch. And here, sorry, some total hairiness where you wouldn't expect.
Why make a release indicator?
Let it send a chart-event to the expert under test on every new tick.
Creating an indicator on every tick followed by a release - that's where the wasted resources are
Vasiliy mentioned that on FORTS (not in the tester) the mechanism works via subscription and BookEvent. This eliminates the need to link the EA to any chart at all.
Why make a release to an indicator?
Let it send a chart-event to the expert under test on every new tick.
Creating an indicator at every tick and then releasing it - that's a waste of resources
I'm not very good at expressing myself, so you don't understand. Click here for details https://www.mql5.com/ru/code/280
And how many resources does this solution consume to implement such a simple thing!
BookEvent has not yet been implemented in the tester
And do not loop for a second, but for just under an hour. With obligatory checking of IsStopped()
Sleep, by the way, is mandatory. Otherwise you will hang the tester. And the system's resources will be ravaged during normal operation of the Expert Advisor.
Do not even test your variant
Code
Not even to test your option
Code
And what were you testing here?
I launch that code in the tester. I get hangs withinfinite Sleep loop detected while testing.
It has been said many times: "Read the documentation".
Didn't you say, "I've read all the documentation. Several times"?
Have you read this? It seems you haven't...
If the current time in the tester exceeds the end of the testing period when Sleep() function is executed, you will get an error "an infinite loop in Sleep". If such an error occurs, testing results are not discarded, all calculations are performed in full (amount of trades, drawdown, etc.) and the results are passed to the terminal.
Have you read this?
And about missing ticks in the loop in OnTimer you need reproducible evidence. Do you have them?
You wrote about it in documentation!
In the tester, Sleep() calls do not delay the testing process. When calling Sleep(), the generated ticks are "played" within the specified delay, as a result of which pending orders, stops and so on can trigger. After Sleep() has been called, the time modeled in the tester is increased by the interval specified in the Sleep function parameter.
So, the Expert Advisor cannot be called at every one of these ticks. Is the proof accepted?