Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddVolumetric( ) question with instrument and bartype/time.

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

    AddVolumetric( ) question with instrument and bartype/time.

    When using the AddVolumetric( ) is there a method i can use to reference the primary chart instead of hard coding "ES 06-23"? same with the chart bartype and timeframe. can i also have that reference my chart settings?

    AddVolumetric("ES 06-23",BarsPeriodType.Minute, 15, VolumetricDeltaType.BidAsk, 1);

    thank you in advance.

    #2
    Hello DirtyGoats,

    Thanks for your post.

    You could pass in null for the instrumentName parameter when calling AddVolumetric() to have the added series based on the primary instrument.

    For example:

    AddVolumetric(null, BarsPeriodType.Minute, 1, VolumetricDeltaType.BidAsk, 1);

    See this help guide page for more information about AddVolumetric(): https://ninjatrader.com/support/help...volumetric.htm
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Appreciate calling out the method of null. Thank you.
      Is there anything similar to the bar type and int section that can be accomplished? I’m not seeing either of these concepts within the link you provided.

      Comment


        #4
        Hello DirtyGoats,

        Thanks for your notes.

        The BarsPeriodType, BarsPeriodTypeValue, VolumetricDeltaType, and tickPerLevel values would need to be hardcoded into the AddVolumetric() method. This is noted on the AddVolumetric() help guide page.

        From the AddVolumetric() help guide page: Arguments supplied to AddVolumetric() should be hardcoded and NOT dependent on run-time variablewhich cannot be reliably obtained during State.Configure (e.g., Instrument, Bars, or user input).​

        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        616 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        357 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        561 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        566 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X