Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Added Volumetric series won't release after charts are gone

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

    Added Volumetric series won't release after charts are gone

    I don't need any help just wanna point out this error. I tried a clients indicator that used "AddVolumetric(Instrument.FullName,Data.BarsPe riod Type.Tick, 2, VolumetricDeltaType.BidAsk, 1)" to a chart with two days of 1 minute data.

    The only thing the logic does is count this in a bars loop and then print it to two boxes:
    DownVolume[i] = barsType.Volumes[i].TotalSellingVolume;
    UpVolume[i] = barsType.Volumes[i].TotalBuyingVolume;

    It wouldn't load so I closed the chart but the Utilization Monitor still says the Volumetric series is active and continuing to hog up memory.
    Nothing is open but the editor.

    ​​​

    I've seen Volumetric series act up and lag before, so looks like a bug, might wanna take a look at it.

    #2
    Hello Borgen,

    The amount of historical data processed will have an impact on how much the indicator uses while loading. If the memory runs out and the system starts paging it may take some time for scripts to properly unload and dispose. Using a 2 tick underlying series will mean this script is very CPU intensive and memory intensive. I recommend reducing the 'Days to load' of historical data to 1.

    That said, I've tested for the behavior on my end and I am not able to reproduce.
    Note, this video is 23 minutes long as it took a very long time to load and process the historical data and calculate values with the Volumetric bars.
    Further, once the script starts loading it cannot be interrupted until it fully loads.
    Once the script has fully loaded and reached State.Realtime I am showing the CPU usage stops the moment I remove the indicator from the chart.

    Below is a link to the video.



    Please close all open workspaces. In a new blank workspace open a new 1 minute chart, 1 'Days to load' of historical data, with no template applied.
    Import the attached test script (used in the video above).
    Restart NinjaTrader.
    Connect and add the test indicator.
    Wait for the indicator to fully load and begin printing in the NinjaScript output window. (You should see the CPU usage time reduce)
    With the exact steps shown in the video, are you experiencing different behavior on your end?

    AddVolumetricTest_NT8.zip
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X