EA For Stacking

Hi there. I am interested in creating an EA that will do the following:

1 - I will trigger the first trade on current market value from my mobile device. The stop loss for this should be set to -10 by default.

2 - The metatrader platform running on a pc will then need to execute an EA that create a second order with the same lot size as first after 10 pips into profit.

3 - Then the stop loss for the first trade will be moved to break even and the stop loss for the second trade will be -10. Once the second trade reach 10 pips the first trade will be on 20 pips.

4 - Now the ea needs to open a third and final trade with stop loss of -10 and take profit of 10. It should also move the stop loss for trade 1 to 10 pips and for the second trade to breakeven.

5 - Once the third trade reaches take profit all the other trades should also close.

Any help would be much appreciated.