Trade Server Return Codes - Codes of Errors and Warnings - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello all,
I'm trying to set order with EA and get an error invalid stops
Order type: OP_SELLSTOP
Price: 1.066960
SL: 1.068760
TP: 0.000000
Bid = Ask at the moment of the operation and they are 1.067200
Stop Level of the pair is 0.00000
Can some one help me to understand what's going wrong with it?
Thanks ahead!