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 argusthome, Yesterday, 10:06 AM
    0 responses
    20 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    18 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    14 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    9 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    40 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X