Total Profit from trades in a day
-
Hello
I want to stop trading when the total profit of all trades taken in a day is 25% of the starting equity.
e.g Trade begins at 8.am , balance is $100, after 3 trades (trade 1 = -$10, trade 2 = $30, trade 3 = $5) total profit = $25 therefore the EA stops trading
Next day balance is $125 ...e.t.c
Does this work?
-
This will not work, the chance is to put 5 trades in a row

So you want to get the equity when a new day comes. Then I will suggest "Once a day" -> Get that equity in a variable + calculations if needed
Then, at a separate group of blocks you can compare that value with...- In Condition (Account -> Equity) you can get the current global equity, the one you can see in MetaTrader
- With block "Check current unrealized profit" you can get the profit from a group of running trades. This is not the global profit, because you can have other trades outside this EA.
- Something else, like the total profit from all trades closed today + the currently running ones. Well, this will require some more blocks

-
Many thanks for the tips