Tâche terminée
Spécifications
Hi. I need an EA (semi EA) which can help me to place opposite trade pending order as soon as the open order was closed by either hit TP/SL/close manually.
So, I will explain the scenario with the aid of this picture.
Initially, I will manually open my initial order or set one pending order waiting the price to hit it.
Look at the picture:-
1) Buy order is placed manually. Then, sell stop is placed by EA at certain
distance set by x_pips variable (40pips).
2) Buy(1 lot) --> hit SL(40pips), Buy stop is placed by EA at the price level which same as initial trade. Sell stop --> trigger Sell
3) Sell(1 lot) --> hit SL(40pips), Sell stop is placed by EA at the price
level which same as initial trade. Buy stop -->trigger Buy
4) Buy(1 lot) --> hit SL(40pips), Buy stop is placed by EA at the price level
which same as initial trade. Sell stop --> trigger Sell
5) Sell(1 lot) --> hit SL(40pips), Sell stop is placed by EA at the price level which same as initial trade. Buy stop --> trigger Buy.
6) Buy(1 lot) --> hit TP(100pips), previous pending sell stop is closed. So, the cycle back to no.1 again.
*Lot size can be fixed lot or lot multiplier.
Thus, there is no limitation on placing pending order after open order being
closed. Also, total profit/loss for the specific currency pair of total trades
can be displayed on the screen chart will be good. Something looks like this.
So, based on the previous scenario, I explain how the display works. So, once the EA is attached to the chart, it start calculate the P/L which accumulate starting from initial trade order till the end of the cycle. When, the trade cycle end which means there is no trade at that time, the total of current profits/losses is reset and waiting for the new cycle of initial trade.
1. Total of current profits/losses(pips): 0
Total of current money(USD) :0
2. Total of current profits/losses(pips):-40
Total of current money(USD): -400
3. Total of current profits/losses(pips):-80
Total of current money(USD): -800
4. Total of current profits/losses(pips):-120
Total of current money(USD): -1200
5. Total of current profits/losses(pips):-160
Total of current money(USD): -1600
6. Total of current profits/losses(pips):-60
Total of current money(USD): -600
7. Total of current profits/losses(pips):0 (reset due to end of trade cycle/empty trade)
Total of current money(USD):0
It also works the same in lot multiplier instead of fixed lot.
I'll provide you the important parameters in doc. files. =)