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

Nuimeric Value as variable

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

    Nuimeric Value as variable

    Hi from Oklahoma

    Within the strategy wizard, is there some combination that will allow
    you to make the numeric value a variable.

    I.e; fast stoch > numeric value

    and the numeric value is a variable rather than a fixed value

    Thanks

    Lynn

    #2
    Hi Lynn - yes you could for example assign an indicator value to it or make it a user defined input - http://www.ninjatrader-support.com/H...nedInputs.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Numeric Value

      Thx for quick reponse.

      I have looked at the link you posted and still not clear on how to do this
      when posting the numeric value, there is no dropdown to tell it to use
      user variable


      Thanks

      Lynn

      Comment


        #4
        Hi, you can set this under Strategy action > Misc > Set user defined variable > click on the litte dots on the right side in the 'Value' field.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Numeric Value

          Hi Bertrand

          I still cannot seem to find the sub headings you are referencing.

          Sorry to be so dense.

          Help

          Thanks

          Lynn

          What i am trying to accomplish is : stoch > numeric value
          where the numeric value can be a variable.
          Dont seem to be able to get there from the info you provided.

          Comment


            #6
            latkinso,

            In the Condition Builder, select Stoch on the left hand side from the Indicators category. On the right hand side select the Misc category and then select Numeric value. Then you can press the ... button to change the numeric value to whatever you want to compare against the Stoch with.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Numeric Value

              Hi Josh

              I sent a screen capture to your email address
              showing that my value window for the misc
              numeric value does not have the ... button

              Any suggestions?

              Thanks

              Lynn

              Comment


                #8
                Hi Lynn, I think the issue is you expect this in the condition builder, where it is not present, it will be available in the 'Do the following' section. So in one condition you would need to set this variable and then in the next set you can assess this variable then in the Condition Builder. To help you out better, it would help to know what exactly you are trying to set up.
                BertrandNinjaTrader Customer Service

                Comment


                  #9
                  Numeric Value

                  Hi Again

                  Sorry for all the confusion.

                  Here is what i would like to set up:

                  If stoc > 70
                  go long

                  But would like to be able to make the fixed number (70) a
                  variable so could be optimized.

                  Hope this is helpful

                  Lynn

                  Comment


                    #10
                    Thanks for clarifying - please set up a user defined input in the wizard for this to be optimized - http://www.ninjatrader-support.com/H...egyWizard3.png

                    Then reference this later as you create your condition by selexting the stochastic on the left side and going to user defined inputs on the right side.
                    BertrandNinjaTrader Customer Service

                    Comment


                      #11
                      Numeric Value

                      Thanks

                      I believe i understand how to do it now.

                      Lynn

                      Comment


                        #12
                        Numeric Value

                        Same problem

                        The user variables or user defined varibles do not drop down
                        into the right hand condition window blocks to be used.

                        This should not be this difficult.

                        Lynn

                        Comment


                          #13
                          Did you define them in the wizard screen named 'User Defined Inputs'?

                          Then it will be listed in the condition builder under User Defined Input, please doubleclick on this section to see the input variable listed.
                          BertrandNinjaTrader Customer Service

                          Comment


                            #14
                            Numeric Value

                            I did what i thot to be exactly what you are trying to tell me
                            to no avail.

                            Not sure what else to do.

                            Lynn

                            Comment


                              #15
                              Hi, please check the attached sample strategy giving you a long entry when the Stochastic crosses it's oversold level up. This can then be optimized as well in the Strategy Analyzer - http://www.ninjatrader-support.com/H...AStrategy.html
                              Attached Files
                              BertrandNinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by janio973, Yesterday, 07:24 PM
                              6 responses
                              27 views
                              0 likes
                              Last Post NinjaTrader_Manfred  
                              Started by AlphaOptions, 06-18-2013, 08:24 AM
                              5 responses
                              2,168 views
                              0 likes
                              Last Post NinjaTrader_Manfred  
                              Started by JTizz, 04-08-2020, 08:59 AM
                              2 responses
                              211 views
                              0 likes
                              Last Post betsuni_123  
                              Started by bortz, 11-06-2023, 08:04 AM
                              53 responses
                              2,023 views
                              0 likes
                              Last Post muchacha  
                              Started by NickyD, 10-26-2023, 04:41 PM
                              5 responses
                              192 views
                              0 likes
                              Last Post NinjaTrader_Manfred  
                              Working...
                              X