How to exit a basket of trades when the sum of the winners is double the sum of the losers?
-
Hi all, I'm trying to build the logic so that when I have a basket of trades running, all are closed when the sum of all the winning trades is double the size of the sum of the losing trades. Any ideas how I can do this?
Thanks Drew
-
To do this I've worked out I can use the Condition block comparing the profit of 2 buckets, but can't work out the code for the "Advanced filter" to select trades that are currently in profit (or not) for each of the buckets.
Thanks Drew
-
This is how far I've got. Not sure what to put in the advanced filter

-
Got it worked out...
