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

[amibroker] Code to find flags



PureBytes Links

Trading Reference Links

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




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