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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      54 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      71 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X