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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    30 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    17 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    9 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    16 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    19 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X