Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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);
    }
    Paul H.NinjaTrader Customer Service

    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)
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        147 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        5 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        4 views
        0 likes
        Last Post tkaboris  
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,282 views
        0 likes
        Last Post Leafcutter  
        Working...
        X