SummaryReport.mq4 - Q regarding drawdown - absolute, max and relative?

 

I am trying to use SummaryReport.mq4 from the article "How to Evaluate the Expert Testing Results" (https://www.mql5.com/en/articles/1403), but I get different results for absolute, max and relative drawdown... Most of the time they are zero when using SummaryReport.mq4, but are different in the Optimization/Tester reports.


So how is absolute, max and relative drawdown calculated in the Tester? I always assumed it's from equity, but from this code it seems to be from balance...?

Can anybody help fix the code in SummaryReport.mq4 or tell me what I am doing wrong so as to get the same figures as u get in the Tester report?


10x.