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

Re: [amibroker] Need help with SetBarsRequired...



PureBytes Links

Trading Reference Links

Flipped tops & btms to make the bands green [UpCandle
color].
-----
UB = 100; LB = -100;
periods = 20; x=CCI(periods);
Hi = Max(x,UB); Lo = Min(LB,x);
Plot(x,"CCI",colorBlack,styleHistogram|styleThick);
PlotOHLC(UB,Hi,UB,Hi,"",colorBlack,styleCandle|styleNoLabel)
;
PlotOHLC(Lo,LB,Lo,LB,"",colorBlack,styleCandle|styleNoLabel)
;
-----
-----Original Message-----
From: mroman59 [mailto:mroman59@xxxxxxxxx]
Sent: Thursday, July 22, 2004 1:43 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Whats wrong with my formula


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







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