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

Enrich user inputs from another class

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

    Enrich user inputs from another class

    Is something like this possible?


    base indi:

    Code:
    	[Category("Parameters")]
            [Display(Name = "My Variable")]
            public bool my_Var
            {
                get; set;
            }
          ....
          ....
             Addons.Xyz.Show_other_Default_Inputs();
          ....

    where `Show_other_Default_Inputs` should add other user-inputs, like:

    Code:
       	[Category("Parameters")]
            [Display(Name = "Enable Alerts")]
            public bool enableAlert
            {
                get; set;
            }
    I dont exactly mean the way I showed above, i'm also interested any other ways too, to achieve what i say (adding inputs from other places)...


    to say more clear, I WANT TO SET A FIELD (not property) in the indicator, like:

    private bool Show_Color_Inputs = true;

    and if that field is set to true, according to that, some inputs should be shown/hiden to user. will be handy.
    Last edited by ttodua; 04-13-2018, 12:39 PM.

    #2
    Hello TazoTodua,

    Thank you for your note.

    User inputs should be defined within the indicator/strategy.

    What you're attempting to do may be possible however it would not be supported.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ZenCortexHurry, Today, 01:07 PM
    0 responses
    1 view
    0 likes
    Last Post ZenCortexHurry  
    Started by ZenCortexHurry, Today, 01:04 PM
    0 responses
    0 views
    0 likes
    Last Post ZenCortexHurry  
    Started by f.saeidi, Today, 12:14 PM
    3 responses
    9 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Russ Moreland, Today, 12:54 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by philmg, Today, 12:55 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Working...
    X