PureBytes Links
Trading Reference Links
|
Printing to a file is easy with the Print statement. And then you can just
use an If or Iff to print the 20 day high symbol...
if high > highest(high,19)[1] then begin
print(File("c:\report.txt"),date:8.0," ",open:3.0," ",high:3.0," *
",low:3.0," ",close:3.0);
else begin
print(File("c:\report.txt"),date:8.0," ",open:3.0," ",high:3.0,"
",low:3.0," ",close:3.0);
end;
or more compactly but less clear...
print(File("c:\report.txt"),date:8.0," ",open:3.0," ",high:3.0,"
",iff(high>highest(high,19)[1],"*"," ")," ",low:3.0," ",close:3.0);
I haven't verified these and I'm not positive you can embed Iff's in a print
statement, but you should be on the right track.
Aaron Schindler
Schindler Trading
----- Original Message -----
From: "Mike Kittelson" <mkittelson@xxxxxxxxx>
To: "Omega List" <omega-list@xxxxxxxxxx>
Sent: Saturday, March 02, 2002 6:50 AM
Subject: Print to file with
> Hello,
>
> I would like to print to a text file and have a symbol
> in a column next
> to 20 day highs. Is there a way to do this? Example:
>
> Date Open High HH20 Low Close
> 1/1/2002 202 208 200 200
> 1/2/2002 201 210 * 200 202
>
> Thanks in advance,
>
> Mike Kitteson
>
> =====
> Regards,
> Mike Kittelson
>
>
|