PureBytes Links
Trading Reference Links
|
Here's an example of a simple one that works.
Chris
{
ASCII Maker
courtesy of Solidus Capital Partners
ChrisCheatham@xxxxxxxxxxxxxxxxxx
Inputs:
DIR = directory for ascii file.
NAME = ASCII file name
Hval, Lval, etc. = inputs for prices series
}
Input: DIR("c:\ascii\"), NAME("filename"), oval(o), hval(h),
Lval(l),Cval(c);
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: "Chris Evans" <evanscje@xxxxxxxxxxxxx>
To: "Omega List" <omega-list@xxxxxxxxxx>
Sent: Tuesday, October 21, 2003 11:48 AM
Subject: Writing to a file
> I'm trying to make a txt file that has a single column showing my
currentposition which should be the number of contracts I am long or short
each day.
> I wrote:
> FileAppend("C:\filename.txt",Numtostr(Currentcontracts,0) + Newline);
>
> This is clearly not working .. can anyone help correct my syntax?
> thanks
>
> CJE
>
|