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

 
EVGENII SHELIPOV #:

I was going through your code today...

I don't understand what the group order trawl is for in the grid...

As I see it, trawl should be started after overcoming GetAveragePrice

 

EVGENII SHELIPOV #:

 if(CountTrade()>1)
     {
      TrailingGroupOrder();
     }


In this case, too, there may no longer be an opportunity to open a third order in the grid...

 
Aleksandr Egorov #:

Change the values and you will be happy!

Alexander, is the order type correct ?

 
EVGENII SHELIPOV #:

Alexander, is the selected order type correct ?

This is an example and you can change the values as you like)
 
EVGENII SHELIPOV #:

Alexander, is everything correct with the selected order type ?

i posted an example, of course it was for stop orders to replace the values i wrote ))

i didn't think you were using the build method

i wrote that 10 stop orders for example would move in place 10 pips apart

i would be able to change the values and stop at the price of a car, whatever the conditions are and i don't care

 
MakarFX #:

In this case, when the second order is opened, the stoploss will be set and there may be no possibility to open the third order in the grid...

I don't understand, how can a stoploss prevent an order from opening?

 
Galim_V #:

I don't understand, how can a stoploss prevent an order from opening?

Because the orders in the grid are opened for averaging, i.e. when the ones already there go into deficit...

If the stop loss is triggered before the order opens, there will be no order opening.

 
MakarFX #:

Because the orders in the grid are opened for averaging, i.e. when those that are already there go into deficit...

and if the stop is triggered before the conditional opening, there will be no opening

Is this a "conditional opening" in a five?

 
Galim_V #:

" opening by convention" - is that in the five?

No, in 4...although there is no difference
 
MakarFX #:
no, in 4...although there is no difference

And what should be the condition under which the price will come to, say, a bypass and it will not open?

Reason: