barsType.Volumes[CurrentBar].BarDelta;
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Volumetric Bars - CurrentBar
Collapse
X
-
Volumetric Bars - CurrentBar
I've Volumetric Bars as a secondary data series with 1440 minute bar. I wanted to reference the CurrentBar (Bar still in progress) on the script. Would the below be the correct way to do it?
barsType.Volumes[CurrentBar].BarDelta;
Tags: None
-
Hello AgriTrdr,
That would be correct if that code is within a BarsInProgress check for the secondary series. For example if your volumetric series is the first added secondary series:
if(BarsInProgress == 1)
{
Print(barsType.Volumes[CurrentBar].BarDelta);
}
If that is not within a BarsInProgress check you need to specify the correct CurrentBar:
barsType.Volumes[CurrentBars[1]].BarDelta;
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
93 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
138 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
123 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
73 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment