Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Volumetric script access filter size

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

    Volumetric script access filter size

    Hello,
    I want to ask please how one can use the added volumetric dataseries in a script script same as it is possible with orderflowcumulativedelta with filtersize! I can work with bids and asks of volumetric and also with delta of the bars but I didnt find how to add/use volumetric with sizefilter.

    Thank you!
    Tony

    #2
    Hello tonynt,

    Thanks for your post.

    The only filter on the Volumetric bars relates to the display and would not be available for a script loaded bars.

    You can implement your own filter by checking the returned values you are looking at compared to a filter size/variable you create for this purpose.

    For example:

    if (barsType.Volumes[CurrentBar].CumulativeDelta > myFilter ) // myFilter would be a variable used to set a filter size
    {
    Print("Cumulative delta (bar): " + barsType.Volumes[CurrentBar].CumulativeDelta);
    }

    Comment


      #3
      Hello Paul,

      thank you for your reply. Yes, this is clear, but the sizefilter in volumetric dataseries is referring to the ticks/trades and not to the cumulativeDelta of bar. Right? This is what I mean, to use in the script the volumetric with eg sizefilter 10.

      Thank you!
      Tony

      Comment


        #4
        hello tonynt,

        Thanks for your reply.

        I looked at the wrong information, you can specify the filter size when you use AddVolumetric(): https://ninjatrader.com/support/help...volumetric.htm Specifically this overload: AddVolumetric(string instrumentName, Data.BarsPeriodType baseBarsPeriodType, int baseBarsPeriodTypeValue, Data.VolumetricDeltaType deltaType, int tickPerLevel, int sizeFilter, string tradingHoursName, bool? isResetOnNewTradingDay)

        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
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 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