OrderSend issue [Onda, GoMarkets, ect]

 
Hi, usually im using a lot of scripts with alpari and other broker...
for exsample:

BUYSTOP
Code:
OrderSend(Symbol(),OP_BUYSTOP,lots,Ask+distance*Point,0,(Ask+distance*Point)-stoploss*Point,(Ask+distance*Point)+takeprofit*Point,"Pending BUY",123,0,CLR_NONE);
Simple BUY withouot SL/TP
Code:
OrderSend(Symbol(),OP_BUY,0.10,Ask,3,0,0,"expert comment",255,0,CLR_NONE);
Now im looking for a new broker and Im trying ONDA and GoMarkets (minimun SL is 0 and You cant set SL at the same time you place and instant order) but this kind of scripts does not seems to be working...

Why? and how can I fix that?
 

N

See https://www.mql5.com/en/code/10317

for example of sending order without SL and then adding SL afterwards by ticket number

-BB-

 
Ask+distance*Point,0,(Ask+distance*Point)-stoploss*Point
EA's must adjust TP, SL AND slippage for 5 digit brokers. On ECN brokers you must open and then set stops.
//++++ These are adjusted for 5 digit brokers.
int     pips2points;    // slippage  3 pips    3=points    30=points
double  pips2dbl;       // Stoploss 15 pips    0.0015      0.00150
int     Digits.pips;    // DoubleToStr(dbl/pips2dbl, Digits.pips)
int     init(){
    if (Digits == 5 || Digits == 3){    // Adjust for five (5) digit brokers.
                pips2dbl    = Point*10; pips2points = 10;   Digits.pips = 1;
    } else {    pips2dbl    = Point;    pips2points =  1;   Digits.pips = 0; }
    // OrderSend(... Slippage.Pips * pips2points, Bid - StopLossPips * pips2dbl
 
Oh ok thanks lot ^_^
Reason: