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

 
Alekseu Fedotov:

It must be placed before OrderSend... and OrderModify ... or before market entry definition?

 
Rustam Bikbulatov:

It must be placed beforeOrderSend... andOrderModify... or before market entry definition?

Closing.

 
Alekseu Fedotov:

Closure.

closure what?

 
Rustam Bikbulatov:
Hi guys. Can you tell me how to get rid of [Trade context is busy] error

Move to a different dealing desk.

 
Vitaly Muzichenko:

Move to another dealing desk.

Could it be because of her? I trade on forex4u

 
Rustam Bikbulatov:

Could it be because of her? I trade on forex4u

How much can the EA open and close at the same time, i.e. frequency of orders per minute?

 
Vitaly Muzichenko:

How many orders can the EA open and close at the same time, i.e. frequency of orders per minute?

void start(){

if(NewSecRun()==false){ return;}

fOrderOpenB();

fOrderOpenS();

fOrderBUYSTOP();

fOrderSELLSTOP();

fOrderSTOPBUY();

fOrderSTOPSELL();

Comment(........); return;}

bool NewSecRun(){

if(TimeSec!=TimeSeconds(TimeCurrent())){

TimeSec=TimeSeconds(TimeCurrent());

return (true); }

return (false); }


Worth an EA for a couple of dozen pairs

 
Rustam Bikbulatov:

void start(){

if(NewSecRun()==false){ return;}

fOrderOpenB();

fOrderOpenS();

fOrderBUYSTOP();

fOrderSELLSTOP();

fOrderSTOPBUY();

fOrderSTOPSELL();

Comment(........); return;}

bool NewSecRun(){

if(TimeSec!=TimeSeconds(TimeCurrent())){

TimeSec=TimeSeconds(TimeCurrent());

return (true); }

return (false); }

Forum on trading, automated trading systems and strategy testing

Any questions from newbies on MQL4, help and discussion on algorithms and codes

Alekseu Fedotov, 2018.02.12 20:08

if(!IsTradeContextBusy())   //торговый поток свободен
  {
 // здесь оформляем запрос
 // на торговую операцию

  }

 
Vitaly Muzichenko:

Thank you. I will try to supplement this function

 

Good afternoon all. Dear programmers, please help me insert a line with the possibility to specify a sound file, for each Alert3.Lv1;2;3, to trigger a different sound that you specify.

Good afternoon all. Dear programmers, please help me to insert a string with the possibility to indicate a sound file for Alert3.Lv1;2;3 to trigger a different sound.

Good afternoon all. Dear programmers, please help me please insert a string with the sound file for Alert3.Lv1;2;3 to trigger a different sound.

Files: