And here is the test indicator code.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Cumulative Delta not giving me expected results
Collapse
X
-
Cumulative Delta not giving me expected results
What am I missing here? I'm drawing the delta close below the candles here. I've highlighted the most dramatic case, but as you can see here the delta close is not matching the actual indicator. I'm using BarDelta vs Session and BidAsk DeltaType.
And here is the test indicator code.
1 PhotoTags: None
-
Hi, thanks for posting.
The scripts needs to update the Cumulative Delta in the 1 tick series (BarsInProgress == 1), and the Cumulative Delta you have on the chart needs to be set to "Bar".
Best regards,Code:if (BarsInProgress == 0) { Draw.Text(this, "close" + CurrentBar, ""+ CD.DeltaClose[0], 0, Low[0] - 30); } else if (BarsInProgress == 1) { // We have to update the secondary series of the hosted indicator to make sure the values we get in BarsInProgress == 0 are in sync CD.Update(CD.BarsArray[1].Count - 1, 1); }
-ChrisL
-
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
618 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
419 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
293 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
414 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
367 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment