You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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