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

Re: Formula for high and low of last x days



PureBytes Links

Trading Reference Links

Hi Alex,

No kidding!  Another Bug -- I mean another un-documented feature in TS.

It would seem that if he cut off the data on the chart to just the times
he wanted it would work - no?

Larry

Alex Matulich wrote:
> 
> >It looks like that would not quite do it.  The "HighD(n)" would give
> >only the high of "n" days ago not the high of the last 'x' number of
> >days.
> 
> HighD(n) also fails his requirement of using trading days if
> "trading day" means "day session" to him.  HighD() and LowD() use
> all sessions.  I wrote some code that does this only for the day
> session; write to me privately if you want it.
> 
> -Alex