View Full Version : CCI with Histogram
The attached CCI_Histogram code was modified from the standard CCI.cs that was distributed with NinjaTrader 6.0.1000.5.
The modifications include histogram bars along with the CCI line plot, plus the CCI line plot was modified to display a different color when it goes above 100 or below -100.
KBJ
Rollins
10-21-2007, 09:28 PM
I like the new look, thanks a lot KBJ.
richa61416
10-22-2007, 07:05 PM
Thanks, you saved me some programming. Was going to translate CCI Histogram from Metatrader indicator tonight. By any chance you have not already coded MACD Divergence?? Could save me some time.
Thanks for the indicator.
Rollins & Rich,
You're very welcome.
The MACD is a "Moving Average Convergence Divergence" and it comes standard with NinjaTrader.
Are you talking about a MACD with an extra divergence or something?
KBJ
richa61416
10-22-2007, 08:20 PM
No, I am not talking about standard MACD. I am talking about detecting the Macd Divergence for Forex on 4hour Macd.
Oh well, I guess that is a no. Gone coding. Thanks again for the indicator.
Sounds interesting. Is it useful? And if so...
Can you tell me a little more?
richa61416
10-22-2007, 09:28 PM
In the same Forum I pointed you to, perform a search for 4 Hour MACD, or Just MACD Divergence, you should find some hits. Then apply it on MetaTrader and see if you like it. If so, translate it from Metatrade to Ninja. The code pretty much is supposed to Identify Macd Divergence. You will have to study a bit of webinars to get MACD divergence. I learned about it from a CBOT webinar.
upupnorth
10-23-2007, 01:07 PM
Great, much appreciated!!
The attached CCI_Histogram code was modified from the standard CCI.cs that was distributed with NinjaTrader 6.0.1000.5.
The modifications include histogram bars along with the CCI line plot, plus the CCI line plot was modified to display a different color when it goes above 100 or below -100.
KBJ
gew2034
03-03-2008, 03:14 PM
Does anyone know how ninja calculates the CCI? Does it use last, high low average or high low close average?
NinjaTrader_Ray
03-03-2008, 04:33 PM
It uses Typical which is (High + Close + Low) / 3
dwalls
09-05-2008, 07:07 PM
Hello,
I like this indicator alot and I like the CCI line color changes.
I have tried to make some changes and edit this code myself but I just cant get it to do what I want. I am trying to get the CCI bars to change color from lime green to green when the CCI is above the zero line and the CCI bar value increases then decreases. And, the same for below the zero line, the CCI bars to change color from red to dark red when the CCI is below the zero line and the CCI bar value increases then decreases.
Like the BBS indicator shown below.
Any help or thoughts would be appreciated.
Thanks
Crown Prince
05-18-2009, 10:55 AM
The attached CCI_Histogram code was modified from the standard CCI.cs that was distributed with NinjaTrader 6.0.1000.5.
The modifications include histogram bars along with the CCI line plot, plus the CCI line plot was modified to display a different color when it goes above 100 or below -100.
KBJ
:confused::confused:
Pardon me if this question seems lame. I am a bit confused as to whether to have the 'Calculate on bar close' set to true or false. The difference between entry and exit depending on a correct reading on the CCI.
Any advice would be appreciated.
NinjaTrader_Bertrand
05-18-2009, 11:12 AM
Crown Prince, this will only effect the last bar currently working on the chart in realtime - http://www.ninjatrader-support.com/HelpGuideV6/CalculateOnBarClose1.html
Performance wise it's better to use this set to 'true'.
Crown Prince
05-18-2009, 11:48 AM
Crown Prince, this will only effect the last bar currently working on the chart in realtime - http://www.ninjatrader-support.com/HelpGuideV6/CalculateOnBarClose1.html
Performance wise it's better to use this set to 'true'.
Many Thanks....
neilzep
01-30-2011, 09:44 PM
anybody got the version that draws arrows on the chart...when zero line change occurs. Thxs