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

Re: [amibroker] Calculating % change since 1/3/2006



PureBytes Links

Trading Reference Links

you can use valuewhen function to reference a fixed point or ref with barssince
for the close price of end of previous year

valuewhen( year()!=ref(year(),1), C )

or

ref( c, -barssince(year()!=ref(year(),1))+1)


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


On 3/26/06, marketmonk777 <dlittner@xxxxxxxxxxxxx> wrote:
> Hi folks,
>
> I would like to add a value to my title line and in some of my
> explorations.  The value that I am trying to determine is the % change
> since the last trading day of 2005 (or should I use 1/3/06?).
>
> How do I specify a fixed date in my calculations?
>
> Thanks,
>
> Dave
>
>
>
>
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


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 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/

<*> 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/