Discussing the article: "Trade transactions. Request and response structures, description and logging" - page 3

 
Artyom Trishkin #:

After some time, if the market does not show signs of life, send the order. Just send it. To nowhere. But to get an answer 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.

By the way, when the market is closed, we do not necessarily get"TRADE_RETCODE_MARKET_CLOSED" or"TRADE_RETCODE_TRADE_DISABLED", we can just get"TRADE_RETCODE_REJECT" or something else. And guess...

 
MrBrooklin #:

If it wasn't in demand, it wouldn't be hanging on my schedule all the time.

Regards, Vladimir.


The fact that you and I use it does not mean that it is in demand.

And what is shown on your chart does not mean that we are talking about the same thing.

Vladimir, read Mikhail Filimonov's threads again, it has been discussed many times with all the subtleties.

 
Alexey Viktorov #:
And what's shown on your chart doesn't mean we're talking about the same thing.

It is not important for what purpose we use the fact that the market is closed. What is important is the fact that there is no standard function of market state detection!

Regards, Vladimir.

 
MrBrooklin #:

It is not important for what purpose we use the fact that the market is closed. What is important is the fact that there is no regular function of market state detection!

Regards, Vladimir.

We hope that it will appear in 3 years.

 
Vitaly Muzichenko #:

Hopefully in about 3 years it will show up.

It should appear in MT6. But, it is not obligatory)

Perhaps, there will even be a normal scaling of scales)

 
Dmitriy Skub #:

It should appear in MT6. But, it doesn't have to)

Perhaps, normal scaling of scales will even appear).

In the discussions of MT6 this function was definitely not present. So, only in MT7))
 
Denis Kirichenko #:
There was definitely no such function in MT6 discussions. So, only in MT7 ))

It's a pity, the standard function is needed even yesterday

 
Thanks for the detailed explanations. I will watch and use it.
 

Thank you for such a detailed article, because when learning mql5 after mql4 there are so many questions.

And, as they say, a programmer always has one theoretically and practically correct solution, but it is known only to people who know how to use it.

 

Hello Artyom, I have encountered a problem in my EA, so I want to thoroughly understand these transactions.

The essence of the problem is as follows:

  1. The Expert Advisor opened a position. As far as I understand, this transaction should be added to the history. To the history where? On the server of my forex-dealer or in the MT5 terminal on my computer? I don't understand.
  2. then the position will remain open until Stop Loss or Take Profit is triggered. That's understandable. But if before closing the position there is a power cut and let's say my computer switches off, or I just close the MT5 terminal for some reason, then where will the information on this trade be stored? And will this information be stored somewhere at all ?

Can you explain these incomprehensible moments to me in more detail?

Regards, Vladimir.