I made another change to MPBM - just the no comment no magic number version. I changed it so that you have the option to have an adaptive % TP and SL. So if you have 5 trades and want an adaptive TP of 0.5% per trade it will TP at 2.5% of balance, similarly it will do the same for SL, if you wish or you can just have a fixed SL or any of the previous options. Each time a trade is added or removed from the basket it will amend the targets (TP and/or SL).
This might be of use to you KingofCoolville, even though not exactly what you wanted?
Please test before using in anger as I am not the world's best coder
I would like to amend the EA so that I can start trailing the basket by a percentage after it reaches a threshold. In an ideal world this would be related to the adaptive %'s so for example if I had 10 trades open, I might have a threshold to start trailing at 0.5% per trade, so at 5% gain, and I would want to trail 1/5th of the threshold size behind the basket. So in this case it would be 1% behind price the basket total value. So in this case if the basket value retraced to 4% it would close. However it the basket gained another 0.1% and then retraced it would close at 4.1% of balance, if it increased 5% then retraced it would close at 9% etc.
I guess I could just trail a fixed % behind the basket value - that would be easier but not as flexible.
The challenge I have is that it is easy to set TP and SL as a % of balance but running totals of basket value are managed in MPBM in cash or pips and the running total of pips is the only one stored in a global variable. So to deal with running totals as % of balance involves quite a bit of rework and/or conversion.
At the moment my coding "skills" are limiting me in implementing this so if anyone out there can think of an elegant solution to this please let me know.

Tommaso?
Cheers,
Dave.
You do not have the required permissions to view the files attached to this post.