Announcement

Collapse
No announcement yet.

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

    #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.

    Comment


      #3
      Hello Jesse,
      Thank you so much, that's what I need.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      87 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      132 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      118 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X