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

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

    AddVolumetric question

    Hello

    Whan adding volumetric series

    AddVolumetric(string instrumentName, Data.BarsPeriodType baseBarsPeriodType, int baseBarsPeriodTypeValue, Data.VolumetricDeltaType deltaType, int tickPerLevel)

    how would it be if I want just the same instrument, bars period type and bars period type value as selected in chart?

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

    Null is ok for the instrument, and what about BarsPeriodType and BarsPeriodTypeValue?

    Sinceley,

    #2
    Hello Impeesa,

    Thanks for your post.

    From the help guide, "Arguments supplied to AddVolumetric() should be hardcoded and NOT dependent on run-time variables which cannot be reliably obtained during State.Configure (e.g., Instrument, Bars, or user input). Attempting to add a data series dynamically is NOT guaranteed and therefore should be avoided. Trying to load bars dynamically may result in an error similar to: Unable to load bars series. Your NinjaScript may be trying to use an additional data series dynamically in an unsupported manner."
    Reference: https://ninjatrader.com/support/help...volumetric.htm

    So we do not recommend but you could try doing what you propose and it may work however if you need help with your script later you would need to test with hard-coded values to verify that was not the source of the issue.


    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Bogdan097, Yesterday, 03:25 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by knowmad, Yesterday, 03:52 AM
    3 responses
    44 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by MSerag, 05-06-2024, 11:52 PM
    5 responses
    30 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Aviram Y, Today, 06:03 AM
    0 responses
    2 views
    0 likes
    Last Post Aviram Y  
    Started by Skifree, Yesterday, 11:21 AM
    5 responses
    17 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X