Is this the correct code for ibfx new policy? This does not seem to be working, I am still getting error 130 after sending the trade.
ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,Bid+SL*Point,Bid-TP*Point,"Qbot-Alf",MagicNumber,0,Red);
ticket = OrderSend(Symbol(),OP_SELL, Lots, Bid, Slippage, 0, 0, "Qbot-Alf", MagicNumber, 0, Red);
if(ticket>0) {
if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) Print("SELL order opened : ",OrderOpenPrice());
OrderModify(ticket, OrderOpenPrice(), SL, TP, 0, CLR_NONE);
NoOpen = True;
ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,Bid+SL*Point,Bid-TP*Point,"Qbot-Alf",MagicNumber,0,Red);
ticket = OrderSend(Symbol(),OP_SELL, Lots, Bid, Slippage, 0, 0, "Qbot-Alf", MagicNumber, 0, Red);
if(ticket>0) {
if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) Print("SELL order opened : ",OrderOpenPrice());
OrderModify(ticket, OrderOpenPrice(), SL, TP, 0, CLR_NONE);
NoOpen = True;