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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment