PureBytes Links
Trading Reference Links
|
If you have TS 4 you could use fileappend for automatic naming of
filenames. Something like this:
vars: XFILE(" ");
XFILE = "C:\DATA\"+ GETSYMBOLNAME +".DAT";
FILEAPPEND(XFILE,NUMTOSTR(Date,0) + " " + NUMTOSTR(OPEN,4) + " "
+ NUMTOSTR(HIGH,4) + " " + NUMTOSTR(LOW,4) + " " + NUMTOSTR(CLOSE,4)
+ NEWLINE);
end;
If currentbar = 1 then FILEDELETE(XFILE);
You would have to work out the rest. I haven't tested this out. This is
just an example.
David Cicia
At 06:53 AM 4/4/98 -0700, Keith Paulson wrote:
>At 07:13 4/3/98 -0600, you wrote:
>>Does anyone know how or if it is possible to save the intraday tick data
>>in ASCII form from TS4 other than manually one day at a time and one
>>symbol at a time.
>>
>>Thanks for any help . . .
>>
>>Mark Byrd
>
>>This is a problem which I have been fighting for years (looking for a
>>way to conveniently archive intraday data in ASCII form). What I have
>>devised is the following: I have created an "archive" page (or
>>"workspace") containing a small chart for each symbol to be saved. Each
>>chart then contains an "indicator" which does nothing but write the
>>desired data to an ASCII file (a different file name, of course, for
>>each chart). I then open this workspace once every three days to save
>>three-days worth of data.
>>
>>Carroll Slemaker
>>
>
>Using Carroll's directions above I wrote the following indicator in Power
>Editor:
>
>If CurrentBar = 1 then begin
> Plot1(Close,"Close");
> Print(File("c:\DCL8M.txt"),"Date ",Date:6:0);
> end;
>If Date <> Date[1] then Print(File("c:\DCL8M.txt"),"Date ",Date:6:0);
>Print(File("c:\DCL8M.txt"),Time:4:0,Close:5:2);
>
>If you insert this indicator in a 1-tick chart of DCL8M and open the
>"workspace" as Carroll suggests you generate the ASCII file c:\DCL8M.txt
>which starts as follows:
>
>Date 980401
>1016 15.97
>1017 15.97
>1017 15.96
>1018 15.95
>1019 15.94
>
>To generate the ASCII file for SP8M, the June 98 S&P, replace each
>occurrence of "DCL8M" in the indicator above with SP8M, save it as a new
>indicator, and insert the new indicator in a 1-tick chart of SP8M.
>
>I hope this helps.
>Keith Paulson
>
>
|