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 NullPointStrategies, Today, 05:17 AM
        0 responses
        19 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        119 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        63 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        45 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X