Download MetaTrader 5

MQL5: How to get the "All Time High" balance of the trade account

To add comments, please log in or register
Develop applications to order. Make profit using Freelance service!
pstfch
142
pstfch 2017.03.20 17:12 

Dear all,

do you have an idea how to get the "All Time High" value of the balance of a trade account?

For example: if the balance of a trade account was 25.000$ last year and if I restart the EA in the same trade account today and it has only a value of 17.000$ I want the EA to calculate the Draw Down of 32%.

That means it must be calculated not only in the actual EA session but also if I restart the EA.

The EA should be able to be optimized in backtests so it should not be very time intensive.  For example sum of all trades in history maybe would be very slow, or?


Thanks in advance.

Best regards,

Tom

To add comments, please log in or register