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 CarlTrading, 03-31-2026, 09:41 PM
                1 response
                149 views
                1 like
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                84 views
                1 like
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                129 views
                2 likes
                Last Post CaptainJack  
                Started by CarlTrading, 03-30-2026, 11:51 AM
                0 responses
                125 views
                1 like
                Last Post CarlTrading  
                Started by CarlTrading, 03-30-2026, 11:48 AM
                0 responses
                102 views
                0 likes
                Last Post CarlTrading  
                Working...
                X