Errors, bugs, questions - page 1912
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
Good afternoon!
Could you please advise me on the latest info for MT4?
After sending an order (OrderClose(), OrderModify() ...) from which moment and up to which moment (event) a trade thread remains busy for other experts of the terminal?
Is there a limit on the maximum number of trade orders, which are executed by the broker on a single trading account?
Tester register MQL5.community account and use MQL5 Cloud Network to speed up optimizations Tester MQL5 Cloud Server "4.agents.mql5.com:443" not found
I have never connected the terminal to the Cloud. But this message came up for some reason.
Hello colleagues!
Sorry, I made a mess on the main thread before I saw this one.
Please advise how to solve this problem: MT5 Expert Advisor on FORTS keeps showing error 10022: "Invalidorder expiry date in request" when placing BAY_STOP or SELL_STOP orders.
The date of expiry is not important to me, but I cannot find any parameters which will just set the order. We don't have such a problem in forex. My broker is OPEN. This error occurs in the tester.
Use the ORDER_TIME_DAY method and the time of expiration equal to zero.
Opening broker. Symbol Si-9.17
Used official example from https://www.mql5.com/ru/docs/trading/ordersend help
SendRandomPendingOrder
I added in it
request.type_time=ORDER_TIME_DAY;
request.expiration=0;
(changed lot to 1.0 - their min. lot)
Everything else is the same.
Running several times in a row in the Strategy Tester with the unchanged code, taken from the help
void OnTick(){
SendRandomPendingOrder(10000);
ExpertRemove();
return;
}
1 time: Invalid expiration
2 times: Request executed
3 times: Invalid expiration
4 times: Invalid expiration
5 times: Invalid expiration
6 times: Request executed
Otkritie broker. Symbol Si-9.17
Used official example from help https://www.mql5.com/ru/docs/trading/ordersend
SendRandomPendingOrder
I added in it
request.type_time=ORDER_TIME_DAY;
request.expiration=0;
(changed lot to 1.0 - their min. lot)
Everything else is the same.
Running several times in a row in the Strategy Tester with the unchanged code, taken from the help
void OnTick(){
SendRandomPendingOrder(10000);
ExpertRemove();
return;
}
1 time: Invalid expiration
2 times: Request executed
3 times: Invalid expiration
4 times: Invalid expiration
5 times: Invalid expiration
6 times: Request executed
Does your broker have a time limit for the expiry of the request? At least 10 minutes
Does the broker have a limit at the bottom to the time of expiry of the order? At least 10 minutes
No expiry time needed at all. The code specifies 0. I tried specifying a symbol expiry date instead - doesn't work either. And that explains that 2 out of 6 pending orders have been successfully placed
I just need to set the pending orders without the expiry date. Useless parameter in most cases in EAsIs it working like this?
Limit set, stop returned -1, GetLastError=4756, I don't need to go to Vanga to tell me the cause was 10022
I just need a code that sends a stop order at this broker on futures. With any expiry (preferably without)...I just need the code that sends the stop order at this broker on the futures.
I can't do it in the tester - it's a bug.
You definitely can't do that in the tester - it's a bug.
Great, I'd like to hear more confirmation from the developers. And an expected date of fixing it. The inability to place orders in the tester is very serious for a terminal which is designed for testing.
Great, I'd like to hear more confirmation from the developers. And an expected date of correction. The inability to place orders in the tester is very serious for a terminal which is designed for testing.
This bug is only on futures. On forex symbols it works, of course.