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
    BertrandNinjaTrader Customer Service

    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 t.kelly4149, Today, 05:36 PM
      1 response
      5 views
      0 likes
      Last Post bltdavid  
      Started by SilverSurfer1, Today, 06:29 PM
      0 responses
      13 views
      0 likes
      Last Post SilverSurfer1  
      Started by trader3000a, Today, 01:06 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by marcus2300, Today, 11:45 AM
      3 responses
      30 views
      0 likes
      Last Post marcus2300  
      Started by pel11, Today, 11:06 AM
      0 responses
      12 views
      0 likes
      Last Post pel11
      by pel11
       
      Working...
      X