PureBytes Links
Trading Reference Links
|
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)+","+NumToSt
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: "Ascii.ela"
|