2013.02.26 05:00:04 '2088220729': order buy limit 0.20 GBPUSDct opening at 1.51822 sl: 1.51387 tp: 2.00000 failed [Invalid S/L or T/P]

 
Wslwilson:
Anyone come across this problem please??

What was the Ask price ?  what is your StopLevel ?

Read this:   Requirements and Limitations in Making Trades

 
2013.02.26 05:00:04 '2088220729': pending order buy limit 0.20 GBPUSDct at 1.51822 sl: 1.51387 tp: 2.00000

hi RaptorUK

 that was my ordersend, bid px was 1.51817 at that time (so ask would've been higher than that).

 

have you seen anything like that before? 


 
the T/P, I set 2.0000 as my stop loss would chance according to market (trailing stop).
 
Wslwilson:
2013.02.26 05:00:04 '2088220729': pending order buy limit 0.20 GBPUSDct at 1.51822 sl: 1.51387 tp: 2.00000

hi RaptorUK

 that was my ordersend, bid px was 1.51817 at that time (so ask would've been higher than that).

What is your Stoplevel ?  did you read the article I gave a link to ?
 

 sl: 1.51387

I have read your link, I'm sure I didn't any of those rules. 


 
Wslwilson:

 sl: 1.51387

I have read your link, I'm sure I didn't any of those rules. 


I asked about Stolplevel not Stoploss.   If you don't know what your Stoplevel is how do you know your trade meets the rules ?
 
Wslwilson:

 sl: 1.51387

I have read your link, I'm sure I didn't any of those rules. 



Your SL have to be to a distance greater then STOPLEVEL (MarketInfor(Symbol(), MODE_STOPLEVEL or ask your broker) from MARKET PRICE. For a buy market price is Ask. So RaptorUk ask you Ask price and Stoplevel at the moment you place your pending order.


By the way, if your order is rejected, that is because your Stoploss is to close from market price.

 
angevoyageur:

Your SL have to be to a distance greater then STOPLEVEL (MarketInfor(Symbol(), MODE_STOPLEVEL or ask your broker) from MARKET PRICE. For a buy market price is Ask. So RaptorUk ask you Ask price and Stoplevel at the moment you place your pending order.


By the way, if your order is rejected, that is because your Stoploss is to close from market price.


WRONG   NOT SL but the OrderOpenPrice() of the BuyLimit is here problem  5 Points difference with Bid

wrong thinking if you think STOPLEVEL  is  only for Stoploss of the trade 

 

Isolate the problem. Use NO SL or TP (for ECN brokers)

Print out the Ask, your open price and stoplevel and GetLastError on the error, so you find out why.

Did you normalize the open price properly?

 
deVries:


WRONG   NOT SL but the OrderOpenPrice() of the BuyLimit is here problem  5 Points difference with Bid

wrong thinking if you think STOPLEVEL  is  only for Stoploss of the trade 


You are right.
Reason: