Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 hazylizard, Today, 08:38 AM
                2 responses
                8 views
                0 likes
                Last Post hazylizard  
                Started by geddyisodin, Today, 05:20 AM
                2 responses
                17 views
                0 likes
                Last Post geddyisodin  
                Started by Max238, Today, 01:28 AM
                5 responses
                45 views
                0 likes
                Last Post Max238
                by Max238
                 
                Started by giulyko00, Yesterday, 12:03 PM
                3 responses
                13 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Started by habeebft, Today, 07:27 AM
                1 response
                16 views
                0 likes
                Last Post NinjaTrader_ChristopherS  
                Working...
                X