Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exposed variable from Strategy to Indicator

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

    Exposed variable from Strategy to Indicator

    Hello,

    I am trying to do that the same way I expose variables from indicators to strategies, but I see it is not working the same bidirectional way.

    Is there a reliable way to achieve that?

    Basically what I want is to plot a variable from the strategy, but I want it to plot it whenever I want by using an Input in the UI. The problem is if I do that within the strategy, if I don't want to plot my variable it still creates the lower panel... So I thought to expose it to an indicator just to work around this.

    I appreciate your suggestions.

    #2
    Hello roblogic,

    We actually have a sample which demonstrates what you are asking. If you want to plot either IsOverlay or in a separate panel you can do that with an indicator. The sample we have demonstrates gathering values from a strategy to plot from an indicator:



    In the sample, pay attention to how the indicator has a public Strategy property and how that is used to gather data. Also in the strategy how it passes its own instance to the indicator.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    585 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    340 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X