Thank you, this works to close the trade off, however it only closes the trade when one of the trades make the specified loss.
I am trying to work it so that the loss of all trades are taken as a group for that specified amount either in deposit currency or in a percentage of the balance and then it should close all the trades.
eg. On a balance of $100k if total loss reaches $10k close all trades
currently its working that only if one of the trades reaches $10k it will close all trades - so 1 trade is closing at $10k but the other trades are also in there own losses and closing at 8k, 5k, 3k, 1k etc for a total loss of over $10k
I have tried setting a condition that if the equity drops below a certain amount then it should close all trades but that had not worked
Any suggestions?