• 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 frankduc, Today, 08:12 AM
    2 responses
    8 views
    0 likes
    Last Post frankduc  
    Started by jertrade, Today, 08:10 AM
    2 responses
    4 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by iq200, Today, 08:05 AM
    2 responses
    8 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by frantic, Today, 06:37 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by bouncetherubble, Yesterday, 06:56 PM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_ChristopherS  
    Working...
    X