Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing to parameters in each timeframe

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

    Accessing to parameters in each timeframe

    Hello,

    How can I access to strategy parameter to make changes in each chart? Is there a dialog box where I can adjust parameters? I must have oversight somewhere.

    Thanks for your reply.

    -traderjh

    #2
    Hello traderjh,

    Could you clarify what parameters you are trying to make changes to on each chart? Are you referring to the User Defined Parameters of a Strategy?
    JCNinjaTrader Customer Service

    Comment


      #3
      Yes. I just want to modify the values in a dialog box without having to re-code the parameters and compile the stategy.

      Thanks.
      -traderjh

      Comment


        #4
        From your strategy or indicator, you have the ability to crate user defined input parameters. This will allow you to program preset values which can then be changed on the fly from the parameters dialog box. Please see the following reference sample on how to this:

        MatthewNinjaTrader Product Management

        Comment


          #5
          Thank you for your reply. Maybe I didn't clarify enough, but I am still a newbie in this NT environment.

          This strategy already has user defined input parameters. I have several instruments running with this strategy in each chart. Each instrument needs its specific parameter values. Is there a way I can adjust the values within each chart(instrument) from the chart?

          Do I need to code for each instrument to take specific values? Is there a dialog box where I can adjust them?

          Thanks, again.
          -traderjh

          Comment


            #6
            You would need to change them for every instance/instrument they are running on.
            MatthewNinjaTrader Product Management

            Comment


              #7
              Ok, so I am assuming that I have to code for each instrument (forex pair) like this:

              if instrument == "EURUSD"
              inputvalue1 = 1;
              if instrument == "EURJPY"
              inputvalue1 = 2;
              if instrument == "USDJPY"
              inputvalue1 = 3;

              and so forth.

              Am I correct? Also I assume there is no dialog box that I can change the values from the chart itself. Right?

              Thanks.

              Comment


                #8
                Hello traderjh,

                Yes, you could do it that way but then it would not quite be a User Defined Variable since you are setting it based upon what Instrument that it is applied to. A User Defined Variable would be a variable that you would want to dynamically set or change based upon a users interaction.

                If you would like to set the variable based upon the Instrument Name you can use the Instrument.MasterInstrument.Name.

                JCNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                639 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                366 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                107 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                569 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                572 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X