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

How can I use Add new instrument dynamically?

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

    How can I use Add new instrument dynamically?

    Hi Ninjas,

    Maybe this question is answered very simply

    I want to Add("$EURUSD", PeriodType.Tick, N ) dynamically, where N is a variable that I'd like to link with the actual BarsPeriod.Id (the actual tick period)

    Is this possible? or is there another way to Add a new barObject series dynamically?

    Thanks

    #2
    We would not be able to support dynamically added Period ID's.

    What I would suggest is creating a public user defined variable which can be edited before you start you script.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by knighty6508, 05-10-2024, 01:20 AM
    4 responses
    26 views
    0 likes
    Last Post knighty6508  
    Started by OllieFeraher, 05-09-2024, 11:14 AM
    6 responses
    19 views
    0 likes
    Last Post OllieFeraher  
    Started by PaulMohn, 05-02-2024, 06:59 PM
    2 responses
    44 views
    0 likes
    Last Post PaulMohn  
    Started by ETFVoyageur, Today, 02:10 AM
    0 responses
    17 views
    0 likes
    Last Post ETFVoyageur  
    Started by rayyyu12, Today, 12:47 AM
    0 responses
    12 views
    0 likes
    Last Post rayyyu12  
    Working...
    X