Hi - Seems simple enough, looks like it should work. I would try commenting out everything except the 2 required lines - Filter and AddColumn for yesterday's close. If that works, start uncommenting one line at a time and see what happens...
Steve ----- Original Message ----- From: "interfool" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, August 22, 2008 5:51 PM Subject: [amibroker] Simple problem > 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 > > > > ------------------------------------ > > Please note that this group is for discussion between users only. > > To get support from AmiBroker please send an e-mail directly to > SUPPORT {at} amibroker.com > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroker.com/devlog/ > > For other support material please check also: > http://www.amibroker.com/support.html > Yahoo! Groups Links > > > >
