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

Re: [amibroker] CCI Histogram



PureBytes Links

Trading Reference Links

Thanks Sidney
Looks like a strategy that I can play around with
:-)))) 
Much appreciated.
Cheers Jon


 --- Sidney Kaiser <s9kaiser@xxxxxxxxxxx> wrote: 

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



Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html


Yahoo! Groups Sponsor  ADVERTISEMENT
 

---------------------------------
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 the Yahoo!
Terms of Service.
 

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/