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

 
gince:
Found error 2012.02.09 20:08:58 ZZ: FileOpen - too many opened files. Translate what it means.

too many open files
 
artmedia70:
too many open files


A what this could mean

 
gince:


And what that could mean

Opened a lot of files :)
 
gince:


And what that could mean


s

int start()
  {
//----
   if( !NewBar() ) return(0);
   double zz_arr[10000],zz_arr_Abs[10000];
   double preZz=0;
   int i,ii;
    int handle;
          
        handle=FileOpen("my_file", FILE_CSV|FILE_READ|FILE_WRITE);
        
   for(i=0;i<=Bars_count;i++)
   {
       double zz = iCustom(NULL,0,"ZigZag",ExtDepth,ExtDeviation,ExtBackstep,0,i); 
      if(zz!=0)
      {
         if(preZz==0)
         {
            preZz=zz
            ;continue;
         }
        zz_arr[ii]=zz-preZz;
        preZz=zz;
        ii++;
        Print(zz_arr[ii-1]/Point, "    ii = ", ii - 1);
        zz_arr_Abs[ii-1]=MathAbs(zz_arr[ii-1]);  
          if(handle>0)
         {
            FileWrite(handle, zz_arr_Abs[ii-1]);
         }                        
        Print("                      ",zz_arr_Abs[ii-1]/Point, "    ii = ", ii - 1);
     }
   }
   FileClose(handle);
  
  ArrayResize(zz_arr,ii);
  Print("-------------------------------------------------");
//----
   return(0);
  }
 
This error is understood. But there is no file. The former error in the logbook has disappeared and no new ones have appeared.
 
gince:
This error is understood. But there is no file. The former error in the logbook has disappeared and no new ones have appeared.


I have appeared, everything is fine.

 
C:\Program Files\Alpari NZ MT4\experts\files\my_file.csv created manually. Thought it would write to it, but it's empty.
 
smart:


Can you tell me, when an EA comes with a set, which folder should I put it in? Thank you.

In any folder. The main thing is not to forget which one to upload from there.
 
I have read-only folders, which is probably why it won't let me enter any data. It won't allow me to change it in the properties.
 
Sepulca:


I got it, it's fine.


Thank you for your help.
Reason: