[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: ELA problem



PureBytes Links

Trading Reference Links

Barry

The following Knowledge Base Links at MS should help.  If I remember
correctly the path names have to be corrected to the New DOS short file name
conventions.

Hope this helps,
Regards J Paul Gaskill

Microsoft Knowledge Base Article - 72171
Workarounds for 128 Character PATH Limitation
http://support.microsoft.com/default.aspx?scid=KB;en-us;q72171
Microsoft Knowledge Base Article - 101601
Converting Filenames from NTFS to FAT (8.3) Convention
http://support.microsoft.com/default.aspx?scid=KB;en-us;q101601

-----Original Message-----
From: Barry Burgess [mailto:bburgess@xxxxxxxxxxxxx]
Sent: January 29, 2003 03:05
To: Omega List
Subject: ELA problem


I have converted TS4 to run on Win2000 and NTFS and now find that the ELA
below does not write the file. Any ideas?


INPUTS:
DATAPATH("C:\data\D\"),
DECIMALS(1);

VARS:
XFILE(" "),
date1(0),
str_Text(" ");

IF CURRENTBAR = 1 THEN
BEGIN
 IF DATACOMPRESSION =0 THEN XFILE =
   DATAPATH +NUMTOSTR(BARINTERVAL,0)+LEFTSTR(GETSYMBOLNAME,5)+".CSV";
   {"Date","Time","Close"}
 IF DATACOMPRESSION =1 THEN XFILE =
   DATAPATH+LEFTSTR(GETSYMBOLNAME,5)+NUMTOSTR(BARINTERVAL,0)+".CSV";
   {"Date","Time","Open","High","Low","Close"}
 IF DATACOMPRESSION =2 THEN XFILE =
   DATAPATH+ "D"+LEFTSTR(GETSYMBOLNAME,5)+".CSV";
 IF DATACOMPRESSION =3 THEN XFILE =
   DATAPATH + "W"+LEFTSTR(GETSYMBOLNAME,5)+".CSV";
   {"Date","Open","High","Low","Close"}
 IF DATACOMPRESSION =4 THEN XFILE =
   DATAPATH +"M"+LEFTSTR(GETSYMBOLNAME,5)+".CSV";
   {"Date","Open","High","Low","Close"}
 FILEDELETE(XFILE);
END;
date1=(Year(date)+1900);
FILEAPPEND(XFILE,NUMTOSTR(date1,0));
str_Text = RightStr(NumToStr(Date,0), 4);
FILEAPPEND(XFILE,str_Text);
FILEAPPEND(XFILE,", ");

IF DATACOMPRESSION < 2 THEN
BEGiN
 FILEAPPEND(XFILE,NUMTOSTR(TIME,0));
 FILEAPPEND(XFILE,", ");
END;

IF DATACOMPRESSION >0 THEN
BEGiN
 FILEAPPEND(XFILE, NUMTOSTR(OPEN,DECIMALS));
 FILEAPPEND(XFILE,",  ");
 FILEAPPEND(XFILE,NUMTOSTR(HIGH,DECIMALS));
 FILEAPPEND(XFILE,",  ");
 FILEAPPEND(XFILE,NUMTOSTR(LOW,DECIMALS));
 FILEAPPEND(XFILE,",  ");
 FILEAPPEND(XFILE,NUMTOSTR(CLOSE,DECIMALS));
 FILEAPPEND(XFILE,",  ");
END;

FILEAPPEND(XFILE,NUMTOSTR(VOLUME,0) + NEWLINE);

IF CONDITION22 THEN PLOT1(C,"");