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

Re: ELA Help



PureBytes Links

Trading Reference Links

try this:

Vars: Ind1(0),
           Ind2(0);

Ind1=Average(Close,20);
Ind2=Average(Close,5);

If LastBaronChart then begin
     for value1=5 downto 0 begin
          Print(Date[value1]," ",value1," ",Ind1[value1]," ",Ind2[value1]);
     end;
end;

In this case program waits until the last bar and then prints out last 6
values of selected indicator.

-----Original Message-----
From: Lee <lbake@xxxxxxx>
To: omega-list@xxxxxxxxxx <omega-list@xxxxxxxxxx>
Date: June 4, 1998 12:47 AM
Subject: ELA Help


>
>For you ELA jockeys...
>
> How do I limit a print statement to print the value of a var of only the
>last x number of bars?
>
>Print(MyTextFile, "Stochastic :" , FastK) ....etc.
>
>If Daily data is used, can you handle this with an ELA date function?
>
>TIA
>
>
>
>