--- In
amibroker@xxxxxxxxxxxxxxx, "murthysuresh" <money@xxx> wrote:
>
> --- In
amibroker@xxxxxxxxxxxxxxx, "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