I'm using version .10.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
WoodiesCCI Default and Turbo return only zero
Collapse
X
-
WoodiesCCI Default and Turbo return only zero
Accessing the Default and Turbo properties for the WoodiesCCI indicator always return zero. I've tried with CalculateOnBarClose true and false. The other properties seem to work fine.
I'm using version .10. -
Thanks for the reply Joydeep. Below is some sample code:
protectedoverridevoid Initialize()
{
Add(new Plot(Color.Orange, PlotStyle.Line, "Turbo"));
}
protectedoverridevoid OnBarUpdate()
{
var indicator = WoodiesCCI(2, 5, 14, 34, 25, 6, 60, 100, 2);
Turbo.Set(indicator.Turbo[0]);
Print(indicator.Turbo[0]);
}
Comment
-
Thanks Joydeep. That worked.
It seemed a bit strange to me that that should fix it so I investigated a bit further. It seems there is a bug in the NinjaTrader Indicator class. Please see below:
protected override void Initialize()
{
// If the following line is removed, everything is fine.
// If it is NOT removed, Turbo returns zero always.
var indicator = WoodiesCCI(2, 5, 14, 34, 25, 6, 60, 100, 2);
Add(new Plot(Color.Orange, PlotStyle.Line, "Turbo"));
}
protected override void OnBarUpdate()
{
var indicator = WoodiesCCI(2, 5, 14, 34, 25, 6, 60, 100, 2);
Turbo.Set(indicator.Turbo[0]);
Print(indicator.Turbo[0]);
}Last edited by wbennettjr; 05-10-2012, 06:33 AM.
Comment
-
Anyone there that has a good heart please give a copy of this WoodiesCCI indicator. Thanks in advance.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
244 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
157 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
165 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
249 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
200 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment