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

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

    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).​

        Brandon H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by lezlebric, Today, 06:32 PM
        0 responses
        8 views
        0 likes
        Last Post lezlebric  
        Started by TheTechnician86, Today, 05:47 PM
        0 responses
        9 views
        0 likes
        Last Post TheTechnician86  
        Started by Ryan333, Today, 05:25 PM
        0 responses
        4 views
        0 likes
        Last Post Ryan333
        by Ryan333
         
        Started by hsammons87, Today, 05:21 PM
        0 responses
        6 views
        0 likes
        Last Post hsammons87  
        Started by Gmonte, 10-01-2022, 08:28 AM
        2 responses
        190 views
        0 likes
        Last Post charlesthomas  
        Working...
        X