Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Empty properties window, if the indicator is loaded via the strategy

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

    Empty properties window, if the indicator is loaded via the strategy

    hello, i have the following problem: i have created an indicator using c# script and it works even if it is loaded via the indicator window. as soon as the indicator is loaded via strategy, the properties are no longer displayed. why is that?

    Click image for larger version

Name:	Screenshot_1.jpg
Views:	31
Size:	102.0 KB
ID:	1123616

    Load in strategy:
    Code:
    (State == State.Configure)
    {
       AddChartIndicator(SidiOpenRange());
    }
    Click image for larger version

Name:	Screenshot_2.jpg
Views:	26
Size:	61.2 KB
ID:	1123617

    #2
    Hello sidlercom80,

    Thank you for your note.

    Indicators loaded from within a strategy would not have settings available, as the settings for the indicator would be configured by the strategy other than the plots. If you'd like the user of your strategy to be able to configure the settings for the indicator, you would need to add these to the strategy as User Inputs and then use those variables to call the indicator within the strategy. You can look at the built in Sample MA Crossover indicator in the NinjaScript Editor for an example of using User Input in calling indicators.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by lmatiukas, Today, 07:09 PM
    1 response
    6 views
    0 likes
    Last Post lmatiukas  
    Started by ComfyCouch, Today, 06:04 PM
    0 responses
    13 views
    0 likes
    Last Post ComfyCouch  
    Started by Ousher, Today, 04:35 PM
    0 responses
    4 views
    0 likes
    Last Post Ousher
    by Ousher
     
    Started by Rugosoft, 11-17-2020, 08:22 AM
    3 responses
    38 views
    0 likes
    Last Post Shansen
    by Shansen
     
    Started by hpolthof, Today, 03:48 PM
    0 responses
    7 views
    0 likes
    Last Post hpolthof  
    Working...
    X