Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator that uses multiple symbols

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

    Indicator that uses multiple symbols

    I am trying to create an indicator that uses multiple symbols that were added to chart already.

    I have attempted to use

    Plot0.Set(Closes[1][0]);

    To access the extra series that are already on my chart. But, this doesn't work. Must I add the series in the initalize step?

    I tried that too

    Add("Symbol Name", PeriodType.Minute, 5);

    But this doesn't work. I'm still working on this and searching the forums. Any help appreciated.. new to this system still.

    #2
    Okay I figured it out. The bar didn't exist and was throwing an exception. Now that I check the log it makes sense. This was the code required.

    if(CurrentBars[0] < 1 || CurrentBars[1] < 1)
    return;

    Plot0.Set(Highs[1][0]);

    Comment


      #3



      Originally posted by light65536 View Post
      Okay I figured it out. The bar didn't exist and was throwing an exception. Now that I check the log it makes sense. This was the code required.

      if(CurrentBars[0] < 1 || CurrentBars[1] < 1)
      return;

      Plot0.Set(Highs[1][0]);

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      51 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      30 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      99 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      177 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      170 views
      0 likes
      Last Post CarlTrading  
      Working...
      X