• 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 Jurase, Today, 06:47 PM
    2 responses
    6 views
    0 likes
    Last Post Jurase
    by Jurase
     
    Started by GTBrooks, Today, 05:53 PM
    0 responses
    3 views
    0 likes
    Last Post GTBrooks  
    Started by jeronymite, Today, 04:50 PM
    0 responses
    5 views
    0 likes
    Last Post jeronymite  
    Started by daigo1, Today, 04:41 PM
    0 responses
    16 views
    0 likes
    Last Post daigo1
    by daigo1
     
    Started by Harrylwd4, Today, 03:15 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X