Thanks for your reply.
My code for ordersend is OK cause it works for other types of orders like market orders and buylimit. Here goes relevant code:
MqlTradeRequest request={}; MqlTradeResult result={}; ZeroMemory(request); ZeroMemory(result); request.action = TRADE_ACTION_PENDING; . . . help here . . . if(!OrderSend(request, result)) { Print("OrderSend error ", result.retcode); }
I am trading a demo account with much more virtual money to place an order.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hello.
Got:
2023.08.10 14:03:02.176 Trades '3008608544': failed sell stop 10 WINQ23 at 118810 sl: 118815 tp: 118805 [Invalid expiration]
I did many searches, tried many things and nothing result in success for the sell stop pending order i am trying to place.
I attached the image of my broker symbol parameters.
Expiration : Today
What are the vars i have to check/set? Do u have a working code?