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 bc24fl, 08-30-2019, 01:58 PM
        4 responses
        259 views
        0 likes
        Last Post PaulMohn  
        Started by sugalt, Today, 04:02 AM
        0 responses
        6 views
        0 likes
        Last Post sugalt
        by sugalt
         
        Started by tradingnasdaqprueba, 04-09-2024, 09:52 AM
        6 responses
        30 views
        0 likes
        Last Post tradingnasdaqprueba  
        Started by PaulMohn, Today, 02:06 AM
        1 response
        8 views
        0 likes
        Last Post PaulMohn  
        Started by Mindset, Today, 01:27 AM
        0 responses
        6 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X