How to get the highest drawdown value on screen
-
How can I have the highest recorded drawdown value during the EA running period to be shown in a comment (or get the value into a variable)?
-
@vish You can do it this way:

-
@l-andorrà said in How to get the highest drawdown value on screen:
@vish You can do it this way:

Thank you!
-
@vish You're welcome.
-
can this work on MT5? i do not see such options under the conditions block.
-
@coolermaster88 I'm afraid not. Those options are not available for MT5 blocks.
-
Thank you so much for your response.
What do I wish to achieve as a comment/alert is to display the value of a trade which happens to be the worst drawdown.
for instance if I had 10 winning trades throughout the day/week, which of them had the most drawdown.
this way I can further improve the strategy by knowing the weakest setup and ask myself why or possibly change the parameters.
also I will know that my worst drawdown trade happened 3 days ago or 1 hour go, this way I can gauge if I am improving if my last worst drawdown was long ago or reduced in value.
-
@coolermaster88 Modify variable block > Account>Profit> equity - balance, put result in variable. Then condition block block value numeric YourVariable < 0 (=drawdown). Then Modify variable block again... then comment. But this will modify that same variable over and over again... So I don't know how you could make comparisons. Maybe you could define some other "target" variables and if your drawdown variable reaches one or the other to modify those? Per trade assign some ID? Just some Ideas for you to play around.