OpenStorm: Yes, they do work - the unknown error is really scary. We haven't seen anything like that on the reals yet %), although we refresh as much as we want and the slip has gone up to the sky.
Please post the terminal logs and explain the situation in more detail.
In general, as someone correctly pointed out: we open at the beginning of the competition and the orders are forcibly closed by the organiser at the end of the championship :)
Renat: Re-checked - everything opens and closes perfectly from the experts. Check your code, please.
As you suggested, we have a multi-currency trade on one chart and look what has appeared: when trying to close an order on the market on a different chart/pair, the closing command tries to close it with the digit capacity of the pair, on which the EA is attached. So we have at the OrderClose input a value obtained by IClose for the symbol to be closed with an incorrect digit capacity. Of course we can try to use NormalizeDouble (or other passes) to cut the digit capacity of the symbol, but this will be market close in the ... wrong way and I don't think it will help. And I agree with SK (from the interview) about the possibility to connect the EA to several pairs by attaching it to only one chart - this condition is wrong. So you don't allow the analysis to work on the market by instrument. Or you could put a condition that EAs should work only with pending orders. So put it in the terminal bug report for working out: OrderClose on third-party instruments with a different digit capacity than the digit capacity of the current chart (to which the EA is connected) "puts" on the digit capacity of this instrument/symbol.
Actually, while we were digging for the cause On the market, we're going like this: ... OrderClose(OrderTicket(), OrderLots(), iClose(OrderSymbol(),0,0) , SlipPage, Violet); RefreshRates() etc. ... The strangest thing is that they closed normally till yesterday, and it flew only yesterday.
In OrderClose now you have to look through the ticket for OrderSymbol, use it to remove MODE_POINTS for the symbol, and to close the order normally.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Yes, they do work - the unknown error is really scary. We haven't seen anything like that on the reals yet %), although we refresh as much as we want and the slip has gone up to the sky.
2006.08.23 17:03:40 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2700
2006.08.23 17:03:36 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2700 failed [unknown error]
2006.08.23 17:03:36 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2700
2006.08.23 17:03:22 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2700 failed [unknown error]
2006.08.23 17:03:22 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2700
2006.08.23 17:03:15 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2700 failed [unknown error]
2006.08.23 17:03:15 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2700
2006.08.23 17:02:45 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2600 failed [unknown error]
2006.08.23 17:02:45 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2600
2006.08.23 17:02:44 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2600 failed [unknown error]
2006.08.23 17:02:43 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2600
2006.08.23 17:02:43 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2600 failed [unknown error]
2006.08.23 17:02:43 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2600
2006.08.23 17:02:42 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2600 failed [unknown error]
2006.08.23 17:02:42 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2600
2006.08.23 17:02:18 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2700 failed [unknown error]
2006.08.23 17:02:18 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2700
2006.08.23 17:02:18 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2700 failed [unknown error]
2006.08.23 17:02:17 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2700
2006.08.23 17:01:58 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2500 failed [unknown error]
2006.08.23 17:01:58 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2500
2006.08.23 17:01:54 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2500 failed [unknown error]
2006.08.23 17:01:53 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2500
2006.08.23 17:01:45 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2500 failed [unknown error]
2006.08.23 17:01:44 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2500
2006.08.23 17:01:42 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2500 failed [unknown error]
2006.08.23 17:01:42 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2500
2006.08.23 17:01:41 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2500 failed [unknown error]
2006.08.23 17:01:41 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2500
2006.08.23 17:01:38 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2500 failed [unknown error]
2006.08.23 17:01:38 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2500
2006.08.23 17:01:08 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2600 failed [unknown error]
2006.08.23 17:01:08 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2600
2006.08.23 17:00:59 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2400 failed [unknown error]
2006.08.23 17:00:59 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2400
2006.08.23 17:00:31 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2500 failed [unknown error]
2006.08.23 17:00:30 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2500
2006.08.23 17:00:13 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2700 failed [unknown error]
2006.08.23 17:00:13 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2700
2006.08.23 17:00:02 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2700 failed [unknown error]
2006.08.23 17:00:02 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2700
2006.08.23 17:00:02 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2700 failed [unknown error]
2006.08.23 17:00:02 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2700
2006.08.23 16:59:59 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2700 failed [unknown error]
2006.08.23 16:59:59 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2700
2006.08.23 16:59:57 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2700 failed [unknown error]
2006.08.23 16:59:57 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2700
2006.08.23 16:59:43 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2700 failed [unknown error]
2006.08.23 16:59:43 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2700
2006.08.23 16:59:29 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2600 failed [unknown error]
2006.08.23 16:59:29 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2600
2006.08.23 16:57:29 '410260': order #4164036 sell 0.20 USDJPY closing at 116. 2700 failed [unknown error]
2006.08.23 16:57:29 '410260': close order #4164036 sell 0.20 USDJPY closing at 116. 3100 sl: 0.0000 tp: 0.0000 at price 116.2700
In fact I can hardly know more details. My orders were closed in all conditions with unknown error. I will see how it goes from here.
we open at the beginning of the competition and the orders are forcibly closed by the organiser at the end of the championship :)
Can you post a piece of code that closes this position?
In any case, closing other positions worked fine on this account today.
Market orders do not cover the market. On pending orders (take profit) - everything is OK
Check your code, please.
Re-checked - everything opens and closes perfectly from the experts.
Check your code, please.
So put it in the terminal bug report for working out: OrderClose on third-party instruments with a different digit capacity than the digit capacity of the current chart (to which the EA is connected) "puts" on the digit capacity of this instrument/symbol.
But you still haven't provided a sufficient piece of code that shows how you close a position. This is the third time I've asked for it.
On the market, we're going like this:
...
OrderClose(OrderTicket(), OrderLots(), iClose(OrderSymbol(),0,0) , SlipPage, Violet);
RefreshRates()
etc.
...
The strangest thing is that they closed normally till yesterday, and it flew only yesterday.
In OrderClose now you have to look through the ticket for OrderSymbol, use it to remove MODE_POINTS for the symbol, and to close the order normally.