There's a lot of info here explaining the reasoning and your code, and I appreciate that. Here's the Tl;dr version for those of us for whom most of this went over our heads:
What I have NOT figured out yet, and am hoping someone can help me with, is what to do to implement the equity listener in your own EA that's not based on CStrategy. All the article says is:
When it is necessary to calculate the strategy equity, however, users who do not employ CStrategy will have to do it themselves.
zrwhiteley #: That is genius. Thanks alot for the great article! I wonder how R2 measuring quality compares to measuring standard deviation from an account balance moving average.
It should be very similar... a comparison is on my long disorganised todo list!
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.
Thanks, dragged a piece of it away for myself :)
can someone fix the archive i got 30 errors
There's a lot of info here explaining the reasoning and your code, and I appreciate that. Here's the Tl;dr version for those of us for whom most of this went over our heads:
1. Add the includes
2. And the OnTester:
That's it to implement it based on balance.
If your EA uses CStrategy (as the wizard EAs do), then add the same includes, and you can switch to the equity like this:
What I have NOT figured out yet, and am hoping someone can help me with, is what to do to implement the equity listener in your own EA that's not based on CStrategy. All the article says is:
And I'm at a complete loss how to do that.Fixed the errors. The archive is attached.
Thanks, updated the article.
That is genius. Thanks alot for the great article! I wonder how R2 measuring quality compares to measuring standard deviation from an account balance moving average.
It should be very similar... a comparison is on my long disorganised todo list!
Normalize the volume : Take the profit and divide by the lot size
Or divide balance[0] by balance[1] to get return, and calculate r^2 for the return curve