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.
totally stuck on this one.
scenario: EA for MT5
the EA is supposed to add SL and TP as soon as a new order is entered.
orders can be all possible types from market to stop/limit order.
IT#d working fine with the market orders but not at all with the limit and sop orders.
I permanently(since 2 days) get "Invalid request" or sl/tp erors. sl and tp calculation is seemingly correct as it works for the
market orders and when I log the actual values SL and TP would sit exactly where expectd, soit must be some issue with the request I'm sending.
I already tried the following:
the error shows following values for a sell limit order which are correct and make sense but still get the error
Ask: 48358.12
sell limit price: 101001.13
SL: 120060.03
TP: 628833,33
I entered the values manually and they are accepted, so it's not a matter of wrong SL/TP calculation, neither rounding issues.
I treid as well with order send and Request and response with the same values .. but still no success
This is all according to documentationand I'm totally stuck.
Can anybody help, please?
Thanks in advance