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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X