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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    68 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    151 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X