Version1: This indicator automatically draws trend lines on the CCI based on pivots. It shows an alert arrow when the average of the CCI breaks a trend line. It also has a configurable audio alert.
It took me a while to extrapolate the trend lines. That data isn't available as it is in easy language. You have to manually create the data points. I wrote my own formula for the slope. Its not just an X/Y conversion when you use an oscillator because some values are above 0 and some are negative. Bearing that in mind i do see a few instances where a trend line break was printed but didn't actually happen. I'm sure I will learn more as I work with this in the markets an make some refinements.
VIP members only please don't distribute this to anyone else!
Version 3: 3/9/2015:
Cleaned up code. Configurable audio alerts. Option for CCI Cross Up/ Down Dots, Arrow color choice, Thermite alert for trendline intersection. Output for bloodhound integration. Enjoy!
November 29th, 2013
Size: 11.23 KB
Downloaded: 1537 times
1460
westsider
Version 1 - CCI Cloud with arrows. This study only places arrows on your chart. You will need to import the study CCI for the histogram shown in the screenshot.
Go to download called CCI Cloud for the subgraph historgram.
When having "Calculate on bar close" set to False and having ShowObjects set to True it will paint erroneous painted objects. The reason for this is when price action blasts off and the CCI (let's say) hits above the 200 line it will paint the lime object and if price action reverses on the same bar which brings the CCI below the 200 line the object that got painted will stay. I haven't quit figured out how to code that portion of the code.
It's best to have "Calculate on bar close" set to True with ShowObjects = True.
It's best to have "Calculate on bar close" set to False with ShowObjects = False.
When having "Calculate on bar close" set to False with ShowObjects = True it will paint the objects correctly as price action moves.
Scenarios:
If price goes above the 200 line area, it will paint a lime object, if price drops below the 200 line, the object will change to a darkblue object.
If price is in the 100 line area, it will paint a maroon object, if price drops below the 100 line area, the object will be removed.
Basic automated strategy using the CCI indicator. Strategy will buy when CCI crosses above oversold (default -100) and strategy will sell when CCI crosses below overbought. If 0 is input as stop or limit, the strategy will default to stop and reverse logic.
This indicator was written according to the trading method developed by Jeff Castille (Jeff's CCI thread). It is a 50 period CCI histograph with an additional 6 period CCI plot. It has Jeff's Dots plotted on the zero line and two, angle of the moving average thresholds, plotted on the 100 and -100 lines. The hisograph and the CCI(6) change colors above and below the zero line. The CCI(50) changes colors above the 100 line and below the -100 line. This was written in v6.5. I am NOT a programmer. Have a professional check the code before trading real money with it.