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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
82 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
43 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
68 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
56 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment