block of "Buy / Sell pending orders in grid" with error
-
Started showing the following error: "OrderCheck () failed: Invalid expiration (10022)"
until yesterday it worked.
-
Oh no, the stupid MQL5 again with its meaningless errors. I will see what can I do. What broker do you use?
-
Wait, it is Saturday and markets doesn't work. Does this happen in the Tester? And what Symbol is this?
-
the error occurs in backtest. I got a compiled version 2 days ago, it works normally. When I recompile, this error occurs.
-
@fxdreema I have tested on more than one broker and the same error occurs.
I noticed that the error started after this update. -
Could you check?
-
I tried the block of course, with all Expiration settings, but I have no problems with it. I tried it in EURUSD. What Symbol do you use?
-
Broker "Clear" or "XP" in Brazil.
The Symbol is WIN$N.I did a test with EURUSD on FXpro and it worked, but I work in brokers in Brazil (WIN$N). And it worked.
-
I got this error:

Any chance of another broker with the same problem?
-
Yes.
XP Broker (XPMT5-Demo). -
You won't be able to open a demo account on a Brazilian broker without a live (real) account... in addition, quotes, history data and order routing in MT5 from Brazilian brokers are a joke. All kinds of errors, service outages while market is open... etc... they all blame MT5, but it's their servers.
-
I'm just a demo account.
It used to work. I saw that the new compiled code is very different from the previous version.
Follow the two files for comparison. If it does not, unfortunately I will not be able to use the tool.1_1523416699316_work.mq5 0_1523416699316_dont_work.mq5
-
You don't have to give up.... You can work around this problem by connecting the blocks: "for each pending order" > "check age" > "delete pending orders".... select the correct type of order (sell vs. buy) and go ahead.... The expiration function is a convenience, but some brokers do have limitations so you have to find a solution, and in fxDreema there are dozens of ways for doing the same thing... just be creative
