Hedge, Simultaneously Open BUY/SELL STOP (Pending ORDER) with Executed order

 

I'm newbie. Please help.

If no trade (1st condition) BUY Should be open by default (Default SL 10 pips, Default TP 10 PIPS), 0.01 lot size

2nd condition)SELL STOP pending order should be open simultaneously at SL price of Open order with 0.03 lot size (3 times of Opened order lot size, 3*0.01=0.03)

Example :
1)OPEN BUY order (0.01 loy size)
EURUSD 1.1324
SL 1.1314
TP 1.1334

  1. SELL STOP PENDING ORDER (0.03 lot)
    EURUSD 1.1314
    SL 1.1324
    TP 1.1304

If 1st order hits SL, 2nd SELL stop pending order should open with (0.03 lot),
simultaneously BUY stop pending order should open with 0.09 lot at SL price of Opened sell order

Now it become,

  1. OPEN SELL ORDER (0.03 lot)
    EURUSD 1.1314
    SL 1.1324
    TP 1.1304

2)BUY STOP PENDING ORDER (0.09 lot)
EURUSD 1.1324
SL 1.1314
TP 1.1334

Loop should continue until TP hits, ..

if TP hits, then Pending order should delete automatically..

If no open order, BUY should be open automatically...

Can anyone help in this