[ARCHIVIO]Qualsiasi domanda da principiante, per non ingombrare il forum. Professionisti, non passate oltre. Non posso andare da nessuna parte senza di te - 5. - pagina 221

 
Dimka-novitsek:
Oh, c'è di più. Forse è lì che è andata male! L'ha chiamato così.

Gli array Buy e Sell sono definiti da qualche parte?
 
Sì, certo!!! Darò un'occhiata, però.
 
 sono identificati e utilizzati in tutto il programma.
	          
 
Dimka-novitsek:
sono identificati e utilizzati in tutto il programma.

Posso vedere?
 
int Buy[];int Sell[];
 
Dimka-novitsek:
Definito, e utilizzato in tutto il programma.

Come vengono definiti?
 
 {
//----


 // int F=1; for(int R=0;R<Tormoz;R++){F=F+R;Sleep(Slip);}
  
  

    if (!PozyProstavleny){ ArrayResize(Buy,Raz);ArrayResize(Sell,Raz);
   
           Price= (Ask+Dist*Point) ; TP_BUY=(Price+TP*Point);  SL_BUY= (Price- SL*Point);
           Price_SELL= (Bid-Dist*Point) ;  TP_SELL=Price_SELL-TP*Point;  SL_SELL=Price_SELL+SL*Point; K=1;
           
   for(int Raz1=0;Raz1<Raz;Raz1++){
   
           Sleep(2000); RefreshRates();  for(int A=25;A>=0;A--){if(IsTradeAllowed())break;if(A==0) Comment(" эксперту не разрешено торговать 
или поток для выполнения торговых операций занят "); }           
  tyccBuy= OrderSend (Symbol( ), OP_BUYSTOP,  Lot ,NormalizeDouble(Price, Digits), 5, NormalizeDouble( SL_BUY,Digits), 
  NormalizeDouble( TP_BUY,Digits), NULL, 450, 0, CLR_NONE);
   Buy[Raz1]= tyccBuy;
           Price= (Price+Dist*Point) ; TP_BUY= (Price+TP*Point); SL_BUY= (Price- SL*Point);
           Error=GetLastError();
     if (Error!=0){ string errorcomment = "Ошибка открытия ордера байстоп  "  + " " + Symbol() +  " " + ErrorDescript(Error); 
           Print (errorcomment);}
           
           Sleep(2000); RefreshRates();  for( A=25;A>=0;A--){if(IsTradeAllowed())break;if(A==0) Comment(" эксперту не разрешено торговать
 или поток для выполнения торговых операций занят "); }        
           Sell[Raz1]=OrderSend (Symbol( ), OP_SELLSTOP,  Lot ,NormalizeDouble(Price_SELL, Digits), 5, NormalizeDouble( SL_SELL,Digits), 
  NormalizeDouble( TP_SELL,Digits), NULL, 450, 0, CLR_NONE);
     Price_SELL= (Price_SELL -Dist*Point) ;TP_SELL=Price_SELL-TP*Point;   SL_SELL=Price_SELL+SL*Point;
            Error=GetLastError();if (Error==0)
            
            {errorcomment = "Ошибка открытия ордера селлстоп  "  + " " + Symbol() +  " " + ErrorDescript(Error); 
        Print (errorcomment);} PozyProstavleny=1; 
                       }
                       }   
                        
   if (!Pishem&&PozyProstavleny){SaveArray(FileBuy, Buy); SaveArray(FileSell, Sell); Pishem=1;}
       
             

//----
   Print( " Buy[0] " , Buy[0]," Buy[1] " , Buy[1]," Buy[2] " , Buy[2]," Buy[3] " , Buy[3]," Buy[4] " , Buy[4]," Buy[5] " , Buy[5] );
  
//+------------------------------------------------------------------+
E così via.
 
Solo un minuto, papà.
 
Dimka-novitsek:
Scusami un attimo, papà.

Ok, chi è il papà? Non io, spero. E alla fine come sono definiti gli array?
 
Mio padre. Uff, è sparito. Oh, mio fratello è qui, amico.
Motivazione: