Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Access Issue

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

    Indicator Access Issue

    I created a floating panel indicator with public properties to be updated from another indicator. If I do this in the calling indicator:
    levelsInfo = MyLevelsInfoPanel(BarsArray[1]);
    and later I update the levels from the calling indicator.
    With this method I see no errors when tracing but the called indicator never displays on the screen even though the IsVisible property is true and Z-Index is 0. I also noticed that the OnBarUpdate() is never called which I am using to transfer those public properties to WPF controls.

    The other way is I add the called indicator to the indicator list for the chart. There I see my floating panel show up and the OnBarUpdate() is called, but how can I address it from the calling indicator?

    #2
    Hi jalley, thanks for posting.

    You must call AddChartIndicator to make indicators show up from a Strategy, but that is only for a Strategy object. It would work pretty straightforward if you call AddChartIndicator. There is undocumented logic for how indicator objects are applied to a chart, so we can not officially support the instantiation of indicators from another indicator. I have a few examples that might help but this uses non-supported code, so you will need to research how to make it work with your indicator:
    https://ninjatrader.com/support/foru...tor#post717883
    https://ninjatrader.com/support/foru...ons#post837439

    Kind regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    70 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    152 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X