PureBytes Links
Trading Reference Links
|
At 12:18 AM 9/29/2004 +0000, you wrote:
>Hi all,
>I am very new to Amibroker and just wondering how to go about
>incorporating CCI line and histogram into the one window (like Woodie
>uses on his charts).
>Can use the CCI line that comes with Amibroker but there is no histogram.
>How is the best way to go about this? A new code for the CCI histogram?
>Thanks in advance
>Jon
*******************************
Try this. Sid
// <+++ BEGIN Indicator Plot CCI code +++>
/*red bars : downtrend
**green bars: uptrend
**blue bars : trading-range
*/
ST = 21; //Daily CCI (Swing Trade)
T = 8; //Turbo CCI
Title = " " + Name () + " " + FullName() + " " + "CCI period" + " =" +
WriteVal(ST);
MaxGraph = 5;
Graph2 = CCI (ST);
Uptrend = 100; Downtrend = -100;
Graph2BarColor = IIf (Graph2 > uptrend, colorPaleGreen, IIf (Graph2 <
downtrend,4,6));
Graph4 = Graph2;
Graph4Style = 4;
Buy = Cross (Graph2, 0) AND (Ref (Graph2,-1) < 0) AND (Ref (Graph2,-
2) < 0)AND(Ref (Graph2,-3) < 0) AND (LLV (RSI(9),10) < 30) AND Cross
(RSI(9),50);
Plot(CCI (T),"C0",colorDarkRed,styleLine); //Plots Turbo CCI if required
Plot(200,"",colorRed,styleThick);
Plot(-200,"",colorRed,styleThick);
Plot(100,"",colorBlue);
Plot(-100,"",colorBlue);
PlotGrid(50,colorBlack);
PlotGrid(-50,colorBlack);
PlotGrid(150,colorBlack);
PlotGrid(-150,colorBlack);
Plot(0,"",colorBlack);
//<+++ END Plot CCI CODE +++>
----------
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.762 / Virus Database: 510 - Release Date: 9/13/2004
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/
|