Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1642

 
Анатолий Железняк #:

I still don't get it. Not even 50%. Sad.

If you don't understand, describe the situation in more detail

 
MakarFX #:
Change in the EA magik

Only one order out of the many already open by this EA needs to be taken out of control.

 
EVGENII SHELIPOV #:

If YOU want to do this in a specific situation to a specific EA, there is usually a magic number in the settings which identifies its numbers. If you change the EA's magic number, the order and the orders opened by it will separate like ships at sea. You can change the order into a manual control.

Only one order out of the set of orders already opened by the EA should be taken out of control.
 
Анатолий Железняк #:
We only need to check one order out of many which are already open by this EA.

Look here is the counter - the identifier of the open orders which evaluates the layout with open orders

//+------------------------------------------------------------------+
int CountBuy()
{
     int count = 0;
     for(int i = OrdersTotal()-1; i>=0; i--)
     {
         if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES))
         {
            if(OrderSymbol() == Symbol() && OrderMagicNumber() == Magic && OrderType() == OP_BUY)
               count++;
         }
     }
     return(count);
}
//+------------------------------------------------------------------+
int CountSell()
{
     int count = 0;
     for(int i = OrdersTotal()-1; i>=0; i--)
     {
         if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES))
         {
            if(OrderSymbol() == Symbol() && OrderMagicNumber() == Magic && OrderType() == OP_SELL)
               count++;
         }
     }
     return(count);
}

And then comes the algorithm of the EA all depends on the artist of the EA

 
I see. It's the velvet season. All the serious specialists are on holiday. We'll wait.
 
EVGENII SHELIPOV #:

Look here is the counter - the identifier of the open orders which evaluates the layout with open orders

And then comes the algorithm of the EA which depends on the artist of the EA

This is a classic counter and what is yours

 
EVGENII SHELIPOV #:

It's a classic meter and what's yours?

Oh, my God! I said user level, and you suggest I dig through the whole EA and ask, "What's yours?" with a mentoring tone. I don't want to get into it. I like to play, not understand the inner workings of toys.

 
Анатолий Железняк #:
I see. It's the velvet season. All the serious specialists are on holiday. We'll wait.

I told you...

There are no other options!

 
Анатолий Железняк #:

Oh, my God! I asked for a user level and you ask me to go through the whole EA and ask in a mentoring tone, "What's yours?" I don't want to get into it. I like to play, not understand the guts of toys.

Then I'm sorry I can't help you if someone else does.

 
MakarFX #:

I told you...

There are no other options!

Then the question is: Who is he ? Is he a friend of yours? Introduce him.

I told you: at user level!!!