Error when my EA tries to open position

 

My EA tried to open a pos but it dint work.

It has been live for a while buying and selling with no problem but suddenly this came up??


order buy 0.10 EURUSD opening at 0.00000 sl: 1.36698 tp: 1.37378 failed [Invalid S/L or T/P]


Anyone know why? or is there something worng with my brooker?

 
pontuso:

My EA tried to open a pos but it dint work.

It has been live for a while buying and selling with no problem but suddenly this came up??

order buy 0.10 EURUSD opening at 0.00000 sl: 1.36698 tp: 1.37378 failed [Invalid S/L or T/P]

Anyone know why? or is there something worng with my brooker?

What error number ?

Did your Order comply with this ? Requirements and Limitations in Making Trades
 
RaptorUK:
What error number ?

Did your Order comply with this ? Requirements and Limitations in Making Trades


No error code number.


Might be the ask price was to close to the TP. !


But why does it stand this in the log, opening at 0.00000?

 
pontuso:

No error code number.

Are you printing the Error number ? if not, why not ? What are Function return values ? How do I use them ?

pontuso:

Might be the ask price was to close to the TP. !

Are you printing the Bid, Ask, StopLoss, TakeProfit, Stoplevel and Freezelevel when the OrderSend() failed ? if not, why not ?
Reason: