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

[amibroker] Re: Simple problem



PureBytes Links

Trading Reference Links

This will get you yesterdays close:
AddColumn (Ref(Close,-1), "Close-1",1.2);


--- In amibroker@xxxxxxxxxxxxxxx, "interfool" <02@xxx> 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
>



------------------------------------

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/