I have seen from 'Make-A-New-EA' that OnTester() should be a 'root-function' and seems not to be meant to be called from within OnTick() - as I said example-code would be so easy and helpful.
Well OnTester() is a function that returns a double. To the genetic optimizer as this suggests:
"In the genetic optimization descending
sorting is applied to results within one generation. I.e. from the point of view
of the optimization criterion, the best results are those with largest values
(for the Custom max optimization criterion values returned by the OnTester
function are taken into account). In such a sorting, the worst values are
positioned at the end and further thrown off and do not participate in the
forming of the next generation."
But for what is there this ENUM_STATISTICS - ID: STAT_CUSTOM_ONTESTER?
"The value of the calculated custom
optimization criterion returned by the OnTester() function"
Add. Question: I think STAT_PROFIT is either positive or negative but e.g. STAT_BALANCE_DD is it always positive or alwys negative - or zero in case of the holy grail ;)
It would help if the reference would inform us about the range of each variable!
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.
Hi,
My second try to use OnTester().
I have seen from 'Make-A-New-EA' that OnTester() should be a 'root-function' and seems not to be meant to be called from within OnTick() - as I said example-code would be so easy and helpful.
Well OnTester() is a function that returns a double. To the genetic optimizer as this suggests:
"In the genetic optimization descending sorting is applied to results within one generation. I.e. from the point of view of the optimization criterion, the best results are those with largest values (for the Custom max optimization criterion values returned by the OnTester function are taken into account). In such a sorting, the worst values are positioned at the end and further thrown off and do not participate in the forming of the next generation."
But for what is there this ENUM_STATISTICS - ID: STAT_CUSTOM_ONTESTER?
"The value of the calculated custom optimization criterion returned by the OnTester() function"
The use of 'Make-A-New-EA' looks this way:
Add. Question: I think STAT_PROFIT is either positive or negative but e.g. STAT_BALANCE_DD is it always positive or alwys negative - or zero in case of the holy grail ;)
It would help if the reference would inform us about the range of each variable!
Gooly