PureBytes Links
Trading Reference Links
|
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 --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/
|