//+------------------------------------------------------------------+ //| save file.mq4 | //| Daniel | //| http://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Daniel" #property link "http://www.mql5.com" #property version "1.00" #property strict #property script_show_inputs //--- parameters for writing data to the file input string InpFileName="FDAX_H4.txt"; // File name input string InpDirectoryName="Data"; // Folder name //+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart() { double lB_FDAX_buff[]; // array for lower band datetime date_buff[]; // Date //--- set indexing as time series ArraySetAsSeries(lB_FDAX_buff,true);; ArraySetAsSeries(date_buff,true); //--- reset last error code ResetLastError(); // No. candles int copied=9; //--- copy the values of lower Band to for(int i=0;i