Discussing the article: "Trade transactions. Request and response structures, description and logging" - page 4
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
Can you explain these incomprehensible moments to me in more detail?
Regards, Vladimir.
The data are stored on the server. The terminal receives them into its environment and the Expert Advisor then uses them.
The data is stored on the server. The terminal receives them into its environment and the Expert Advisor then uses them.
Then it's strange why today the EA didn't find the deal opened yesterday? It used to. Here's the code:
A small addition. Can the rollover somehow influence the ticket of an open trade, namely change it?
Regards, Vladimir.
Then it's strange why today the Expert Advisor didn't find the deal opened yesterday. It used to. Here's the code:
A small addition. Can the rollover somehow influence the ticket of an open trade, namely change it?
Regards, Vladimir.
You can find all its trades and orders by the ID of an open position.
Then it's strange why today the Expert Advisor didn't find the deal opened yesterday. It did before. Here's the code:
A small addition. Can the rollover somehow influence the ticket of an open trade, namely change it?
Regards, Vladimir.
When making a deal, the server sent a "message" to the terminal that the deal was made and forgot about it. The server doesn't care whether the terminal received it or not. So, if the terminal is switched off at the moment of a deal, you can learn about the deal only by reading the history from the moment of terminal closing to the current moment.
So, if the terminal is switched off at the moment of a deal, you can learn about the deal only by reading the history from the moment the terminal is closed to the current moment.
Hi Alexey, at the moment of the deal, namely at the moment of opening a position, the terminal was switched on, because the Expert Advisor opened it.
Regards, Vladimir.
You can find all its trades and orders by the ID of the open position.
I see. I'm going to study the Handbook further.
Regards, Vladimir.
Hi Alexey, at the moment of the trade, namely at the moment of position opening, the terminal was on, because the Expert Advisor was opening it.
Regards, Vladimir.
How to understand this
Forum on trading, automated trading systems and testing trading strategies.
Discussion of the article "Trading transactions. Structures of requests and responses, description and log output"
MrBrooklin, 2023.10.17 16:48
Then it is strange why today the Expert Advisor did not find the deal opened yesterday? Earlier it did. Here is the code:
A small addition. Can the rollover somehow influence the ticket of an open trade, namely change it?
Regards, Vladimir.
So yesterday it found it. And today the train is already on its way...
If yesterday there was an order, a pending order, and today there is already a position, which is what I was talking about, then the deal was at the moment when the terminal was closed... Accordingly, look for it by position ID, which is what Artem is talking about.
Accordingly, look for it by position ID, which is what Artem is talking about.
Alexei, have we already switched to you? ))
Yes, I've already understood about position ID. I will try to figure it out myself with help:
Regards, Vladimir.
Then it's strange why today the EA didn't find the trade opened yesterday?
Alexey, perhaps it is difficult to express my thought, but the essence of it is as follows: yesterday the EA opened a position, i.e. made a trade, not opened a trade, as I wrote earlier. Today, according to the algorithm, the Expert Advisor should have seen the position opened yesterday and performed certain manipulations. But the EA, for reasons that I do not understand yet, did not see the position opened yesterday and, accordingly, did not take any action. I hope I have expressed my thought more clearly now?
Regards, Vladimir.
Alexey, perhaps it is difficult to express my thought, but the essence of it is as follows: yesterday the Expert Advisor opened a position, i.e. made a transaction, not opened a transaction, as I wrote earlier. Today, according to the algorithm, the Expert Advisor should have seen the position opened yesterday and performed certain manipulations. But the EA, for reasons that I do not understand yet, did not see the position opened yesterday and, accordingly, did not take any action. I hope I have expressed my thought more clearly now?
Regards, Vladimir.
Volodya, you and I have talked a lot about this voice. I explained everything as best as I could, you seemed to understand everything, but here we go again...
The OnTradeTransaction function is an event processing function. The transaction is an event that happened yesterday. The OnTradeTransaction function should have worked yesterday, but not today. Today there is no event of THIS transaction... Today there were and probably still will be, but different ones.