Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Inputs and variables section in strategy builder

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

    #16
    Hello,

    An example would be if I want RSI crossing a level would I write RSICrossingBelowAvg, then put int then select 70 if thats the level im using then do I leave min at 1?
    The name, default, and min value can be whatever suit your needs.

    Then would I put a bool variable to say yes do this and put true?
    Yes, you could use a bool that flips to true when the RSI crosses your RSICrossingBelowAvg value if that is what you are looking for.

    Comment


      #17
      OK great I am gonna test this out after the halt and then probably get back to you folks.

      Comment


        #18
        The user inputs go right into the conditions section. Now I see what they are for. If I put a variable in the variables section, does that pop up a folder in the conditions section?

        Comment


          #19
          Hello DayTradingDEMON,

          "So this input screen if I am understanding it correctly, is smart enough to put info under Name?"

          I'm not quite sure what this means.. Are you trying to change the Name property as this appears in the Available list of the Strategies window?

          "An example would be if I want RSI crossing a level would I write RSICrossingBelowAvg, then put int then select 70 if thats the level im using then do I leave min at 1?"

          You can set 70 as the default value, and this will be what the variable holds when a new strategy instance is added to the Configured list of the Strategies window. Setting the Min to 1, would mean that the smallest value the user can type in is 1 (meaning a value of 0 or a negative value would not be allowed and the value would be set back to 1).

          Whatever value the user has set as the value, this will be what the variable holds.

          To clarify, try adding the SampleMACrossOver to a chart. In the Strategies window you will see a Fast input and a Slow input. The Fast defaults to a value of 10 and the Slow defaults to a value of 25. The user then can change these values. Whatever the value is, this will be supplied to the SMA indicator as the Period (number of bars for calculation) in the logic of the script.

          "Then would I put a bool variable to say yes do this and put true?"

          A bool would be a true or false and can be used in the conditions if you would like to turn some conditions on or off.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #20
            OK thank you Chelsea. Sorry that I am a super noob at using strategy builder but I have allocated time this Thursday to re-build a few of my strategies. I will follow up then. Thank you to Gaby too for being patient with me and all of her help with this as well.

            Comment


              #21
              Hello DayTradingDEMON,

              Be sure you have watched the 'Automate Your Trading with NinjaTrader's Strategy Builder' training video which shows each property of the Strategy Builder.

              Chelsea B.NinjaTrader Customer Service

              Comment


                #22
                Yes, I watched it twice and on the second go I remembered a lot more and it was much easier thanks to Gabys recommendation. I am going to watch it again on Thursday as I reprogram some of my strategies.

                Comment


                  #23
                  OK I figured out how to use all the inputs, variables, conditions and actions and stops and targets. Thank you again for your help.
                  Last edited by DayTradingDEMON; 07-22-2024, 11:59 PM.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by argusthome, 03-08-2026, 10:06 AM
                  0 responses
                  85 views
                  0 likes
                  Last Post argusthome  
                  Started by NabilKhattabi, 03-06-2026, 11:18 AM
                  0 responses
                  47 views
                  0 likes
                  Last Post NabilKhattabi  
                  Started by Deep42, 03-06-2026, 12:28 AM
                  0 responses
                  29 views
                  0 likes
                  Last Post Deep42
                  by Deep42
                   
                  Started by TheRealMorford, 03-05-2026, 06:15 PM
                  0 responses
                  32 views
                  0 likes
                  Last Post TheRealMorford  
                  Started by Mindset, 02-28-2026, 06:16 AM
                  0 responses
                  67 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Working...
                  X