take a look
https://www.mql5.com/pt/forum/37445
https://www.mql5.com/pt/forum/40174
- 2015.01.28
- www.mql5.com
Hi
I'm getting the "Invalid Expiration" message - not on my machine but on a users machine.... I did a search but couldn't find anything for this specific case.
We first saw the issue last week when he was submitting Time In Force to GTC on limit & stop orders. He's in Brazil and it rejected every order. When he used "DAY", the limit orders worked fine but the stop orders still don't work.
At no point have we set the actual "expiration" dateTime property, we are just using the type_time property.
There's 2 issue I'm trying to fathom here.
1 - What exactly to set so it works for the Brazil markets
2 - How to know to use different settings in that specific case
3 - Whether there is any documentation anywhere on what should be sent (I realize this is probably a function of the exchanges)
The code we use to create the order is below - works fine on US Futures and Eurex Futures markets.
Thanks
Pete
Add this line :
request.type_filling=ORDER_FILLING_RETURN;
Not related, but you should always check the return value and return code of OrderSend().
Add this line :
Not related, but you should always check the return value and return code of OrderSend().Many thanks! Adding "ORDER_FILLING_RETURN" seems to have fixed it!
Thanks a million....
Peter
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
I'm getting the "Invalid Expiration" message - not on my machine but on a users machine.... I did a search but couldn't find anything for this specific case.
We first saw the issue last week when he was submitting Time In Force to GTC on limit & stop orders. He's in Brazil and it rejected every order. When he used "DAY", the limit orders worked fine but the stop orders still don't work.
At no point have we set the actual "expiration" dateTime property, we are just using the type_time property.
There's 2 issue I'm trying to fathom here.
1 - What exactly to set so it works for the Brazil markets
2 - How to know to use different settings in that specific case
3 - Whether there is any documentation anywhere on what should be sent (I realize this is probably a function of the exchanges)
The code we use to create the order is below - works fine on US Futures and Eurex Futures markets.
Thanks
Pete