[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 110

 
chief2000 писал(а) >>

Is the question general or about a specific Indicator?

In general, I think of it this way:

1. Set up several buffers - as always. But with different colours

>> thank you!
 
teresh >> :

Thanks, but they are trend lines, and I need a muwings with adjustable periods, but not by close for example, but by fractal extremums, better if separately by highs and lows, maybe someone met similar

 

Help! I need to control the number of positions on an instrument.

if(total<1)

{

This classic variant is not suitable.

I need to open one position for one instrument.

That is, if there is an open position GBP/JPU, then the second position for the instrument will not open.

Do not offer multi-currency strategies.

Many thanks in advance!

 

I couldn't find anything in the documentation...

 
SSPioneer >> :

I couldn't find anything in the documentation...

OrderSelect

then check OrderMagicNumber and/or OrderSymbol

 
int start() 
  {
  if(OrdersTotal() == 0 && TimeHour(TimeCurrent()) >= FinishWorkHour && 
  TimeHour(TimeCurrent()) < StartWorkHour && WorkOnTime == true) 
          {
          if( AlertOnFinish)
             {
             Alert("Советнег завершил торговлю"); 
             AlertOnFinish=false;                                        
             }
           if( SendMailOnFinish)
             {
             string AZ="Отчет о работе за день отправлен "
             +TimeToStr( CurTime());
             ObjectCreate( AZ,OBJ_ARROW,0,Time[1],Low[1]-6*Point,0,0,0,0);
             ObjectSet( AZ, OBJPROP_ARROWCODE, 42);
             ObjectSet( AZ, OBJPROP_COLOR , DarkOliveGreen);
             SendMail("BP Finished ",
             "Balanse "+DoubleToStr(AccountBalance(),2)+
             ", Total Orders " +OrdersHistoryTotal()+
             ", Open Orders "+OrdersTotal()); 
             SendMailOnFinish=false;
             }    
          return(0); 
          }
Gentlemen, why this time-out construction does not work as it should, everything seems to be correct, OrdersTotal == 0 as a condition, but it is ignored and EA is disabled when FinishWorkHour is reached, even if there are open orders, and since I have an EA closing when it reaches the required profit and not take the profit, this closing does not happen, because the EA is no longer working and the deal hangs.
 

Try

OrdersTotal() < 1
 
Dimoncheg писал(а) >>
Gentlemen, why this timed termination does not work as it should, I think everything is correct, OrdersTotal == 0 as a condition, but it is ignored and EA is disabled when FinishWorkHour is reached, even if I have open orders and since I have an EA closing when it reaches the required profit and not take the profit, the closing does not happen, because the EA is no longer working and the trade hangs.

I would write to be sure.

if((OrdersTotal() == 0) &&
 
Thanks for the ideas, I'll give it a go
 
Good afternoon. Is it possible to have more than one Expert Advisor working on one trading account at the same time?
Reason: