Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Indicator

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

    Custom Indicator

    I opened one of your system indicators and would like to add a user parameter and change the code a little. I can change the code ok, however when I add a parameter I run into issues for the Properties section. Is there a way I can have the wizard help with that in an edit mode to add a parameter?

    #2
    velocity,

    If you want to change the code for a system indicator you must first save it as a new name as NT doesn't allow you to modify system indicators.

    So, first open the indicator and right mouse click the code window. Then go to Save As and save it as xxxxV1 or something.

    Now, you're working with an indicator you can modify.

    If you're trying to add an input you can use the following example.


    Add something like this...
    [Description("Desc")]
    [Category("Parameters")]
    public int Period
    {
    get { return iPeriods; }
    set { iPeriods = Math.Max(1, value); }
    }

    now, up in the variables section you have to add a variable as such

    private int iPeriods = 1; //or some other default value to replace 1

    make sense?

    hope this helps.
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    Comment


      #3
      yes I did that and get error messages because it wants code in the properties section in addition to what you mentioned.

      any thoughts

      Comment


        #4
        can you please copy / paste the error message?

        you're only adding an input right, not a new plot?
        mrlogik
        NinjaTrader Ecosystem Vendor - Purelogik Trading

        Comment


          #5
          here you go. I added the buy and sell criteria input
          Attached Files

          Comment


            #6
            velocity,

            You're input names are the same as your plot names.

            Do you want to plot the overbought and oversold values you define in your input?

            What exactly are you trying do to? I'm assuming you want to define the oversold and overbought plot values with an input?
            mrlogik
            NinjaTrader Ecosystem Vendor - Purelogik Trading

            Comment


              #7
              you are correct. thanks for taking a look. where did i go wrong?

              Comment


                #8
                velocity,


                At the bottom of your code
                You have to define output parameters for any plots you define.
                You have to define input parameters for any inputs you define.

                Your plot names were the same as your input names.
                The name of your plots must match the name of the plot parameters you define.

                Look over the attached. Search for //mrlogik to see what i changed.

                I have to run.

                (attached)
                Attached Files
                mrlogik
                NinjaTrader Ecosystem Vendor - Purelogik Trading

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                578 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                334 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                101 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                553 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                551 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X