Attached you find the EA that should do this, please test the functions first on a demo account out!!mobthehop » Thu Mar 27, 2014 10:26 am wrote:Love it! Thanks to original requester and T for coding it....
T, could you do me a personal favour and code a version that:
- multi pairs - ie only need to be run off one chart
1. closes all orders of any ONE currency pair if the profit percentage has reached x% of balance
2. close all open / pending orders of ALL pairs when profit has reached y% of balance (similar to a basket trader) or
3. close all open / pending orders of ALL pairs when profit has reached # of open pairs multiplied by z% of balance or
eg:
1. EUR/USD, balance of account is 5000, profit target 1% (same for each pair!) - close all open orders (including any pending orders) of EUR/USD when total profit of all open orders for EUD/USD has reached 50....
2. Close all orders across the board if overall profit has reached 3% (y%)of balance
or
3. I have orders open for AU and EJ, profit per pair 0.5% (z%) close everything if 1% of balance is reached
Would very much appreciate your help as I am looking for a "helper" like this for ages....
My apologies to the thread owner for posting this here... / Thks in advance MOP
It is a multipair EA, you must only attach it at one chart and it manages all open positions, it does not matter on which chart.
The settings should be self explaining...
please use the deactivate EA button of your Empty4 before attaching the alltrademanager, and activate after attaching the EA, as the EA could freeze for some seconds yor Empty4 , do the same if you want remove the EA (the EA uses an endless loop)
Bugfix 28/03/2014
Cheers
Tommaso