PureBytes Links
Trading Reference Links
|
I udated the output to ascii indiactors.
I made Ascii.D2 and Ascii.ID2 indicators which output to ascii using the
symbol name (in a path you supply with _D.txt for daily and _1.txt =assuming
you'll plot 1 minute bars= for intraday).
Thanks for the tip, Alex.
I just remembered that with files you could only use a fixed preset name,
but this probably was the Print(File(.....), ) statement.
Robert
===============================
Robert Linders
Orlando, FL
email: mugsnug@xxxxxxxxx
===============================
----- Original Message -----
From: "Alex Dannenberg" <Alex@xxxxxxxxxxxxxxxxxxxxxxx>
To: "Robert Linders" <mugsnug@xxxxxxxxx>
Sent: Tuesday, November 27, 2001 4:58 PM
Subject: RE: Free ASCII output indicators
> the following should work for you:
>
> Vars: ascfile(""),path("c:\ts6\");
>
> ascfile=path+GetSymbolName+".txt";
>
> now you have a variable filename...
>
> ==============================
> Alex Dannenberg
> Pine Mountain Capital Management, LLC
> 1172 Beacon Street, Suite 402
> Newton, MA 02461
>
> Tel: 617 558 5302
> Fax: 617 558 5309
>
>
> -----Original Message-----
> From: Robert Linders [mailto:mugsnug@xxxxxxxxx]
> Sent: Tuesday, November 27, 2001 1:49 PM
> To: omega-list@xxxxxxxxxx
> Subject: Free ASCII output indicators
>
>
> Just to make it easy to share your data (traders2traders.com
upload/download
> service) here are 2 "easy" indicators that I use myself to export data
(.ELA
> file as attachment).
>
> For daily data it works like this:
>
> Inputs: ascfile("C:\TS6\x_D.TXT"),DateFr(0),DateThr(0);
>
> If CurrentBar=1 Then Begin
> FileDelete(ascfile);
> FileAppend(ascfile,"DATE,OPEN,HIGH,LOW,CLOSE,VOL"+NewLine);
> End;
> If Date>=DateFr AND (Date<=DateThr OR DateThr=0) Then Begin
>
>
FileAppend(ascfile,NumToStr(Date,0)+","+NumToStr(Open,2)+","+NumToStr(High,2
> )+","+NumToStr(Low,2)+","+NumToStr(Close,2)+","+NumToStr(Volume,0)+Newline
);
> End;
>
> For intraday data:
>
> Inputs: ascfile("C:\TS\x_1.TXT"),DateFr(0),DateThr(0);
>
> If CurrentBar=1 Then Begin
> FileDelete(ascfile);
> FileAppend(ascfile,"DATE,TIME,OPEN,HIGH,LOW,CLOSE,VOL"+NewLine);
> End;
> If Date>=DateFr AND (Date<=DateThr OR DateThr=0) Then Begin
>
>
FileAppend(ascfile,NumToStr(Date,0)+","+NumToStr(Time,0)+","+NumToStr(Open,2
> )+","+NumToStr(High,2)+","+NumToStr(Low,2)+","+NumToStr(Close,2)+","+NumTo
St
> r(Volume,0)+NewLine);
> End;
>
> Use a the daterange filter if you like.
>
> To my knowledge there is NO way you can work with a Variable filename, it
> has to be static or (as done here) be supplied as input parameter.
> Robert
>
> ps. Take care that you have a directory C:\TS.
> ===============================
> Robert Linders
> Orlando, FL
> email: mugsnug@xxxxxxxxx
> ===============================
>
>
>
>
Attachment:
Description: "Ascii2.ela"
|