2019.04.0319:06:40.776 TestLoopVsRecursion (EURUSD,M1) время выполнения цикла = 1667 , контрольная сумма = 35104042122019.04.0319:06:40.776 TestLoopVsRecursion (EURUSD,M1) время выполнения рекурсии = 697 , контрольная сумма = 35104042122019.04.0319:06:41.697 TestLoopVsRecursion (EURUSD,M1) время выполнения цикла = 1653 , контрольная сумма = 34923106202019.04.0319:06:41.697 TestLoopVsRecursion (EURUSD,M1) время выполнения рекурсии = 699 , контрольная сумма = 34923106202019.04.0319:06:42.549 TestLoopVsRecursion (EURUSD,M1) время выполнения цикла = 1529 , контрольная сумма = 35109535772019.04.0319:06:42.549 TestLoopVsRecursion (EURUSD,M1) время выполнения рекурсии = 696 , контрольная сумма = 35109535772019.04.0319:06:43.332 TestLoopVsRecursion (EURUSD,M1) время выполнения цикла = 1559 , контрольная сумма = 35122124192019.04.0319:06:43.332 TestLoopVsRecursion (EURUSD,M1) время выполнения рекурсии = 698 , контрольная сумма = 35122124192019.04.0319:06:44.098 TestLoopVsRecursion (EURUSD,M1) время выполнения цикла = 1707 , контрольная сумма = 34971785962019.04.0319:06:44.098 TestLoopVsRecursion (EURUSD,M1) время выполнения рекурсии = 472 , контрольная сумма = 34971785962019.04.0319:06:44.839 TestLoopVsRecursion (EURUSD,M1) время выполнения цикла = 2088 , контрольная сумма = 34850513802019.04.0319:06:44.839 TestLoopVsRecursion (EURUSD,M1) время выполнения рекурсии = 482 , контрольная сумма = 34850513802019.04.0319:06:45.538 TestLoopVsRecursion (EURUSD,M1) время выполнения цикла = 1612 , контрольная сумма = 34878175812019.04.0319:06:45.538 TestLoopVsRecursion (EURUSD,M1) время выполнения рекурсии = 448 , контрольная сумма = 34878175812019.04.0319:06:46.397 TestLoopVsRecursion (EURUSD,M1) время выполнения цикла = 1742 , контрольная сумма = 34751210032019.04.0319:06:46.397 TestLoopVsRecursion (EURUSD,M1) время выполнения рекурсии = 497 , контрольная сумма = 34751210032019.04.0319:06:47.262 TestLoopVsRecursion (EURUSD,M1) время выполнения цикла = 1701 , контрольная сумма = 34855566152019.04.0319:06:47.262 TestLoopVsRecursion (EURUSD,M1) время выполнения рекурсии = 701 , контрольная сумма = 3485556615
During Optimization, you may encounter the following message in the Tester Log
Tester OnTesterInit failed. Optimization cannot be started.
It is almost impossible to understand the cause from this message, as there is no reference to the Terminal log at all. That is where you need to look for the cause.
The Expert Advisor optimizes in a range where Range does not reach zero. But at the same time, the optimization fails.
The reason is that the Frame mode of Expert Advisors is always launched with the input parameters rigidly prescribed in EX5. In this case, the Frame mode results in adivision by zero.
If OnTesterDeinit is removed from the source code, the Optimization will run without any problems.
It would be nice if the TesterJournal in such situations has a reference to the TerminalJournal. Otherwise it's not always possible to understand (debug is not available during Optimization), what's going on.
If a character name contains a full stop, a dash or something else you don't understand (how about "RTS-12.19"?), then the name must be surrounded by apostrophes
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.
Why?
tried it already
But here
Forum on trading, automated trading systems and trading strategies testing
Peculiarities of mql5, tips and tricks
Nikolai Semko, 2019.04.03 22:33
Yes, thank you Alexey. I had forgotten about this feature. Saw it before, but never used it.
Tried it. Something is going wrong. It deletes it, but after deleting it, everything stops.
I simply added one line of code to the DrawSetup() function before calculation of the indicator with the following parameters.
The indicator simply stops working and I am still unable to understand the reason.
I absolutely agree with you. It is just a useless toy.
But here
You can also try releasing all handles in a chain, starting from the most deeply buried one.
Well, it's not working. Or if it does work, then some brakes are applied.
If you document the line withIndicatorRelease, then everything works fine, but otherwise some brakes are on and I don't understand what's happening.
Forum on trading, automated trading systems and testing trading strategies
Indicators: MaFromMa
Nikolai Semko, 2019.04.04 01:00
I wanted to compare the performance of recursion and iteration.
It turns out that recursion is more than twice as fast...
Probably because the stack works faster...
It's an amazing thing. I expected the opposite effect. ))
Guys, do you have a tried and tested and reliable function to calculate the lot by percentage of deposit for MT5, without a stop loss?
Share...
Tester OnTesterInit failed. Optimization cannot be started.It is almost impossible to understand the cause from this message, as there is no reference to the Terminal log at all. That is where you need to look for the cause.
Here is an example of such an EA
The Expert Advisor optimizes in a range where Range does not reach zero. But at the same time, the optimization fails.
The reason is that the Frame mode of Expert Advisors is always launched with the input parameters rigidly prescribed in EX5. In this case, the Frame mode results in adivision by zero.
If OnTesterDeinit is removed from the source code, the Optimization will run without any problems.
It would be nice if the TesterJournal in such situations has a reference to the TerminalJournal. Otherwise it's not always possible to understand (debug is not available during Optimization), what's going on.
You may encounter a situation where EAs do not start on a chart.
On the left is the usual cursor when dragging an EA to a chart. On the right is our case.
There will be no entries in the log. In general, the barring cursor is the only visual identifier of such charts.
If you save the tpl template, these charts will be distinguished by a single line
tester=1This is probably the only programmatic option to identify the type of chart. It's a frame chart.
So if you want to protect yourself from automated trading, you can work only with these charts.
Forum on trading, automated trading systems and trading strategy testing
Bugs, bugs, questions
Nikolai Semko:
Synthetic tool formula gives error "Unknown parsing error" if symbol name starts with (or contains) a dot.
Slava, 2019.04.19 06:08
If a character name contains a full stop, a dash or something else you don't understand (how about "RTS-12.19"?), then the name must be surrounded by apostrophes