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

Re: TS6 - T&S Capture???



PureBytes Links

Trading Reference Links

Carroll,

The following was found on Traders2traders.com.  Link is:
http://www.traders2traders.com/code&overviews/write_to_file.htm

The only necessary is to change on the input line  "Cval©; " to "Cval(0); "

I hope this accomplishes what you want.

Barry Silberman
Write TS data to a file
(written by Chris Cheatham)

You can create an indicator to write an ascii file of whatever you like.
Here's an example of how to do it.

Input: DIR("c:\"), NAME("filename"), oval(o), hval(h), Lval(l),Cval©;

If currentbar = 1 then filedelete(DIR+name +".txt");

If currentbar >= 1 then FileAppend(DIR+name +".txt",
NumToStr(month(date),0) +"/"+ NumToStr(FracPortion(date/100)*100,0) + "/" +
NumToStr(1900+year(date),0) +","+ NumToStr(oval,4) + "," + NumToStr(hval,4)
+ "," +
NumToStr(lval,4) + "," + NumToStr(cval,4) + newline );

if c<> c then plot1(1," ");





----- Original Message -----
From: "C Slemaker" <cslemaker1@xxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Friday, January 11, 2002 4:58 PM
Subject: TS6 - T&S Capture???


> Does anyone know if there is a way to capture to an ASCII file the
contents
> of a TS6 time-&-sales window?
>
> Thanks.
> Carroll S.
>