Access Tester Statistics from Code

 

Hey,

Is it possible to access tester statistics when the deint() function is called? I tried to calculate the statistics myself by accessing the historical orders, but my values differ from that of the strategy tester. If not possible is there code available that shows exactly how the tester calculates the statistics?

I tried to find code on this site but the search function won't work from my side don't know why...

Thanks for your time!

 
Edit* Here's what I had in mind.
 
ubzen:
Edit* Here's what I had in mind.

Yes that is exactly what I'm looking for.. Thanks!
Reason: