How can I "close all trades when balance-equity=-20%"
-
If I have many trades order which consist of profit orders and loss order, I want to close all trades when my equity is less than my balance too much? like I start with 1000 balance then I run EA until sometime my balance is 2000 but my equity is 1600 (-20%), I want to close all to make my balance is 1600 then I run EA again.
-
It depends. You can compare Balance with Equity or just check the Profit in the Condition block: http://prntscr.com/el61lr If you decide to compare Balance with Equity, use the Adjust field (in More settings). But all this works with the global account equity.
To check only the profit (or loss) made out of certain groups of trades, then use "Check profit (unrealized)". Those Bucket blocks are yet another way to do the same.
And after all checks use "Close trades" to close the trades. And of course, by default this block would only close trades made by the same EA. So, if you want to work globally with all trades, then you need to change some of its settings (group number and market)
-
Hi,
i guess i have a similar question...
So i am running a portfolio of EAs and what normally happens is with large stop losses i have a big increase in the balance and also a big drawdown... So with this in mind, i normally never have more equity than balance.
What i would like to do is:
A EA that compares the initial balance and closes all opened positions when Equity +20% (or -20%) compared with the initial Balance (last time that balance=equity with no trades open)Can you help me with that please?