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

RE: How to write Elcode to have one header line and appending the data below


  • To: <omega-list@xxxxxxxxxx>
  • Subject: RE: How to write Elcode to have one header line and appending the data below
  • From: "Rene Muench" <muenchr@xxxxxxxxxxxxxx>
  • Date: Thu, 21 Dec 2000 12:05:47 -0800
  • In-reply-to: <PJEGLBEGPPBPFOEBOJJNCELHCNAA.muenchr@xxxxxxxxxxxxxx>

PureBytes Links

Trading Reference Links

 Hi Everyone

Intention
is to right to a file, which has a header and whereas the fileappend comand
appends the data values below???

the current statement doesn't work whilst scanning multiple stocks or
dircrectories

any help is much appreaciated

If date=LastCalcDate and Time=LastCalcTime  then begin {setting the header}
Print(File("E:\Omega Research\Test.txt"),"Symbol" + Spaces(1)+ "Open" +
Spaces(1) + "High" + Spaces(1) + "Low" +
Spaces(1) + "close" + Spaces(1) +  "NetChnge");
end
else

If date=LastCalcDate and Time=LastCalcTime then

FileAppend(FleNme,Newline + spaces(1) + GetsymbolName + Spaces(1)+
NumToStr(open,3)
+ NumToStr(high,3) + Spaces(1) +   NumToStr(low,3) + Spaces(1) +
NumToStr(Close,3) +
Spaces(1) +  NumToStr((C-C[1]),3));