Developers! Do you even test what you create? - page 8

 
Mikalas:

See, the order was upgraded and the response comes back that it was partially executed,

what do you think the story will be?

Something will happen, but what it will be, I don't know. If the order was modified and immediately executed (partially) according to the new conditions, such a situation is possible and it can be handled in the Expert Advisor. If one event was just replaced with another - then it is an error and should be sent to Service Desk.
 
sergeev:

poor guy, i wish i could help you... you're so stressed, you're screaming.


you can give me a text log file instead of screenshots.

+ a code where I can reproduce your mistake?

The code won't help. You also need a real account at Forts. This broker is unique in terms of trade order execution.
Документация по MQL5: Стандартные константы, перечисления и структуры / Торговые константы / Типы торговых операций
Документация по MQL5: Стандартные константы, перечисления и структуры / Торговые константы / Типы торговых операций
  • www.mql5.com
Стандартные константы, перечисления и структуры / Торговые константы / Типы торговых операций - Документация по MQL5
 

Vasily, at this link you can read what

what a client-server is:

http://www.mir-koda.ru/full_leson_cpp.php?id=74

It's more detailed here:

http://www.mkgt.ru/files/material-static/tema1/client-server/client-server.htm

Понятие клиент сервер
  • www.mir-koda.ru
Понятие клиент сервер
 
Mikalas:

Vasily, at this link you can read what

what a client-server is:

http://www.mir-koda.ru/full_leson_cpp.php?id=74

It's more detailed here:

http://www.mkgt.ru/files/material-static/tema1/client-server/client-server.htm

I know what client-server communication is. Let's look at the other side. You have turned off the Expert Advisor. Then you start it up again. During this time, several events have happened. These events have come and gone and they cannot be returned, but the Expert Advisor must correctly understand what has happened during its absence from the order and trade history. If it can do this, then why does it need to analyze the TradeTransaction events?
 
C-4:
I know what the client-server interaction is. Let's look at the other side. You have disabled your Expert Advisor. Then you have started it again. Several events have occurred at that time. These events have come and gone and they cannot be returned, but the Expert Advisor must correctly understand what has happened during its absence from the order and trade history. If it can do this, then why does it need to analyze the TradeTransaction events?

Yes, you can, as you suggest (that's what the story is for).

But in my Expert Advisor, I have implemented a different approach to restore work (broken connection, hanging Windows, etc.)

If you are interested, I can tell you how it is done....

 
Mikalas:

Yes, you can, as you suggest (that's what the story is for).

But in my Expert Advisor, I have implemented a different approach to restore work (broken connection, hanging Windows, etc.)

If you are interested, I can tell you how to do it....

Yes, tell me. It is interesting to discuss approaches to creation of stable algorithms.
 
Mikalas:

sergeev, you better help the developers.

With the code, I will try to handle it myself.

I am helping them too.

But maybe help with finding the error?


Give me a text log + example code where the problem occurs.

I believe you can do it with such a small piece of code!

 

C-4 In my opinion, getting operational information is much more

more interesting than history. We need to know two things about the instrument:

1. warrants.

2. Position

int OnInit()
{
  //-- Check for orders exists
  int orders_total = OrdersTotal();
  
  for ( int i = 0; i < orders_total; i++ )
  {
    ulong temp_ticket = OrderGetTicket( i );
      
    if ( OrderSelect( temp_ticket ) )
    {
      string temp_symbol = OrderGetString( ORDER_SYMBOL );
        
      if ( temp_symbol == _Symbol )
      {
        //Данные об ордере

        if ( PositionSelect( _Symbol ) )
        {
          //Данные о позиции
        }    
       //Здесь проверяете, всё, что нужно       
      }
    }
  }
  return( INIT_SUCCEEDED );
}
 

Gentlemen "defenders" of MQ!

1. I do NOT intend to defame the developers in any way!

I only noted that the product MUST be tested (I'm testing it for my own money)!

2. MT-5 is a great platform (seriously), I like the idea and the concept!

3. i'm NOT as "clever" as you think i am!

4. Buttons can be pressed in QUIKe as well.

Thanks for your attention!

Reason: