Discussing the article: "Trade transactions. Request and response structures, description and logging" - page 2
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
Is it still such an impossible task for the creators of the MQL5 programming language - the MarketClosed function without tambourine dancing?
Regards, Vladimir.
Vladimir, what is this function that the site search engine finds only once?
Vladimir, what is this function that the site search engine finds only once
It's an invented function, I guess.
You can simply send an order for a price very far from the market in the function. We received a server response that the market is closed - so it is closed. The order is accepted and placed - delete it. Of course, it is a crutch, but it is severe
Well, you can simply send an order for a price very far from the market in the function. We received a server response that the market is closed - so it is closed. The order is accepted and placed - delete it. Of course, it's a crutch, but it's severe
Then it is easier to just bombard the server with orders.
Then it's easier to just bombard the server with orders.
Why? That's not good.
Vladimir, and what is this feature that the site search engine only finds once
Hi Alexey, Artem has already answered for me, but I'll repeat it anyway - this is a name I invented for a function that(I really hope so!) will be made standard in MQL5.
Regards, Vladimir.
Then it's easier to just bombard the server with orders.
A full-fledged answer can be given by Mikhail, prostotrader, and I just hope that I remember correctly: Broker penalises for bombarding the server with incorrect requests.
Hi Alexey, Artem has already answered for me, but I'll repeat it anyway - this is a name I invented for a function that(I really hope so!) will be made standard in MQL5.
Regards, Vladimir.
This is all very nice, but why make up some additional function if it is easier to give an opportunity to return the server response to the structure. And they don't do it, apparently, for the simple reason that the function is not much in demand. In general, who needs a function that checks whether there are enough funds to open a position when there are plenty of other ways to do it...?
There are only two options here.
A full-fledged answer can be given by Mikhail, prostotrader, and I just hope that I remember correctly: Broker penalises for pestering the server with incorrect requests.
This is all very wonderful, but why create some additional function if it's easier to give an opportunity to return the server's response to the structure. And they don't do it, apparently, for the simple reason that the function is not much in demand. In general, who needs a function that checks the sufficiency of funds to open a position when there are plenty of other options to do it...?
There are only two options here.
The OrderCheck function is designed to check a filled trade order before sending it to the server. I have highlighted the key word. How to get a response from the server without addressing it?
Why? It's not good.
What difference does it make whether to send a very distant left order or a working order for testing? If the market is closed anyway.
What do you do if there's a "bar" and stop trades? And there is no way to know when trading will resume without being bombarded with orders, left or working.
What difference does it make whether to send a left order, which is very far away in price, or a working order for testing? If the market is closed anyway.
What to do if there is a "bar" and stop trades? And there is no way to know when trading will resume without being bombarded with orders, left or working.
After some time, if the market does not give signs of life, send the order. Just send it. To nowhere. But get a response and understand whether it is necessary to continue analysing the situation to get a signal to open. At least such a reason. If closed, set a flag indicating that it is necessary to follow the price - its change. As soon as the price moved - there already understand what it is, can also send a check order. If the market is open - continue working on the strategy.
Just a thought out loud.
And they do not do it, apparently, for the simple reason that the function is not much in demand.
If it were not in demand, it would not be constantly hanging on my chart.
Regards, Vladimir.