Pending order: Expiration hour BUG
-
Dreema look at this: http://prnt.sc/aixyjb
Why is that?

-
What Symbol is this?

-
"
" lol
VALEI40 xp investimentos, the demo acc you got at my thread "NOTHING WORKING ON .EX5".
BTW, it's not working on any symbol. You can try in any stock symbol also: OIBR4, USIM5
-
It shows some valid expiration modes - http://prntscr.com/aj4kml
http://i.imgur.com/tFWRzed.png
These symbols are so weird, but MT5 is crazy anyway
-
I remember 3 types of expiration:
ORDER_TIME_GTC - Good till cancel, which is when there is no expiration
ORDER_TIME_DAY - Good till current trade day order, which is "Today" - the expiration that ends at 00:00
ORDER_TIME_SPECIFIED - The option you are usingI tried the "Today" option and it works. As you can see, ORDER_TIME_SPECIFIED is not valid option for this symbol. I was not aware of this "Specified day", it's probably new option, and this is what they say about it:
ORDER_TIME_SPECIFIED_DAY - The order will be effective till 23:59:59 of the specified day. If this time is outside a trading session, the order expires in the nearest trading time.
This mode does not exists in fxDreema yet. In any case, you can's set expiration of 2 hours. As you can see, in theory you can only use options that expire at 00:00 in some day. But if you really need to expire pending orders few hours later, then you can make artificial expiration - check the age of orders and close them when they are N hours old. Something like "For each Pending Order -> check age -> close"
-
Well, ok, thanks for your response!
Now using the check pending orders->check age and it's working, thanks.