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

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



PureBytes Links

Trading Reference Links

--- 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
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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