Alexey Kozitsyn: And while we're on the subject. Next question. According to the logs, we can see that the order initiating the trade is of sell limit type. But when we get the order type from the OnTradeTransaction() function, we get ORDER_TYPE_BUY. How so? Yes, if we look further, any initiating order in the tester, when processed in OnTradeTransaction, is ORDER_TYPE_BUY. There is definitely an error.
There is a similar situation in the terminal. The order initiating the trade is Buy Limit and we obtain ORDER_TYPE_BUY when processing the trade in OnTradeTransaction(). But the order number is buy limit.
Alexey Kozitsyn: Similar situation in the terminal. The order initiating the trade is a buy limit, and when processing it in OnTradeTransaction() we get ORDER_TYPE_BUY. But this is a buy limit.
If you test with the same settings and input parameters, this error should reproduce at the same place.
Is it reproducing?
Yes, that's what I'm telling you! In the same place, at the same settings. Try it yourself on the M5 spot according to my logs. Be sure on all ticks as everything is fine on OHLC M1.
Alexey Kozitsyn: Yes, that's what I'm telling you! In the same place, with the same settings. Try it yourself on M5 place by my logs. Be sure on all ticks as everything is fine on OHLC M1.
So that there are no misunderstandings or miscommunications.
Give the tester settings here. It can be a screenshot.
And while we're on the subject. Next question. According to the logs, we can see that the order initiating the trade is of sell limit type. But when we get the order type from the OnTradeTransaction() function, we get ORDER_TYPE_BUY. How so? Yes, if we look further, any initiating order in the tester, when processed in OnTradeTransaction, is ORDER_TYPE_BUY. There is definitely an error.
Similar situation in the terminal. The order initiating the trade is a buy limit, and when processing it in OnTradeTransaction() we get ORDER_TYPE_BUY. But this is a buy limit.
Was that a sell limit?
Indicator debugging on history has died again. Build 1210 MT5. Please don't kill something that used to work.
Service Desk #1316881
Tried your option. As I said earlier, the error is 'floating'. It can't always be repeated. And I have a log from the M5.
From the logs, it looks like an error:
Transactions are clones. Exactly the same. No such thing on OHLC M1.
Definitely a clone.
If you are testing with the same settings and input parameters, this error should reproduce on the same place.
Is it reproducing?
Definitely a clone.
If you test with the same settings and input parameters, this error should reproduce at the same place.
Is it reproducing?
Yes, that's what I'm telling you! In the same place, with the same settings. Try it yourself on M5 place by my logs. Be sure on all ticks as everything is fine on OHLC M1.
So that there are no misunderstandings or miscommunications.
Give the tester settings here. It can be a screenshot.
If the input parameters of the Expert Advisor are different from the default ones, then give the set-file with the input parameters here.
This article describes the trade server. A demo account or a real one.
So that there are no ambiguities or misunderstandings.
Give the tester settings here. It can be a screenshot.
If the input parameters of the Expert Advisor are different from the default ones, then give the set-file with the input parameters here.
This article describes the trade server. A demo account or a real one.
Account - demo, server 193.219.127.76:4443, set in application.
port 443