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

Re: Using FileAppend



PureBytes Links

Trading Reference Links

here's an example of a simple file append in action

Chris


Input: DIR("c:\omega\ascii\"), NAME("data") , factor(1000);


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


If currentbar >= 1 and month(date) > 9 then FileAppend(DIR+name + ".txt",
NumToStr(month(date),0) +"   "+ NumToStr(FracPortion(date/100)*100,0) +"
"+   NumToStr(year(date),0) +"   "+  NumToStr(o * factor,0)  +"   "+
NumToStr(h * factor,0) +"   "+  NumToStr(l * factor,0)  +"   "+  NumToStr(c
* factor,0)  + newline );

If currentbar >= 1 and month(date) <= 9 then FileAppend(DIR+name + ".txt",
"0"+  NumToStr(month(date),0) +"   "+ NumToStr(FracPortion(date/100)*100,0)
+"   "+   NumToStr(year(date),0) +"   "+  NumToStr(o * factor,0)  +"   "+
NumToStr(h * factor,0) +"   "+  NumToStr(l * factor,0)  +"   "+  NumToStr(c
* factor,0)  + newline );


if c<> c then plot1(1," ");
----- Original Message -----
From: "Lincoln Fiske" <lincolnfiske@xxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Saturday, March 10, 2001 11:24 AM
Subject: Using FileAppend


> Rather than laboriously hand tallying results, I'm trying to create a
> continuous trade-by-trade report for an intraday S&P system that I'm
testing
> over numerous contracts. I understand there's a way to do this using the
> fileappend function in TS 4.0, but I can't figure out the protocol. Could
> someone please help me out on this?
>
> Thanks,
> Lincoln
>