I'm looking for a trade management EA that will close all orders based on floating account EQUITY - not on floating profit. This would be useful for managing accounts run by EA's that normally run a floating loss baskets but slowly build equity as trades within the basket are closed in profit. As an example the EA would simply need an input as a $ value so that if set at say 25, all trades would close when the account equity increases by $25 from when the EA was turned on. Once the trades are closed, the EA would simply monitor again for a $25 increase in equity starting from when it last closed all the trades and so on. It would also be handy to have an input for the opposite too - close all orders when floating account equity decreases by X $ amount.
Thx
Edit: The EA attached seems like what I want but gives zero divide error. Additionally I would also want to be able to set floating Equity to close all for minus too
Example:
Close all trades when floating equity increases by (variable) $25
Close all trades when floating equity decreases by (variable) $25
Thx
Edit: The EA attached seems like what I want but gives zero divide error. Additionally I would also want to be able to set floating Equity to close all for minus too
Example:
Close all trades when floating equity increases by (variable) $25
Close all trades when floating equity decreases by (variable) $25
Attached File(s)
CloseAllAtEquityLevel mod.ex4
8 KB
|
277 downloads
CloseAllAtEquityLevel mod.mq4
9 KB
|
305 downloads
1