Need help to create ea for this perfect hedging system

 

someone create ea for this perfect hedging system i will explain strategy.

01. To keep things simple, let's assume there is no spread. Open a position in any direction you like.

Example : Buy 0.1 lots at 1.9830 A few seconds after placing your Buy order, place a Sell Stop order for 0.3 lots at 1.9800.

02. If the TP at 1.9860 is not reached, and the price goes down and reaches the SL or TP at 1.9770. Then, you have a profit of 30 pips because the Sell Stop had become an active Sell Order (Short) earlier in the move at 0.3 lots.

03. But if the TP and SL at 1.9770 are not reached and the price goes up again, you have to put a Buy Stop order in place at 1.9830 in anticipation of a rise. AT the time the Sell Stop was reached and became an active order to sell 0.3 lots. you have to immediately place a Buy Stop order for 0.6 lots at 1.9830

04. If the price goes up and hits the SL or TP at 1.9860, then you also have a profit of 30 pips.

05. If the price goes down again without reaching any TP, then continue anticipating with a Sell Stop order for 1.2 lots, then a Buy Stop order for 2.4 lots, etc... Continue this sequence until you make a profit. Lots: 0.1, 0.3, 0.6, 1.2, 2.4, 4.8, 9.6, 19.2 and 38.4

add this features to ea...

1. need to delete pending order after trading session over before start new trading session.

2. need to update old TP & SL to new trade TP & SL

Files:
hedging.jpg  34 kb