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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    65 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    149 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    99 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    286 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X