PureBytes Links
Trading Reference Links
|
Try this:
/*Woodies CCI system */
Color = IIf(abs(CCI(14))>100,colorGreen,colorBlack);
Plot(CCI(14),"CCI",Color,styleHistogram);
Plot(CCI(6),"CCI",colorRed,styleLine);
Title = Name() + " " + Interval(2) + " " + Date()+ " " + "CCI
=" + CCI(14);
Bill S.
On Thu, 22 Jul 2004 20:43:10 -0000, mroman59 <mroman59@xxxxxxxxx> wrote:
> Trying to make formula for woodies CCI indicator, however when I code
> to determine historgram colors for various CCI values, lets say any
> CCI(14) greater than 100 or greater than -100 make green or else I
> want black, but I have not been able to do this. The histograms are
> all the same color.
>
> Thanks
> MR
>
>
>
> /*Woodies CCI system */
> Plot(CCI(14),"CCI",colorBlack,styleLine);
>
> IIf(CCI(14) > 100 OR CCI(14) < -100, Plot(CCI
> (14),"CCI",colorBrightGreen,styleHistogram),Plot(CCI
> (14),"CCI",colorBlack,styleHistogram));
>
>
> Plot(CCI(6),"CCI",colorRed,styleLine);
>
> Title = Name() + " " + Interval(2) + " " + Date()+ " " + "CCI
> =" + CCI(14);
>
>
>
>
>
> 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
>
>
>
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/
|