This is a variation of the CCI indicator that also takes inputs from ADX and Bollingerbandwidth. You can change any of the parameters for the inputs. The indicator looks a lot like the CCI indicator except on big moves and trending moves, where the ADX and bollingerbandwidth give extra weight to the indicators movement.
Update:
here's the code snippet for entry signals for a strat based on this indicator crossing above and under the zero line (with adxperiod, bbwidthperiod and cci period all set at 20 and stdev set at 2. You can screw around with the setting):
For long entries:
if (Adxbbwidthcci(20, 20, 20, 2).ADXBBCCILINE[0] > 0 && Adxbbwidthcci(20, 20, 20, 2).ADXBBCCILINE[1] < 0)
For short entries:
if (Adxbbwidthcci(20, 20, 20, 2).ADXBBCCILINE[0] < 0 && Adxbbwidthcci(20, 20, 20, 2).ADXBBCCILINE[1] > 0)
Additionally, I found the following filter works well with the strat based on this indicator:
// no zero line cross above in last 10 bars for adxbbwcci (you can of course tweak so no zero line cross for at least X bars):
if (CountIf(delegate { return (Adxbbwidthcci(10, 10, 10, 2).ADXBBCCILINE[1] * 1000) > 0;}, 10) >= 10)
Good luck.
Category NinjaTrader 7 Indicators
|
|
|