Close all based on %?
-
i can put this function in the costant tabel to have the possibility to change thi value in any moments?
-
Hi
Is it possible to close all orders when it reach a % based on the balance?Thanks
-
Using **Condition **block to check when it's the moment to close them, and then use Close trades to actually close them... this sounds right to me. I guess Profit vs Balance should be compared in the Condition, with using Adjust filed in one of both sides.
If you want to use the profit generated from a group of trades, then use Check current unrealized profit block. If you want to use the balance value somewhere, just write AccountBalance(). Here is a list of similar MQL4 functions: http://docs.mql4.com/account/accountbalance -
Hi
I did try to use the Check current unrealized profit block
But I can only do it in pips or $ amount I want to do it in % based on account balance.Can this be done?
-
As i wrote above, AccountBalance() gives you the current balance value. It's a function, but you can imagine that it is a variable with () at the end. If the balance is 10000 then AccountBalance() will equal to 10000.
AccountBalance()*10/100 = 10% of balance.
-
ok..Hoped it could be dont without any programing. This is over my head
