This will get you yesterdays close: AddColumn (Ref(Close,-1), "Close-1",1.2);
--- In [email protected], "interfool" <[EMAIL PROTECTED]> wrote: > > I've been trying for a while now to do something extremely simple, > just display yesterdays' close in an exploration. No matter what I set > the settings to, it comes up with some wacky number, not yesterdays > close. Todays close comes up fine. > > Here's my latest simple code: > > _SECTION_BEGIN("Basic Params"); > //no params right now > _SECTION_END(); > //periodicity set to Daily > > Filter = 1; > Buy = O; > Sell = 0; > AddColumn(C,"Close",1.4); //this works, shows todays close > AddColumn(Ref(C,-1),"Close",1.4); //shouldn't this show yesterday's > close if settings are daily for periodicity? A number shows up, but it > doesn't relate to anything. > > Help! > > Thanks, > > ol' interfool >
