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

Get access from strategy to a particular instance of indicator?

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

    Get access from strategy to a particular instance of indicator?

    How to get access from strategy to a particular instance of indicator run on the same chart?
    An example: I add my volume profile indicator on the chart. But by default, this indicator shows nothing. The trader needs to add the ranges itself. When I add some ranges, then an indicator draws POC line for each range and put this value to Data Box. Look at the screenshot, please.

    And when I add an indicator in my Strategy, these values in DataBox are always zero, because of the strategy connect to the new instance of my indicator but I need to connect to that instance on the chart, which has already drawn lines and put values in Data Box. Is this possible?
    Attached Files
    Handlar
    NinjaTrader Ecosystem Vendor - Handlar

    #2
    Hello handlar,

    Thank you for the post.

    I wanted to check, how does the user enter the values into the indicator? Is this from the properties of the indicator?

    If the indicator uses properties to have this input, it would likely be suggested to modify the strategy to also have this input which it could relay to the indicator when used. It is generally not suggested to try and access other instances of scripts as there is no concept of sync between two separate scripts. You can see the Indicators collection however I would have no samples related to accessing data from an unassociated indicator instance like this.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Jesse,
      Thank you so much, that's what I need.
      Handlar
      NinjaTrader Ecosystem Vendor - Handlar

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Christopher_R, Today, 12:29 AM
      0 responses
      6 views
      0 likes
      Last Post Christopher_R  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      166 responses
      2,235 views
      0 likes
      Last Post sidlercom80  
      Started by thread, Yesterday, 11:58 PM
      0 responses
      3 views
      0 likes
      Last Post thread
      by thread
       
      Started by jclose, Yesterday, 09:37 PM
      0 responses
      7 views
      0 likes
      Last Post jclose
      by jclose
       
      Started by WeyldFalcon, 08-07-2020, 06:13 AM
      10 responses
      1,415 views
      0 likes
      Last Post Traderontheroad  
      Working...
      X