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 dweems, Yesterday, 02:11 PM
      1 response
      45 views
      0 likes
      Last Post NinjaTrader_Angelica  
      Started by Skechers, Today, 02:31 PM
      2 responses
      32 views
      0 likes
      Last Post Skechers  
      Started by njmeyer713, Today, 04:10 PM
      0 responses
      20 views
      0 likes
      Last Post njmeyer713  
      Started by ラリー, 10-03-2022, 09:32 PM
      7 responses
      131 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by Tonofit, Today, 01:03 PM
      1 response
      25 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Working...
      X