Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator as input series for strategy not working

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

    Indicator as input series for strategy not working

    Hey,
    I found divergence engine indicator in a discord group and tried to build it in a strategy, It uses input series to select indicator (oscillator's) to show divergences . but when i used in strategy script its not showing indicator as input series in "data series". i had no issues in standalone indicator. After goin through forum, found out i should use it in "state. Configure" instead data loaded but I don't know how to do it . Tried this
    Code:
     [NinjaScriptProperty, Display(Name = "External Indicator", GroupName = "EXT INDICATOE", Order = 17)]
            [PropertyEditor("NinjaTrader.Gui.Tools.InputEditor")]
            public Indicator indi
            { get; set; }​
    its showing in parameters, But giving object don't have instance error and its not calling oscillator .
    Please Help




    Attached Files

    #2
    Hello ceeb69,

    Selecting an indicator from a drop-down would not instantiate an instance of that indicator. You would need to call the indicator method to instantiate an instance of the indicator.

    If you are trying to switch between indicators in the logic, we would recommend using an enum for this.

    Below is a link to the help guide reference sample which demonstrates.

    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    89 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X