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

Re: printing to file ...... with headers


  • To: Canyon678@xxxxxxx
  • Subject: Re: printing to file ...... with headers
  • From: Bob Fulks <bfulks@xxxxxxxxxxxx>
  • Date: Thu, 2 Sep 1999 07:15:45 -0700
  • In-reply-to: <541405e5.24ffc014@xxxxxxx>

PureBytes Links

Trading Reference Links

At 7:57 AM -0400 9/2/99, Canyon678@xxxxxxx wrote:

>How do I get it to print the headers  i.e
>
>date,   day of week,  time,   Value1
>980918,  5,  1630,      3.00,
>980921,  1,  1630,     20.07,


I assume you want "Time", not "CurrentTime" in the printout.

Try the code below. (Not tested)

Bob Fulks


------------------------------------------------------
if CurrentBar = 1 then begin
     FileDelete("C:\21.txt");
     Print("Date, Day, Time, Value1,");
end;

if Date > Date[1] then begin
     Print(File("C:\21"),
        Date:6:0,",",
        DayOfWeek(Date):1:0,",",
        Time:4:0,",",
        WAverage(Value60,Len1),",",
end;
------------------------------------------------------