Zum Inhalt springen
View in the app

A better way to browse. Learn more.

#T/N/X/T

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CSV-IMPORT

Geschrieben

Hallo,

hab bei folgendem Script das Problem, dass nie die letzte Zeile aus dem csv-File ausgelesen wird, obwohl die csv-Datei sogar einen zusätzlichen Zeilenumbruch am Ende hat (der von MT4 beim export autom. erstellt wird) => siehe Datei-Anhang!

 

Hat jemand eine Idee, was ich am Script ändern muss, damit auch die letzte Zeile gelesen wird?

 

 

 

 

string File_Name=Symbol()+".csv";
  
  int Handle = FileOpen(File_Name, FILE_CSV|FILE_READ, ";");
      if(Handle<0)
         { Print(GetLastError()); }
           
      while(FileIsEnding(Handle)==false)
         { i=i+1;     
          
          string name = FileReadString(Handle);
          string price2 = FileReadString(Handle);


          if(FileIsEnding(Handle)==true)
            break; 


//--- ENDE VON FILEREAD...          
          
          double price = StrToDouble(obprice2);
        
           
      ObjectCreate(chart_ID,name,OBJ_HLINE,sub_window,0,price); 
     }
     
   FileClose(Handle);
   
   WindowRedraw();

 

 

post-3580-0-27874300-1438531174.png

Featured Replies

Geschrieben
  • Autor

hab's inzwischen selbst gelöst:

 

 

string File_Name=Symbol()+".csv";
  
  int Handle = FileOpen(File_Name, FILE_CSV|FILE_READ, ";");
      if(Handle<0)
         { Print(GetLastError()); }
           
      while(FileIsEnding(Handle)==false)
         {      
          
          string name = FileReadString(Handle);
          string price2 = FileReadString(Handle);


//--- ENDE VON FILEREAD...          
          
          double price = StrToDouble(obprice2);
        
           
      ObjectCreate(chart_ID,name,OBJ_HLINE,sub_window,0,price); 
     }
     
   FileClose(Handle);
   
   WindowRedraw();
 

 

Dein Kommentar

Du kannst jetzt schreiben und Dich später registrieren. Wenn Du ein Konto hast, melde Dich jetzt an, um unter Deinem Benutzernamen zu schreiben.

Gast
Auf dieses Thema antworten...

Account

Navigation

Suche

Suche

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.