Ubzen OOP Project with MAE - page 2

 
ugo58:

As I would like to continously adapt the MAE, MFE on a running expert I think the code to calculate the values should be based on a common structure.

Check this article, too.

So the code could be indepent wherever the deals are read from.

For this kind of calculation it might sufficent to record only the exits. If you have an in/out than split the record into an "in" and "out" record.

So you could use the struct of this article as a basis model for the deals (fill the same structure from the html-parser and write to csv):

I'm still playing around with OOP and the Design for this. The structure I had in mind is a little different but should be too difficult to convert. I'm still plowing away ... thx again.
Mathematics in Trading: How to Estimate Trade Results - MQL4 Articles
  • www.mql5.com
Mathematics in Trading: How to Estimate Trade Results - MQL4 Articles: automated forex trading
 
Could this be of help?
Files:
 
I thought you may want to read MAE and MFE on the fly as the EA is running as opposed to trying to read tester reports... a slightly different approach?
Reason: