130 invalid stops but everything seems right..

 
Hi everyone,
this is what I'm trying as parameters of OrderSend:

GBPJPY
order type 2 (OP_BUYLIMIT)
volume 1
limit price 190.68
slippage 10
stoploss 185.68
takeprofit 195.68
comment ""
magic 0
expiration  10


the price is around 189.5 right now so the limit price is 100 pips away...what's wrong?
changing order type to OP_BUY and price to the last tick fills in..

thanks in advance,
Michele
 

S

You need OrderType of OP_BUYSTOP

The naming convention is not... intuitive!

HTH

-BB-