Run Optimisation. You can see from the code that all passes should be terminated by ExpertRemove. But this doesn't happen:
Core 5 pass 8 tested with error "expert removed itself in global initialization function"in0:00:00.312Core 5 pass 9 returned result 331851.00in0:00:00.125
Core 4 pass 6 tested with error "expert removed itself in global initialization function"in0:00:00.265Core 4 pass 7 returned result 331851.00in0:00:00.140
Core 1 pass 0 tested with error "expert removed itself in global initialization function"in0:00:00.312Core 1 pass 1 returned result 331851.00in0:00:00.125
Core 3 pass 4 tested with error "expert removed itself in global initialization function"in0:00:00.296Core 3 pass 5 returned result 331851.00in0:00:00.156
Core 8 pass 2 tested with error "expert removed itself in global initialization function"in0:00:00.265Core 8 pass 3 returned result 331851.00in0:00:00.140
Tester optimization finished, total passes 10
Statistics optimization done in0 minutes 01 seconds
Statistics shortest pass 0:00:00.125, longest pass 0:00:00.156, average pass 0:00:00.137
Statistics local 10 tasks (100%), remote 0 tasks (0%), cloud 0 tasks (0%)
Half of the passes have ignored ExpertRemove. Is it reproducible?
ZY This causes discrepancies between single passes and optimisations.
This is essentially the same as a single function with a default parameter. this is usually how it's handled, so it's not a workaround or a crutch, it's a perfectly normal solution.
In fact, it's the same as one function with a default parameter. That's usually how it's solved, so it's not a workaround or a crutch, but a perfectly normal solution.
The option of overloading is understandable. But it's not at all flexible to create such a thing for every function. Can't you make it nice in C++ too?
The option of overloading is understandable. But it's not at all flexible to create such a thing for every function. Can't it be done nicely in C++ too?
I don't know, C++ is more flexible with constants, but I haven't worked with function pointers as default parameters
In the Tester report, when calculating the mathematical expectation of two collapsed positions by CloseBy, it is divided by two, instead of one. Hence we get wrong values in the report.
I rented this [product name Market has been deleted by moderator] for one me and I have not been able to change the settings, position number three 3 max
how to change the number of multiple buy and sell positions at the same time
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.
Run Optimisation. You can see from the code that all passes should be terminated by ExpertRemove. But this doesn't happen:
Half of the passes have ignored ExpertRemove. Is it reproducible?
ZY This causes discrepancies between single passes and optimisations.
This is essentially the same as a single function with a default parameter. this is usually how it's handled, so it's not a workaround or a crutch, it's a perfectly normal solution.
In fact, it's the same as one function with a default parameter. That's usually how it's solved, so it's not a workaround or a crutch, but a perfectly normal solution.
The option of overloading is understandable. But it's not at all flexible to create such a thing for every function. Can't you make it nice in C++ too?
The option of overloading is understandable. But it's not at all flexible to create such a thing for every function. Can't it be done nicely in C++ too?
I don't know, C++ is more flexible with constants, but I haven't worked with function pointers as default parameters
UPD g++ eats your codedunno, C++ is more flexible with constants, but I haven't worked with function pointers as default parameters
UPD g++ eats your code with flying coloursThanks for the info!
How do I achieve a default value for the input parameter of a function?
You can use python-style code
You can use python-style code
Thanks, I didn't know about NULL.
In the Tester report, when calculating the mathematical expectation of two collapsed positions by CloseBy, it is divided by two, instead of one. Hence we get wrong values in the report.
And such mishaps at CloseBy in the report
Привет
I rented this [product name Market has been deleted by moderator] for one me and I have not been able to change the settings, position number three 3 max
how to change the number of multiple buy and sell positions at the same time
Philip
Discussion about Market products is prohibited on the forum sorry.
Discussion about Market products is prohibited on the forum sorry.