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

Re: A Question on Function



PureBytes Links

Trading Reference Links

Will this work?

Take the a:= hhv(high,52) which will return the highest high of 52 days.

Now take the b:= hhv(high,26) which returns the highest high in 26 days.

Now the nest sep is then up to you on what ned to be done.
You could use an if statement like If a>b then a else b.
Or you could use the max or min function.

Hope this helps
Harley
Jiro Kato wrote:

> I need this to write "ichimoku"(a Japanese indicator) indicator and I
> would appreciate very much your help.
> 1.  Is it possible to determine the highest price between, for
> example,
> covering a period between 52 days ago and 26 days ago(within a period
> of
> certain length of time in the past)?
> 2.  Or is it possible that I plot "ref(high, 26)" at the x-axis 26
> days
> after today?
> (The essence of "ichimoku" to compare the price ranges between two
> days
> separated by a time-span, of 9,26,52)
>
> Jiro Kato (paruparo@xxxxxxxxxxxxxxxxx)