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

Re: [amibroker] Re: Is there a way to get CCI to accept an array for periods?



PureBytes Links

Trading Reference Links

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 < bilbod@xxxxxxxxxx> wrote:

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


__._,_.___

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___