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

Re: [amibroker] Some basic questions



PureBytes Links

Trading Reference Links

tarujit,

You should see
http://www.amibroker.com/guide/afl/afl_view.php?id=111
comment.
Since cci has negative values, it is not correct to use Peak/Trough 
functions and their derivatives.
Dimitris
--- In amibroker@xxxxxxxxxxxxxxx, "tarujit" <tarujit@xxxx> wrote:
> Hello there,
>            i am trying to use cci as basic indicator.I wnat to find 
> the peak where it mostly got topped.I am using below code by which 
i 
> can find individual peak value but i want the mean value of it how 
> can i get that .
> 
> SetBarsRequired(1000,0);
> percentChange = 1;
> X=BarIndex();
> isPeak = PeakBars(CCI(20), percentChange) == 0;
> Peaktime=ValueWhen(isPeak, x);
> Filter=peakValue = ValueWhen(isPeak, CCI(20));
> a=ValueWhen(Peakvalue>120 AND Peakvalue<200,Peakvalue ); 
> a1=MA(a,100);
> b=ValueWhen(Peakvalue<-120,Peakvalue);
> AddColumn(a1,"a",1.2);
> AddColumn(b,"b",1.2);



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

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