useProfitToClose = true; - if it is true the EA will close trades when the profit is greater than defined profit to close;
profitToClose = 20; - the defined profit in account currency, when close trades;
useLossToClose =false; - if it is true the EA will close trades when the loss is greater than defined loss to close;
lossToClose =100; - the defined loss in account currency, when close trades;
AllSymbols =true; - if it is true the EA closes trades on all symbols, if false- only on current symbol where EA is attached;
PendingOrders =true; - if it is true the EA closes also pending orders, on all symbols or current symbol depends on AllSymbols setting;
MaxSlippage = 3; - maximal allowed slippage in pip;
showMenu = true; - if true, EA shows on graph information about open trades, lots and profit;
menuColor = Yellow; - color of menu text;
variablesColor = Red; - color of variables;
font = 10; - font size;
please see the “close at profit” at the above link..
I just need some modification and addition to this ea..
1. this EA closes all the trades in my MT4 terminal when the profitToClose amount is reached or lossToClose is reached.. its like setting TP and SL but not to any chart or not to any pair but to the cumulative profit/loss of all the open trades.
2. Now what I need is, I need some addition to this similar to a trailing stop..
3. For example, when I set the ProfitToclose at 50$, all order in my account gets closed when 50$ profit is reached in my account. What I need is.. I don’t want the orders to be closed.. EA should close orders when the profit reduces from 50$ to 40$.. if not it should wait for increasing amount.. suppose when the profit goes to 60$, then the ea should close the orders when the amount comes back to 50$ and so on.. my explanation is not that clear I think.. but you can understand easily what I am looking for..
This is not a complicated coding I feel so I will give it to the lowest bidder and will pay through paypal only when I test the ea.. please tell me the time u need to complete the ea