if no trade/order exists
{
check last loser type
{is last loser type = Buy Trade}
sendorder --sell
{is last loser type = Sell Trade}
sendorder --Buy
-------------------------------------
check last winner type
{is last winner type = Buy Trade}
sendorder --Buy
static int Buy_TP =0;
static int Sell_TP =0;
{is last winner type = Sell Trade}
sendorder --Sell
----------------------------
check last winner type
lif last trade is buy trade
inc(Buy_TP)
inc(lot)
lif last trade is Sell trade
inc(Sell_TP)
inc(lot)
--------------------------------------
if spread ==2
tp= spread +2
sl=-(tp-1)
}
start loop
if profit > 4
close trade/order