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

Re: [amibroker] Defining the numerical value for use in ref(array,-n)



PureBytes Links

Trading Reference Links

Value = Ref(Value,-1);
 
You need to do this in a loop STARTING FROM LAST RECORD  to FIRST Record +1.
----- Original Message -----
Sent: Thursday, December 08, 2005 9:18 PM
Subject: [amibroker] Defining the numerical value for use in ref(array,-n)

Hi All,

I want to allocate the values an indicator from the previous bars for use in the future in the following manner:


Value of BarIndex# ==allocated to=========> BarIndex#
   100                    ====================>     101
   99                      ====================>     102
   98                      ====================>     103
   97                      ====================>     104
   96                      ====================>     107

Can someone please help me define the manner in which the ref() function will be written to solve this problem?


TIA

Regards


Rakesh
                  

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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS