Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 stantenlee, Today, 04:32 AM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_JustinD  
      Started by jbmiguel, 08-11-2022, 08:48 AM
      6 responses
      52 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by ezrollin, Yesterday, 08:58 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by futureszone, Yesterday, 04:01 PM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by flybuzz, Today, 09:05 AM
      0 responses
      5 views
      0 likes
      Last Post flybuzz
      by flybuzz
       
      Working...
      X