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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
173 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
90 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
129 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
208 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
185 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment