Hi Bill -- For this statement: somevar = CCI(parm); "somevar" will be an array with one element for every bar of the data array, the value of that element the result of applying the CCI function to the "average" of that bar ((H+L+C)/3), for the lookback length of "parm".
What problem are you trying to solve? Thanks, Howard www.quantitativetradingsystems.com On Dec 31, 2007 1:53 PM, bilbo0211 <[EMAIL PROTECTED]> wrote: > --- In [email protected] <amibroker%40yahoogroups.com>, > "murthysuresh" <[EMAIL PROTECTED]> wrote: > > > > --- In [email protected] <amibroker%40yahoogroups.com>, > "bilbo0211" <bilbod@> wrote: > > > > > > I have found ways (either from messages in this group or the afl > > > library) to do it with most other indicators but not with CCI. > > > > > > I did come up with a formula that recalculates the entire cci array > > > with a new period for every new bar but there are 2 problems with > > > that, it's slow and the cci that shows is the one last calculated so > > > all 'historical' cci changes get lost. > > > > > > Does anybody have a solution? > > > > > > Bill > > > > > > > not sure what u mean > > c14=CCI(14); > > c13=CCI(13); > > c12=CCI(12); > > ... > > > > It cannot get any faster than that. > > > > What I want is to be able to use an array for the period. > > Like this: > > array = [40,39,42,45,...] > > variablePeriodCCI= CCI(array); > > Each value of the CCI array is calculated with a different period. > > Bill > > >
