Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Balage0922, Today, 07:38 AM
    0 responses
    5 views
    0 likes
    Last Post Balage0922  
    Started by JoMoon2024, Today, 06:56 AM
    0 responses
    6 views
    0 likes
    Last Post JoMoon2024  
    Started by Haiasi, 04-25-2024, 06:53 PM
    2 responses
    19 views
    0 likes
    Last Post Massinisa  
    Started by Creamers, Today, 05:32 AM
    0 responses
    6 views
    0 likes
    Last Post Creamers  
    Started by Segwin, 05-07-2018, 02:15 PM
    12 responses
    1,786 views
    0 likes
    Last Post Leafcutter  
    Working...
    X