Hi everyone,
I have an idea of Closing all Open Orders when my Account Equity reach (>=) the Target Balance.
For example:
My Initial Balance = 1000
My target balance is 105% of initial balance
So when the first order opened and my balance at 1050 (1000*1.05) or bigger… -> Close all open orders.
Then my second order opened, and when my balance reach 1102.5 (1050*1.05) -> Close all open orders.
And this is keep going until I reached my Monthly Goal Balance.
Do you know how to make the EA ???
Because I tried it but it didn’t work. Only if I changed my target to a constant number (ex 10) then it worked but not as I hoped for.
Example:
Initial balance = 1000
First order opened and my balance reached 1010 (1000+10) -> Close all open order
Sencond order opened and my balance reached 1020 (1010+10) -> Close all open order
…