Inserted Code
if(HideSL==false&&StopLoss>0){SL=Bid+StopLoss*Point;/*OPP=Ask+StopLoss*Point;SLP=Ask;*/}else {SL=0;/*SLP=0;*/}
if(HideTP==false&&TakeProfit>0){TP=Bid-TakeProfit*Point;/*TPP=Ask+(TakeProfit*2)*Point;*/}else {TP=0;/*TPP=0;*/}
if(HideSL==false&&HedgeSL>0)SLH=Ask-HedgeSL*Point;else SLH=0;
if(HideTP==false&&HedgeTP>0)TPH=Ask+HedgeTP*Point;else TPH=0;
Ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,0,0,EAName,Magic,0,Red);
if(Hedge)TicketH=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,EAName,Magic,0,Blue);
OrderModify(Ticket,0,SL,TP,0,CLR_NONE);
if (Hedge) OrderModify(TicketH,0,SLH,TPH,0,CLR_NONE); Ehm, any idea? MBT won't accept market orders with TP/SL and modifying them afterwards just gives the same error.