Alc,
As I mentioned in an earlier thread, my positions book would look totally different if the EA had the option 'close all at profit target'.
The first take profit in my batch of positions closed some and left others running, which is normal in your algo, but a choice for the user would help prevent potential DD.
The moment the intial 'partial close' took place, the overall balance/equity was in profit.
Perhaps it would not work or impossible in the code if the balance is negative, but if all is in profit, then close all and reset the algo to look for more trades.
If that was the case then my current trades would be empty, and I would have closed the ea/mt4 for the day. I believe it's already in the code as it decides to close some trades, not all.
Yes, I know, I am trying to 'semi automate' this EA, but I think a 'close all at profit target' could be a potential feature to think about. Or something like it.