• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

General Settings

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

    General Settings

    NT,

    How to modify the General Settings of the indicator, onec you are in NinjaScript Editor.

    Ex. You needed 3 Input Parameters and only enter 2 at setup, how to go back and add another Input Parameter.

    Thank you.





    #2
    imported post

    Add this line to the "Variable" sections:
    private int param3 = 1;

    Add these lines to the "Properties" sections:

    [Description("Enter parameter description here")]
    [Category("Parameters")]
    public int Param3
    {
    get { return param3; }
    set { param3 = Math.Max(1, value); }
    }

    This creates a new parameter of type integer and defaults it to 1.
    DierkNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pparmley, Today, 04:30 PM
    0 responses
    4 views
    0 likes
    Last Post pparmley  
    Started by tonynt, Today, 04:21 PM
    0 responses
    4 views
    0 likes
    Last Post tonynt
    by tonynt
     
    Started by williamzz, Today, 03:44 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Miguel_88, Yesterday, 06:41 PM
    2 responses
    26 views
    0 likes
    Last Post Miguel_88  
    Started by williamzz, Today, 02:12 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Jim  
    Working...
    X