PureBytes Links
Trading Reference Links
|
Hi mroman59,
this should get u started, but it is not a finished product:
<clip>
way_down = CCI(14) <-100;
down = CCI(14)>=-100 AND CCI(14)<=0;
up = CCI(14)>0 AND CCI(14)<=100;
way_up = CCI(14)>100;
Color = IIf(way_down,colorBlack,IIf(down,colorGreen, IIf(up,colorYellow
,colorRed)));
Plot(CCI(14),"CCI(14)",Color,styleLine);
<clip>
I used black, instead of gray, because my screen background is gray. In
Indicator Builder, I would also enable the "Level 0" and "+/-100"
checkboxes.
-john
----- Original Message -----
From: "mroman59" <mroman59@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, March 31, 2004 4:01 AM
Subject: [amibroker] Ploting lines that change colors - help please
Hello I am using the CCI indicator to plot the flowing line;
Plot(CCI(14),"CCI",colorBlack,styleLine);
However I would like AB to change the color of the line as CCI
changes values in an eod chart or realtime charting pattern
indicator. For example,
CCI < - 100 = line is gray
CCI between -100 and 0 color is green
CCI between 0 and 100 color is yellow
CCI > 100 color is red
In addition I would like to have the previously colored line change
colors as an uptrend in CCI is established. That is, if a value is
between -100 and 0 (designated by a green line) is begun and then
when a CCI value falls to the bottom value (below -100)the previous
green line will turn gray and when the value climbs into the next
higher value (between 0 AND -100) the previous gray line also turns
light green. If a value falls back into a lower value any higher
previously green line will return to neutral gray. Hope this makes
sense.
Can anyone help?
Much appreciated
Thank you
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Send the freshest Spring Flowers with a FREE vase from only $29.99!
Flowers are hand picked and shipped direct from the grower. Freshness
guaranteed for 7 days or your money back!
http://us.click.yahoo.com/YykvkC/sZ2HAA/3jkFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/
|