Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Volumetric access bars

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Volumetric access bars

    Hello,
    what I do not understand now from the helpguide is how to access a bar in volumetric dataseries as added dataseries with
    "NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsT y pe barsType = BarsArray[1].BarsSeries.BarsType as
    NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe;"

    eg to get trades of 2 bars ago of volumetric as BIP1 is it correct to have ".... barsType.Volumes[CurrentBars[1]-2].Trades;"? (with ....Bars[1]-2...?)

    Thank you!
    Tony

    #2
    Hello tonynt,

    Thanks for your post.

    Correct, you would use CurrentBars[1] - 2 to get the values of 2 bars ago on the first added volumetric series.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    57 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    78 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    41 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    101 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    61 views
    0 likes
    Last Post PaulMohn  
    Working...
    X