Download MetaTrader 5

Error 130 without SL and TP

To add comments, please log in or register
Dalta
50
Dalta  

Hello,


today while sending a buy stop order on GBPJPY I received this error #130 (invalid stops):


2017.06.07 15:19:35.353 '7626221': order buy stop 0.5 GBPJPY opening at 141.394 sl: 0.000 tp: 0.000 failed [Invalid S/L or T/P]


How's that possible since the stop order was sent without SL and TP?


Thanks in advance!



whroeder1
16574
whroeder1  
Your pending price (a buy stop) was less than the minimum (MODE_STOPLEVEL * _Point.) Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
Dalta
50
Dalta  
whroeder1:
Your pending price (a buy stop) was less than the minimum (MODE_STOPLEVEL * _Point.) Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial


I have implemented that check, maybe it was a transient situation with prices quickly moving?

I was confused by the "invalid SL/TP" message, in that cases it should be something like "invalid open price".


Thanks!

To add comments, please log in or register