Help me this EA working

So I decided to create HEDGE EA by this strategy
www[]forexstrategiesresources[]com/support-and-resistance-forex-strategies/7-hedging-strategy-sure-fire/
cant post link, so changed dots - . = []
but I got problems, could u help me?

EA:

extern double TakeProfit = 300;
extern double Lots = 0.01;
extern double StopLoss = 300;
//±-----------------------------------------------------------------+
int start()
{
int ticket;
int ticket1;
int ticket2;
double Open_Price;
double Open_Price_Sell;
int a;
int b=0;
//----
if (OrdersTotal()==0)
{
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-600Point,Ask+300Point,“MA sample”,16384,0,Green);
a=1;
}
//----
if (OrdersTotal()==1)
{
OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES);
{
if ((OrderType() == OP_BUY))
{
Open_Price = OrderOpenPrice();
ticket1=OrderSend(Symbol(),OP_SELLSTOP,Lots3,Open_Price-300Point,3,Open_Price+300Point,Open_Price-600Point,“MA sample”,16384,0,Green);
}
}
}
//----
if (OrdersTotal()==2)
{
OrderSelect(ticket1,SELECT_BY_TICKET,MODE_TRADES);
{
if ((OrderType() == OP_SELL))
{
Open_Price = OrderOpenPrice();
ticket2=OrderSend(Symbol(),OP_BUYSTOP,Lots12,Open_Price+300Point,3,0,0,“MA sample”,16384,0,Green);
}
}
}
//----
//----
return(0);
}
//±-----------------------------------------------------------------+

I started for now only with buy, latter I’ll change it :slight_smile:
soo problem is that it doesn’t open correct order while OrdersTotal()==2, it doesnt place BUYSTOP :?, I tried even if there is no TP and SL