[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 413

 
kolyango:


I get that, the conditions, but what should I put instead of check_us1, check_us2 and check_us3?

bool Val_max = true;
bool Cl_dn = true;
bool Val_min = true;
void start()
  {
      if(Val_max)
         if(ююююююююююююююл)
         {                                 //условие 1
          Val_max=false;                   //заглушка
         }
      if(Cl_dn)
         if(ююююююююююююююл)
         {                                 //условие 2
          Cl_dn=false;                     //заглушка
         }
      if(Val_min)
         if(ююююююююююююююл)
         {                                 //условие 3
          Val_min=false;              //заглушка
         }
      if(! Val_min &&! Cl_dn &&! Val_max)
         {
          Val_min=true;
          Cl_dn=true;
          Val_max=true;      
         }
  }
I don't think you can figure it out on your own.
 
costy_:

I have it all working, set ind. line to double.

int to double replace when calling ind.

or give ex4 indicators required for work (maybe there is something in them?!)


Constantine, thank you very much for your help.

I will try all options.

If it doesn't work, I'll try to turn the indicators which are called.

Although, called indices work fine on the real, including on bar [0].

 

I have a deposit of 500 micro 4 with which lots should I play at first?

 
for( ; ; )
    {
    if(x == y) return(0); // таким методом можно останавливать выполнение цикла и сразу выйти из функции?
    }  
Could you please tell me if it is possible to exit loops with return; operator? Or something can go wrong, I just haven't encountered this structure of writing code, so I thought I'd ask?
 
fore-x:
Could you please tell me if it is possible to exit loops with return; operator? Or something can go wrong, I just haven't encountered this structure of code writing, so I thought I'd ask?
It is possible and useful for speed of termination.
 
fore-x:
Could you please tell me if it is possible to exit from loops using return; operator? Or something can go wrong, I simply didn't encounter such a structure of code writing, I decided to specify?

return - exit both from loop and function (including start)

break - exit from loop, switch, vail as well ....

 

Good afternoon, folks!

I am messing around with my first robot. My idea is to open a pending order with a set expiry time.

I do not have enough knowledge to implement it.

If you don't mind, could you please describe the example of EA which, if I compile it, just opens one by one, e.g. BuyStop for 100 min at 50 points from the current price SL=50, TP=100 for eur/usd at any timeframe.

Thank you in advance!

 
Who will give a profitable advisor?
 
OlegArH:

Good afternoon, folks!

I am messing around with my first robot. My idea is to open a pending order with a set expiry time.

I do not have enough knowledge to implement it.

If you don't mind, could you please describe the example of EA which, if I compile it, just opens one by one, e.g. BuyStop for 100 min at 50 points from the current price SL=50, TP=100 for eur/usd at any timeframe.

Thank you in advance!

emotraid 07.12.2011 19:13
If i don't know what to do with it, i will pay for it.

example
Files:
temp_2.mq4  4 kb
 
Yeah, thanks. I'll give it a try.
Reason: