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:	30
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:	25
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 thebionukerlife, Today, 11:41 PM
    0 responses
    1 view
    0 likes
    Last Post thebionukerlife  
    Started by thebionukerlife, Today, 11:40 PM
    0 responses
    1 view
    0 likes
    Last Post thebionukerlife  
    Started by KirkHammett, Today, 11:15 PM
    0 responses
    3 views
    0 likes
    Last Post KirkHammett  
    Started by soon123, Today, 11:12 PM
    0 responses
    2 views
    0 likes
    Last Post soon123
    by soon123
     
    Started by JustinCross, Today, 09:48 PM
    0 responses
    9 views
    0 likes
    Last Post JustinCross  
    Working...
    X