wealthmaster » Fri Jul 11, 2014 2:35 am wrote:I wold suggest that the EA monitors the net profit of the main + ALR trades and when it is at BE (or small profit) it closes everything instantly. More reliable in my opinion than depending on TP and SL levels.The EA should still put the TP and SL levels though, in case the EA stops working or you lose connection to your account.
Yes, Can be done
Also, i would suggest to add some form of baasket trading options, so that the EA monitors either only original trade, or all trades on pair, or all trades on the account. Which trades to monitor would be one of the input parameters.
The code could be taken from Multi Purpose Trade Manager or similar EA.
Can you explain in detail?
Hi Wealthmaster,
the EA would have the following input parameter:
- Trades_to_monitor:
1: Only Initial_TradeID+ALR trades: means the EA will monitor the net profit of the original trade that started ALR recovery -- this is how the EA works by default
2: Monitor net profit of all trades on the pair regardless if they were opened by ALR or any other means
3: Monitor net profit of all trades on the account regardless if they were opened by ALR or any other means
When the monitored trades reach BE or small profit the EA closes all the trades it is monitoring at once.
This is useful in the following examples:
You have a losing position on a pair which triggered ALR and you are waiting for the trades to reach a net profit of BE (+ small profit), but then you see another good opportunity on the charts and enter a separate trade on the same pair,the ALR EA would not change anything in the eay it operates, it would just also include the profit of the separately opened trade in its net profit calculation and potentially reach overall BE on the pair sooner.
Same logic applies to the EA monitoring the whole account profit.
For me personally the most important thing after a loss is to recover it ASAP in by any means, not necessarily only through the ALR recovery trades.
One could apply another trade manager EA on another chart to monitor the net profit all the open trades on the pair or account, but it would be nice to have it part of the ALR EA.
in a nutshell, it gives you the flexibility as to what you want to consider contributing to the recovery of the losing trades without depending on your broker to fill the TP/SL levels.
Does this make more sense now?