Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Loading a number of days data into a volumetric bar series

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

    Loading a number of days data into a volumetric bar series

    Hello,

    I am adding a volumetric data series to my strategy using the AddVolumetric() method within the State.Configure section of OnStateChange(), however unlike the AddDataSeries() method, there doesn't seem to be an overload which specifies the number of previous bars to load, and from what I can see, it only loads 3 days of history.

    If I load data directly on to the chart, I can choose the number of days of history to load, and I would like to programatically be able to make the volumetric data series load the same number of days/bars as my primary data series (ideally without actually putting the volumetric series on the chart).

    I have had a good look around, and I can't seem to find a way to do this.

    Am I missing something obvious?


    Thanks!

    #2
    Hi NichUK, thanks for posting.

    AddVolumetric will load the same number of days as the primary series, up to the maximum days of tick data your data provider is supplying. My test loaded the requested 20 days on NQ 1 minute:



    Kind regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    80 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X