Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding a second series of the same instrument implicitly

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

    Adding a second series of the same instrument implicitly

    I am writing a strategy that requires me to add a tick series as well. Now I don't want to have to set the symbol name of that series every time I change the chart symbol.

    In other words if I change Closes[0] via my chart then I want Closes[1] to be changed with it without me having to resort to some strategy setting. Is there a way for me to add that second series programmatically and either omitting the instrument or setting it implicitly via Instruments[0].FullName? Or is there a better way?

    UPDATE: I tried this and it works:

    Add(Instruments[0].FullName, PeriodType.Tick, 1);

    If this may cause issues or if there's an easier way please let me know. Thanks!
    Last edited by molecool; 03-04-2013, 08:16 AM.

    #2
    Glad to hear you were able to answer this yourself and we appreciate you following up with the answer to help other users.

    Please let me know if there is anything I can do for you.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    669 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    378 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    580 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X