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

RE: Highest(high, ...)



PureBytes Links

Trading Reference Links

Yes, that works for the basic idea, but a couple notes:

1. What if I don't want the end date to be today? If I wanted to find
the highs, for example, of January through the end of Feb?
2. DatetoJulian counts total days and not necessarily chart days, so
while there may only be 50 bars, datetojulian may give 75 (includes
weekends, holidays, etc.)

Thanks!!! Let me know if you have other ideas...

Cody

-----Original Message-----
From: LB [mailto:lazybast@xxxxxxxxxxxxx] 
Sent: Tuesday, May 06, 2003 3:14 PM
To: Cody Burgat
Subject: Re: Highest(high, ...)


: What needs to be done if I want to use the Highest(High, xbars)
function
: in order to:
: 
: 1. Use an input start date and an input end date for the range to
: calculate the highest high.

{This might work}
Inputs: Date1(1030506), Date2(1030406);
Vars: D1(0), D2(0), Len(0), HH(0);

D1=DateToJulian(Date1);
D2=DateToJulian(Date2);
Len=D1-D2;
HH=Highest(H,Len);

Plot1(HH,"HH");