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 Artorias, Today, 02:16 PM
    2 responses
    11 views
    0 likes
    Last Post Artorias  
    Started by MiCe1999, Today, 03:09 PM
    0 responses
    6 views
    0 likes
    Last Post MiCe1999  
    Started by bpschoch, Today, 02:46 PM
    0 responses
    5 views
    0 likes
    Last Post bpschoch  
    Started by Stok, 04-06-2018, 10:45 AM
    16 responses
    863 views
    1 like
    Last Post NoField5  
    Started by Artorias, Today, 02:16 PM
    0 responses
    7 views
    0 likes
    Last Post Artorias  
    Working...
    X