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

Re: indicator input value



PureBytes Links

Trading Reference Links

Denis,


The best way to get this value is to use the valuewhen function.


valuewhen(1,dayofweek()ref(dayofweek(),-1),ref(c,-1))


Try that.


John




 --- Denis Brink  wrote: > I am writing an intraday indicator based on the SPX.
> The previous day's close is a parameter for the
> formula. Do I have to calculate and reference back
> the correct number of bars or is there a simple way
> to reference a value in the daily chart?
> 
> tia 
> Denis
>  Nokia Game is on again.  Click here  to join the new all media adventure before November 3rd.