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

Add Volumetric Instrument Name

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

    Add Volumetric Instrument Name

    Hello,

    isn´t it possible to add Volumetric dataseries in a script without "AddVolumetric(stringinstrumentName,..."
    same as it is possible with other dataseries for current instrument?

    Even when using additonal dataseries only from the basic instrument where script is enabled, then one has to code for every instrument a proper script.

    Isnt it possible "as usual" " like AddDataSeries(BarsPeriodType.Range, 3);" with (AddDataSereis (Volumetric....)

    Trading equities and currencies instead of having one script one needs a script for every instrument (when volumetric is not primary dataseries of course). When doing changes in the code this has to be done then for each script for each instrument instead of one time modifying.


    Thank you!
    Tony
    Last edited by tonynt; 03-02-2019, 10:19 AM. Reason: typing error

    #2
    Hello Tony,

    Volumetric bars are not added with AddDataSeries().

    Instead these are added with AddVolumetric().

    Below is a public link to the help guide.
    https://ninjatrader.com/support/help...volumetric.htm

    With any added series these have to be hard coded.

    From the help guide:
    "Arguments supplied to AddDataSeries() 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."
    https://ninjatrader.com/support/help...dataseries.htm

    However, from my understanding the Instrument parameter can be null.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by tkaboris, Today, 05:13 PM
    0 responses
    2 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,281 views
    0 likes
    Last Post Leafcutter  
    Started by WHICKED, Today, 12:45 PM
    2 responses
    19 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by Tim-c, Today, 02:10 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Taddypole, Today, 02:47 PM
    0 responses
    5 views
    0 likes
    Last Post Taddypole  
    Working...
    X