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

Re: Saving Intraday Data in TS4



PureBytes Links

Trading Reference Links

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