Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Access the color property of an indicator in another indicator

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

    Access the color property of an indicator in another indicator

    Hello,

    I have similar problem like here:
    http://www.ninjatrader.com/support/f...ad.php?t=48664

    I am able to get historical colors when I am using [1] bar ago: MyIndicator().PlotColors[0][1]

    When I change to [0] bar ago I get Color [Empty] for every historical and realtime bar.

    Is this expected behavior? Please support.

    #2
    kucharek, this would be unfortunately expected. If you wanted to access a property of your indicator, like the historical signal series states, please expose it first - http://www.ninjatrader.com/support/f...ead.php?t=4991

    Comment


      #3
      If you call MyIndicator.Update() before accessing the PlotColors, you can access PlotColors[0][0].

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      571 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      331 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      549 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      550 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X