I need to open an order apart other x pips. for that I though to use this kind of function, but seems it do not work properly. Is that possible take from you some help ?
extern int OppositeDistance = 2;
BuyTicket = OrderSend(Symbol(),OP_BUY,LotSize,Ask,Slippage*pips2points,0,0,"Initial Buy Order",MagicNumber,0,Green);
if(BuyTicket > -1)
BuyAllowed = false;SellAllowed = true;
SellTicket = OrderSend(Symbol(),OP_SELLSTOP, MLots,Bid - OppositeDistance * pips2dbl,Slippage * pips2points,0,0,"",MagicNumber,0,Green);
if(SellTicket > -1)
BuyAllowed = true;SellAllowed = false;
Thank you in advance.