Read csv file with datatype string characters as an array challenge

 

Hi,

Please note I am not a core programmer/developer as my profession having not coded in decades so not too conversant with programming thus my code is of a beginner.

I created a script to export some parameters of my horizontal lines into a csv file and sample data from csv is as below


H1 Horizontal Line 49646;13486.5;13,550;clrBlue
H4 Horizontal Line 12849;12713.5;;clrBlue
M1 Horizontal Line 10017;14772.5;14,836;clrFuchsia
M1 Horizontal Line 10081;15149.5;15,213;clrFuchsia
M1 Horizontal Line 10145;15429.5;15,493;clrFuchsia
M1 Horizontal Line 10847;14911.5;14,975;clrFuchsia
M1 Horizontal Line 11759;15329.5;15,393;clrAqua
M1 Horizontal Line 12839;15296.5;15,360;clrAqua
M1 Horizontal Line 12870;15156.5;15,220;clrLime
M1 Horizontal Line 13551;14086.5;14,150;clrYellow

 

I want to see if I can read the csv file and access the contents of the file as an array to be used in a subsequent script.From my research I found the link https://www.mql5.com/en/forum/341637 to direct me and I tried to customize the last script on this link  and create my own code as below


#define MC_MAX 177
struct signals_data 
  {
  string name;
  double price;
  string descriptor;
  string line_color;
  
  signals_data() { name=""; price=0.0; descriptor=""; line_color="";}
  
  void read(int handler){
      name     = FileReadString(handler);
      price        = FileReadNumber(handler);
      descriptor   = FileReadString(handler);
      line_color       = FileReadString(handler);
     
   }
  };
  
void OnStart(){

 string export_path = "joey.csv";
signals_data signals_arr[MC_MAX];
ResetLastError();

 int export_file_handle = FileOpen(export_path, FILE_READ, ";");
  if(export_file_handle != INVALID_HANDLE){
      for(int i=0; !FileIsEnding(export_file_handle); i++)
      {
         signals_arr[i].read(export_file_handle);
    
      }
      Print(signals_arr[0].name);
      Print(signals_arr[0].price);
      Print(signals_arr[0].descriptor);
      Print(signals_arr[0].line_color);
   

       FileClose(export_file_handle);
     }
   else{
       Print("File open failed, error ", GetLastError());
   }
}


 

The script compiles with no errors but during execution I get jumbled output as below from the print output

CQ      0       20:08:31.977    ReadCSV (NAS100,M1)     㔱㘬〰〮ㄻ㔵㘳㔮ㄻⰵ〶⸰㬰汣奲汥潬൷ㄊⰵ〷⸰㬰㔱㌶⸶㬵㔱㜬〰〮挻牬教汬睯਍㔱㠬〰〮ㄻ㜵㘳㔮ㄻⰵ〸⸰㬰汣奲汥潬൷ㄊⰵ㌸⸰㬰㔱㘷⸶㬵㔱㠬〳〮挻牬煁慵਍㔱㠬〴〮ㄻ㜵㘷㔮ㄻⰵ㐸⸰㬰汣䅲畱ൡㄊⰵ㔸⸰㬰㔱㠷⸶㬵㔱㠬〵〮挻牬煁慵਍㔱㠬〷〮ㄻ㠵㘰㔮ㄻⰵ㜸⸰㬰汣䅲畱ൡㄊⰵ㠸⸰㬰㔱ㄸ⸶㬵㔱㠬〸〮挻牬煁慵਍㔱㤬〰〮ㄻ㠵㘳㔮ㄻⰵ〹⸰㬰汣割摥਍㔱㤬〲〮ㄻ㠵㘵㔮ㄻⰵ㈹⸰㬰汣割摥਍㔱㤬〵〮ㄻ㠵㘸㔮ㄻⰵ㔹⸰㬰汣割摥਍㔱㤬〷〮ㄻ㤵㘰㔮ㄻⰵ㜹⸰㬰汣割摥਍㘱〬〰〮ㄻ㤵㘳㔮ㄻⰶ〰⸰㬰汣割摥਍㘱〬〳〮ㄻ㤵㘶㔮ㄻⰶ㌰⸰㬰汣割摥਍ㅈ䠠牯穩湯慴楌敮㐠㘹㘴ㄻ㐳㘸㔮ㄻⰳ㔵㬰汣䉲畬൥䠊‴潈楲潺瑮污䰠湩⁥㈱㐸㬹㈱ㄷ⸳㬵挻牬求敵਍ㅍ䠠牯穩湯慴楌敮ㄠ〰㜱ㄻ㜴㈷㔮ㄻⰴ㌸㬶汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮ㄠ〰ㄸㄻㄵ㤴㔮ㄻⰵㄲ㬳汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮ㄠ㄰㔴ㄻ㐵㤲㔮ㄻⰵ㤴㬳汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮ㄠ㠰㜴ㄻ㤴ㄱ㔮ㄻⰴ㜹㬵汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮ㄠ㜱㤵ㄻ㌵㤲㔮ㄻⰵ㤳㬳汣䅲畱ൡ䴊‱潈楲潺瑮污䰠湩⁥㈱㌸㬹㔱㤲⸶㬵㔱㌬〶挻牬煁慵਍ㅍ䠠牯穩湯慴楌敮ㄠ㠲〷ㄻㄵ㘵㔮ㄻⰵ㈲㬰汣䱲浩൥䴊‱潈楲潺瑮污䰠湩⁥㌱㔵㬱㐱㠰⸶㬵㐱ㄬ〵挻牬教汬睯਍ㅍ䠠牯穩湯慴楌敮ㄠ㔴㔸ㄻ㈴㘲㔮ㄻⰴ㤲㬰汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮ㄠ㔵㠱ㄻ㈵㘳㔮ㄻⰵ〳㬰汣奲汥潬൷䴊‱潈楲潺瑮污䰠湩⁥㔱㔵㬴㔱㐱⸳㬵㔱㈬㜰挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥㜱㘸㬶㔱ㄱ⸰㬵㔱ㄬ㐷挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥㠱ㄶ㬳㐱ㄸ⸶㬵㐱㠬〸挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥㤱㈲㬴㐱㌱⸶㬵㐱㈬〰挻牬教汬睯਍ㅍ䠠牯穩湯慴楌敮ㄠ㘹㤷ㄻㄴㄵ㔮ㄻⰴㄲ㬵汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㈠㄰㔲ㄻ㌵㘴㔮ㄻⰵㄴ㬰汣䅲畱ൡ䴊‱潈楲潺瑮污䰠湩⁥ㄲ㔰㬶㐱㘲⸶㬵㐱㌬〳挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥ㄲ㜲㬱㌱㠲⸶㬵㌱㌬〵挻牬楌敭਍ㅍ䠠牯穩湯慴楌敮㈠㠲㤴ㄻ㜴㘷㔮ㄻⰴ㐸㬰汣䉲畬൥䴊‱潈楲潺瑮污䰠湩⁥㌲㈰ㄻ㐵ㄲ㔮ㄻⰵ㠴㬵汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㈠㠳㤶ㄻ㈴㘰㔮ㄻⰴ㜲㬰汣奲汥潬൷䴊‱潈楲潺瑮污䰠湩⁥㐲㜳㬶㐱㈸⸳㬰㐱㠬㘸㔮挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥㐲㔴㬱㐱㜲⸶㬵㐱㌬〴挻牬楌敭਍ㅍ䠠牯穩湯慴楌敮㈠㤴㬲㔱㘶⸶㬵㔱㜬〳挻牬楌敭਍ㅍ䠠牯穩湯慴楌敮㈠ㄵ〷ㄻ㜵㘲㔮ㄻⰵ㤷㬰汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㈠㐵㈶ㄻ㤴ㄴ㔮ㄻⰵ〰㬵汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㈠ㄶ㔴ㄻㄵ㄰㔮ㄻⰵ㘱㬵汣奲汥潬൷䴊‱潈楲潺瑮污䰠湩⁥㘲㔴㬶㔱㌰⸶㬵㔱ㄬ〰挻牬教汬睯਍ㅍ䠠牯穩湯慴楌敮㈠㜶㌷ㄻ㈵㤹㔮ㄻⰵ㘳㬳汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㈠㔷㐷ㄻ㌵㠱〮ㄻⰵ㠳⸱㬵汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㈠㌸㐳ㄻ㜴㌰㔮ㄻⰴ㘷㬷汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㈠㌸㜹ㄻ㘵㘱㔮ㄻⰵ㠶㬰汣䉲畬൥䴊‱潈楲潺瑮污䰠湩⁥㠲〴ㄻ㘴㘳㔮ㄻⰴ〷㬰汣奲汥潬൷䴊‱潈楲潺瑮污䰠湩⁥㠲ㄸ㬴㐱㐸⸸㬰㐱㤬ㄱ㔮挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥㤲㈹㬳㔱㠳⸱㬵㔱㐬㔴挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥㤲㌹ㄻ㜵㘹㔮ㄻⰵ㘸㬰汣䱲浩൥䴊‱潈楲潺瑮污䰠湩⁥〳ㄷ㬰㐱㔳⸱㬵㐱㐬㔱挻牬教汬睯਍ㅍ䠠牯穩湯慴楌敮㌠〲㘸ㄻ㌴ㄶ㔮ㄻⰴ㈴㬵汣䱲浩൥䴊‱潈楲潺瑮污䰠湩⁥㌳㈵㬸㐱ㄱ⸶㬵㐱ㄬ〸挻牬楌敭਍ㅍ䠠牯穩湯慴楌敮㌠ㄴ〰ㄻ〵㘴㔮ㄻⰵㄱ㬰汣䱲浩൥䴊‱潈楲潺瑮污䰠湩⁥㐳㈱㬶㔱㘵⸱㬵㔱㘬㔲挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥㐳ㄳ㬲㐱㈶⸶㬵㐱㘬〹挻牬求敵਍ㅍ䠠牯穩湯慴楌敮㌠㐴㘹ㄻ㤴ㄶ㔮ㄻⰵ㈰㬵汣䱲浩൥䴊‱潈楲潺瑮污䰠湩⁥㔳〸ㄻ㠴㘵㔮ㄻⰴ㈹㬰汣䉲畬൥䴊‱潈楲潺瑮污䰠湩⁥㜳㔱㬸㔱㌳⸶㬵㔱㐬〰挻牬教汬睯਍ㅍ䠠牯穩湯慴楌敮㌠㘷㬷㐱㠴⸶㬵㐱㔬〵挻牬求敵਍ㅍ䠠牯穩湯慴楌敮㌠ㄸ㌵ㄻ㤳ㄵ㔮ㄻⰴ㄰㬵汣䉲畬൥䴊‱潈楲潺瑮污䰠湩⁥㤳㈲㬶㔱㠴⸱㬵㔱㔬㔴挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥㤳㐲㬶㐱㔴⸱㬵㐱㔬㔱挻牬楌敭਍ㅍ䠠牯穩湯慴楌敮㐠〰㐸ㄻ㐳ㄶ㔮ㄻⰳ㈵㬵汣䉲畬൥䴊‱潈楲潺瑮污䰠湩⁥〴㔶㬳㐱㔷⸶㬵㐱㠬〲挻牬楌敭਍ㅍ䠠牯穩湯慴楌敮㐠ㄱ㌳ㄻㄵ㘶㔮ㄻⰵ㌲㬰汣奲汥潬൷䴊‱潈楲潺瑮污䰠湩⁥ㄴㄲ㬶㐱ㄵ⸱㬵㐱㔬㔷挻牬求敵਍ㅍ䠠牯穩湯慴楌敮㐠㐱〹ㄻ㘴㘸㔮ㄻⰴ㔷㬰汣䉲畬൥䴊‱潈楲潺瑮污䰠湩⁥ㄴ㤴㬶㔱㈳⸴㬵㔱㌬㠸挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥ㄴ㌷㬲㐱㜶⸲㬵㐱㜬㘳挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥ㄴ㤷㬰㔱ㄱ⸶㬵㔱ㄬ〸挻牬教汬睯਍ㅍ䠠牯穩湯慴楌敮㐠㌲㤴ㄻ㜴ㄲ㔮ㄻⰴ㠷㬵汣䱲浩൥䴊‱潈楲潺瑮污䰠湩⁥㌴㜴ㄻ〵㘷㔮ㄻⰵ㐱㬰汣奲汥潬൷䴊‱潈楲潺瑮污䰠湩⁥㌴〷㬰㐱㜳⸶㬵㐱㐬〴挻牬煁慵਍ㅍ䠠牯穩湯慴楌敮㐠㜴㤶ㄻㄵ〲㔮ㄻⰵ㠱㬴汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㐠㠴㬵㔱〳⸱㬵㔱㌬㔶挻牬煁慵਍ㅍ䠠牯穩湯慴楌敮㐠㤴㐳ㄻㄴㄶ㔮ㄻⰴ㈲㬵汣䉲畬൥䴊‱潈楲潺瑮污䰠湩⁥㔴㈲ㄻ㔵㌰㔮ㄻⰵ㘵㬷汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㐠㌵ㄵㄻ㠴㘳㔮ㄻⰴ〹㬰汣奲汥潬൷䴊‱潈楲潺瑮污䰠湩⁥㔴㈸㬰㐱㘵⸶㬵㐱㘬〳挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥㔴㌸㬴㔱㤳⸱㬵㔱㐬㔵挻牬求敵਍ㅍ䠠牯穩湯慴楌敮㐠㘶㌲ㄻ〵㘹㔮ㄻⰵ㘱㬰汣䱲浩൥䴊‱潈楲潺瑮污䰠湩⁥㜴㘲㬱㔱㠲⸶㬵㔱㌬〵挻牬教汬睯਍ㅍ䠠牯穩湯慴楌敮㐠㐷㠱ㄻ㌵㘵㔮ㄻⰵ㈴㬰汣䱲浩൥䴊‱潈楲潺瑮污䰠湩⁥㜴ㄸ㬲㔱㘱⸱㬵㔱㈬㔲挻牬楌敭਍ㅍ䠠牯穩湯慴楌敮㐠〹㠳ㄻ㌴㘸㔮ㄻⰴ㔴㬰汣䅲畱ൡ䴊‱潈楲潺瑮污䰠湩⁥㤴㜱㬰㔱㈹⸶㬵㔱㔬〹挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥〵㘳㬳㐱㠲⸶㬵㐱㌬〵挻牬煁慵਍ㅍ䠠牯穩湯慴楌敮㔠㔰㤸ㄻ㈴㠹㔮ㄻⰴ㘳㬲汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㔠㤰㜸ㄻ㐴㘴㔮ㄻⰴㄵ㬰汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㔠〱㔳ㄻ〵㘲㔮ㄻⰵ㤰㬰汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㔠㜱㬳㔱㘰⸶㬵㔱ㄬ〳挻牬楌敭਍ㅍ䠠牯穩湯慴楌敮㔠㠲㠲ㄻ㠴㘰㔮ㄻⰴ㜸㬰汣奲汥潬൷䴊‱潈楲潺瑮污䰠湩⁥㌵㐷㬶㐱㈴⸶㬵㐱㐬〹挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥㐵㘱㬰㐱㌳⸶㬵㐱㐬〰挻牬教汬睯਍ㅍ䠠牯穩湯慴楌敮㔠㔵㔹ㄻ㤳㘳㔮ㄻⰴ〰㬰汣䉲畬൥䴊‱潈楲潺瑮污䰠湩⁥㘵㠸ㄻ㔴㘳㔮ㄻⰴ〶㬰汣奲汥潬൷䴊‱潈楲潺瑮污䰠湩⁥㜵㤴ㄻ㈵㘱㔮ㄻⰵ㠲㬰汣䱲浩൥䴊‱潈楲潺瑮污䰠湩⁥㜵㘵㬱㔱㈱⸳㬵㔱ㄬ㜸挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥㠵㜱㬰㔱㜶⸶㬵㔱㜬〴挻牬楌敭਍ㅍ䠠牯穩湯慴楌敮㔠㐹㈲ㄻ㐵㘸㔮ㄻⰵ㔵㬰汣䱲浩൥䴊‱潈楲潺瑮污䰠湩⁥〶㐲ㄻㄵ㘸㔮ㄻⰵ㔲㬰汣奲汥潬൷䴊‱潈楲潺瑮污䰠湩⁥〶〳㬷㔱㘱⸶㬵㔱㈬〳挻牬教汬睯਍ㅍ䠠牯穩湯慴楌敮㘠㌱ㄹㄻ㌴㘲㔮ㄻⰴ㤳㬰汣奲汥潬൷䴊‱潈楲潺瑮污䰠湩⁥ㄶ㌸㬰㔱ㄴ⸱㬵㔱㐬㔷挻牬教汬睯਍ㅍ䠠牯穩湯慴楌敮㘠ㄲ㔶ㄻ㐵㄰㔮ㄻⰵ㘴㬵汣䱲浩൥䴊‱潈楲潺瑮污䰠湩⁥㈶㤸㬱㔱〱⸶㬵㔱ㄬ〷挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥㌶〳㬳㐱㠷⸱㬵㐱㠬㔴挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥㐶㜳ㄻ㐳㘳㔮ㄻⰳ〵㬰汣䉲畬൥䴊‱潈楲潺瑮污䰠湩⁥㐶㠶㬳㔱ㄵ⸱㬵㔱㔬㔷挻牬煁慵਍ㅍ䠠牯穩湯慴楌敮㘠㘴㜸ㄻ㠴㈷㔮ㄻⰴ㌹㬶汣奲汥潬൷䴊‱潈楲潺瑮污䰠湩⁥㐶㐷㬲㐱㌴⸶㬵㐱㔬〰挻牬煁慵਍ㅍ䠠牯穩湯慴楌敮㘠㤴㐴ㄻ㔴㘸㔮ㄻⰴ㔶㬰汣奲汥潬൷䴊‱潈楲潺瑮污䰠湩⁥㔶㘳㬵㌱㌶⸶㬵㌱㜬〰挻牬求敵਍ㅍ䠠牯穩湯慴楌敮㘠㌵〹ㄻ㌴㘹㔮ㄻⰴ㘴㬰汣䅲畱ൡ䴊‱潈楲潺瑮污䰠湩⁥〷㈶ㄻ㠵ㄷ㔮ㄻⰵ㌹㬵汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㠠㐸㬶㔱㌱⸰㬵㔱ㄬ㐹挻牬畆档楳ൡ䴊‱潈楲潺瑮污䰠湩⁥〹㄰ㄻ㐴㈱㔮ㄻⰴ㜴㬶汣䙲捵獨慩਍ㅍ䠠牯穩湯慴楌敮㤠〱㬳㔱〲⸶㬵㔱㈬〷挻牬楌敭਍ㅍ䠠牯穩湯慴楌敮㤠㌸㬵㔱㜱⸶㬵㔱㈬〴挻牬教汬睯਍ㅍ‵潈楲潺瑮污䰠湩⁥ㄱ㌱㬱㌱㐳⸱㬵㌱㐬㔰挻牬楌敭਍ㅍ‵潈楲潺瑮污䰠湩⁥㐱ㄲ㬰㔱㠵⸶㬵㔱㘬〵挻牬教汬睯਍ㅍ‵潈楲潺瑮污䰠湩⁥㤱㠲㬱㌱㈴⸹㬵㌱㐬㌹挻牬求敵਍ㅍ‵潈楲潺瑮污䰠湩⁥㤱㌶㬲㔱㌱⸶㬵㔱㈬〰挻牬煁慵਍ㅍ‵潈楲潺瑮污䰠湩⁥ㄲ㠱㬱㐱㤸⸶㬵㐱㤬〶挻牬楌敭਍ㅍ‵潈楲潺瑮污䰠湩⁥㘲㈴㬳㌱㠳⸶㬵㌱㐬〵挻牬楌敭਍ㅍ‵潈楲潺瑮污䰠湩⁥〳㠵㬶㌱㤶⸶㬵㌱㜬〶挻牬求敵਍ㅍ‵潈楲潺瑮污䰠湩⁥ㄳ㌸㬵㔱㔵⸶㬵㔱㘬〲挻牬求敵਍ㅍ‵潈楲潺瑮污䰠湩⁥㈳㈳㬷㐱㌹⸶㬵㔱〬〰挻牬教汬睯਍ㅍ‵潈楲潺瑮污䰠湩⁥㠳〸㬹㌱ㄸ⸶㬵㌱㠬〸挻牬求敵਍ㅍ‵潈楲潺瑮污䰠湩⁥㘴〳㬶㐱㠹⸶㬵㔱〬〵挻牬求敵਍ㅍ‵潈楲潺瑮污䰠湩⁥㘴㜴㬸㌱㘵⸶㬵㌱㘬〳挻牬求敵਍ㅍ‵潈楲潺瑮污䰠湩⁥㘴〶㬹㌱㤸⸶㬵㌱㤬〶挻牬求敵਍ㅍ‵潈楲潺瑮污䰠湩⁥㔵㈹㬱㐱㤷⸶㬵㐱㠬〶挻牬教汬睯਍ㅍ‵潈楲潺瑮污䰠湩⁥〶㜹㬹㌱㘷⸶㬵㌱㠬〳挻牬求敵਍㍍‰潈楲潺瑮污䰠湩⁥㜲㬶㔱㜳⸶㬵㔱㐬〴挻牬楌敭਍㍍‰潈楲潺瑮污䰠湩⁥㔳〹㬴㌱㠸⸶㬵㌱㤬〵挻牬求敵਍㍍‰潈楲潺瑮污䰠湩⁥㠳㘱㬱㐱㔵⸱㬵㐱㘬㔱挻牬楌敭਍㍍‰潈楲潺瑮污䰠湩⁥㤳㔳㬸㈱㌹⸶㬵㌱〬〰挻牬楌敭਍㍍‰潈楲潺瑮污䰠湩⁥㈵〲㬲㌱㘸⸶㬵㌱㤬〳挻牬求敵਍㍍‰潈楲潺瑮污䰠湩⁥㈶㌵㬵㔱㤴⸶㬵㔱㔬〶挻牬求敵਍㕍䠠牯穩湯慴楌敮ㄠ㔱㈳ㄻ㘴㄰㔮ㄻⰴ㘶㬵汣䉲畬൥䴊‵潈楲潺瑮污䰠湩⁥㔱㔳㬴㐱ㄳ⸶㬵㐱㌬〸挻牬畆档楳ൡ䴊‵潈楲潺瑮污䰠湩⁥㘱〵㬱㔱㜲⸶㬵㔱㌬〴挻牬煁慵਍㕍䠠牯穩湯慴楌敮㈠㠰㐱ㄻ㐵㘳㔮ㄻⰵ〵㬰汣奲汥潬൷䴊‵潈楲潺瑮污䰠湩⁥㐲㤵㬱㔱㠰⸶㬵㔱ㄬ〵挻牬教汬睯਍㕍䠠牯穩湯慴楌敮㈠㘴〶ㄻ㔵ㄹ㔮ㄻⰵ㔶㬵汣䙲捵獨慩਍㕍䠠牯穩湯慴楌敮㈠㠴㘱ㄻ㈴㘵㔮ㄻⰴ㈳㬰汣奲汥潬൷䴊‵潈楲潺瑮污䰠湩⁥〴㘶㬰㌱㔳⸶㬵㌱㐬〲挻牬楌敭਍㕍䠠牯穩湯慴楌敮㐠ㄱ㔵ㄻ㘴㘵㔮ㄻⰴ㈷㬰汣䱲浩൥䴊‵潈楲潺瑮污䰠湩⁥ㄴ㘴㬰㐱〳⸶㬵㐱㌬〷挻牬煁慵਍㕍䠠牯穩湯慴楌敮㐠㜱㠸ㄻ㌵ㄱ㔮ㄻⰵ㜳㬵汣䅲畱ൡ䴊‵潈楲潺瑮污䰠湩⁥㈴〴㬳㔱㔰⸶㬵㔱ㄬ〲挻牬楌敭਍㕍䠠牯穩湯慴楌敮㐠㜲㘸ㄻ㤴㘹㔮ㄻⰵ㘰㬰汣䅲畱ൡ䴊‵潈楲潺瑮污䰠湩⁥㈴ㄹ㬳㌱〶⸱㬵㌱㘬㔶挻牬求敵਍㕍䠠牯穩湯慴楌敮㐠〳〰ㄻ㜵ㄱ㔮ㄻⰵ㜷㬵汣䙲捵獨慩਍㕍䠠牯穩湯慴楌敮㐠ㄳㄷㄻ㔵㘲㔮ㄻⰵ㤵㬰汣䅲畱ൡ䴊‵潈楲潺瑮污䰠湩⁥㐴㐲㬸㔱㄰⸶㬵㔱〬〸挻牬楌敭਍㕍䠠牯穩湯慴楌敮㐠〷㘸ㄻ㐵㘶㔮ㄻⰵ㌵㬰汣䅲畱ൡ䴊‵潈楲潺瑮污䰠湩⁥㜴㈹㬲㐱㌲⸶㬵㐱㌬〰挻牬教汬睯਍㕍䠠牯穩湯慴楌敮㔠㤱㔸ㄻ㈳㘵㔮ㄻⰳ㈳㬰汣䉲畬൥䴊‵潈楲潺瑮污䰠湩⁥㌵㐹㬴㔱㔵⸱㬵㔱㘬㔱挻牬畆档楳ൡ䴊‵潈楲潺瑮污䰠湩⁥㌵㤹㬰㔱〶⸱㬵㔱㘬㔶挻牬畆档楳ൡ䴊‵潈楲潺瑮污䰠湩⁥㐵㘸㬷㔱㐶⸶㬵㔱㜬〱挻牬畆档楳ൡ䴊‵潈楲潺瑮污䰠湩⁥㘵㈵ㄻ〴㘷㔮ㄻⰴ㐱㬰汣䙲捵獨慩਍㕍䠠牯穩湯慴楌敮㔠㤷〷ㄻ㜴ㄱ㔮ㄻⰴ㜷㬵汣䙲捵獨慩਍㕍䠠牯穩湯慴楌敮㘠㘲㤳ㄻ㐵㘵㔮ㄻⰵ㈵㬰汣䙲捵獨慩਍㕍䠠牯穩湯慴楌敮㘠〳㌴ㄻ㜴㌶㔮ㄻⰴ㈸㬷汣䙲捵獨慩਍㕍䠠牯穩湯慴楌敮㘠㘳㔴ㄻㄴ㘸㔮ㄻⰴ㔲㬰汣䱲浩൥䴊‵潈楲潺瑮污䰠湩⁥㐶㔰㬱㔱㔲⸶㬵㔱㌬〲挻牬楌敭਍㕍䠠牯穩湯慴楌敮㘠〵ㄵㄻ㠴㘸㔮ㄻⰴ㔹㬰汣奲汥潬൷䴊‵潈楲潺瑮污䰠湩⁥㜶ㄵㄻ㜵㤵㔮ㄻⰵ㈸㬳汣佲慲杮൥䴊‵潈楲潺瑮污䰠湩⁥㈷㔶ㄻ㐴㘰㔮ㄻⰴ㜴㬰汣䙲捵獨慩਍㕍䠠牯穩湯慴楌敮㤠㈱㬴㐱㌷⸶㬵㐱㠬〰挻牬教汬睯਍䕒㭙㔱㐴⸶㬵㔱㔬〱挻牬煁慵਍
CL      0       20:08:31.977    ReadCSV (NAS100,M1)     0.0
IH      0       20:08:31.977    ReadCSV (NAS100,M1)     
KE      0       20:08:31.977    ReadCSV (NAS100,M1)     
 


Kindly assist me in obtaining the clear,correct output from reading the CSV file.Or if there alternatives like using a bin file.I noticed I cant use function FileReadArray as it cant read string datatype .Thanks in advance.

Structures or classes containing objects are not allowed
Structures or classes containing objects are not allowed
  • 2020.05.24
  • www.mql5.com
Hello, I am newbie here, so sorry if something wrong with this post...