NinjaScript > Language Reference > Indicator Methods >

Woodies CCI

Print this Topic Previous pageReturn to chapter overviewNext page

Description

NinjaTrader provides the Woodies CCI indicator. It's implemented as specified by Woodie.

 

 

Syntax

WoodiesCCI()
WoodiesCCI(IDataSeries input)

 

Returns default value
WoodiesCCI()[int barsAgo]
WoodiesCCI(IDataSeries input)[int barsAgo]

 

Returns turbo value
WoodiesCCI().Turbo[int barsAgo]
WoodiesCCI(IDataSeries input).Turbo[int barsAgo]

 

Returns histogram bar color
WoodiesCCI().ZoneBars[int barsAgo]
WoodiesCCI(IDataSeries input).ZoneBars[int barsAgo]

 

Return values representing the chopzone plot color are as follows:

0 = Negative (default color is red)
1 = Positive (default color is blue)
2 = Neutral (default color is gray)
3 = Last neutral bar (default color is yellow)

 

Returns chopzone value
WoodiesCCI().ChopZone[int barsAgo]
WoodiesCCI(IDataSeries input).ChopZone[int barsAgo]

 

Return values representing the chopzone plot color are as follows:

 

-4 = DarkRed
-3 = LightRed
-2 = DarkOrange
-1 = LightOrange
0 = Yellow
1 = Lime
2 = LightGreen
3 = DarkGreen
4 = Cyan
 

Returns sidewinder value
WoodiesCCI().Sidewinder[int barsAgo]
WoodiesCCI(IDataSeries input).Sidewinder[int barsAgo]
 
Return values representing the sidewinder plot value are as follows:
 
-1 = Warning
0 = Neutral
1 = Trending

 

 

Return Value

double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.

 

 

Parameters

input

Indicator source data (?)

 

 

Examples

// Prints the current value of a 14 period WoodiesCCI using default price type
double value = WoodiesCCI(2, 5, 14, 34, 25, 6, 60, 100, 2)[0];
Print("The current WoodiesCCI value is " + value.ToString());

 

// Prints the current turbo value of a 14 / 6 period WoodiesCCI using default price type
double value2 = WoodiesCCI(2, 5, 14, 34, 25, 6, 60, 100, 2).Turbo[0];
Print("The current WoodiesCCI turbo value is " + value2.ToString());