Close Trades when a specific rawdown is reached
-
Does anyone here knows how to close Trades when a specific drawdown is reached?. Thank you.
-
You can try this: http://prntscr.com/e766g3 I hope that it will work, but I'm not sure, because I made this long time ago and even I forgot how this thing works. What I tried back then is to make all the statistics that appear after the end of a backtest available in realtime. Probably not the best idea ever, these calculation would slow down the EA
This is only for the MQL4 part.I guess Drawdown can be also calculated with some Variables. I forgot how exactly this was calculated, but I think that you need to always look for the maximum value of Equity (or Balance).
All the above is true for the global Equity/Balance. If you want to work only with certain group of trades... well, maybe you don't really want Drawdown, maybe you want "Check profit (unrealized)". Also different values calculated from certain group of trades can be get with these "Bucket..." blocks.