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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    576 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 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
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X