Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaScript Strategy Wizard questions

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

    NinjaScript Strategy Wizard questions

    Hi Support,

    I have built an auto trading script with the wizard but I can't seem to be able to get more than one profit target to work. When the price hits the 1st target, it fills, but the subsequent targets are ignored.

    Each target has its own signal name, eg: LE1, LE2, LE3 for long entries, SE1, SE2 SE3 for short entries. The TextandMarker only shows LE1 and either Profit Target or Stop Loss for the 1st partial.

    Subsequent partials are not displayed, and must get ignored because the strategy will re-enter before the second target is reached even with a Position.Quantity == 0 as one of the criteria.

    Any suggestions? What am I missing?

    #2
    Tom, do you scale in also before trying to scale out? This way you link each individual entry to its stop / target.

    BertrandNinjaTrader Customer Service

    Comment


      #3
      NinjaScript Strategy Wizard questions

      I am trying to enter 3 partials at the same time and price, each with its own signal name, then I want to scale out one at a time. Is this possible with the wizard?

      Comment


        #4
        It is possible. Just add three entries, and attach appropriate exits. Make sure that when you run the strategy to ensure that EntriesPerDirection is increased from the default of 1 to at least 3.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          NinjaScript Strategy Wizard questions

          Thanks, Josh, that's the ticket.

          But this can't be set in the wizard. I must change the default each time I load the strategy, right?

          Comment


            #6
            Correct. You will need to change it unless you want to custom program.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              NinjaScript Strategy Wizard questions

              Another question please...

              With the NS Strategy Wizard, it seems that when using the operators CrossAbove and CrossBelow, the Bars Ago and the Offset default of 0 cannot be changed. Even the resultant script has no [0] when using the default Bars Ago. Am I missing something?

              Comment


                #8
                CrossAbove checks for crosses of the series rather than actually data points. That is why you don't see the [0].
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  NinjaScript Strategy Wizard questions

                  Can I look for a crossover n bars back using the wizard?

                  Can I offset a crossover by n bars using the wizard?

                  When I set either the Bars Ago or the Offset of a crossover to any value other than the default of 0, the strategy ignores my values and only uses the default value.

                  Is this a wizard limitation, or am I missing something?

                  Comment


                    #10
                    CrossAbove, in the wizard, compares the series and NOT whatever you specify. This is why it does not show up and is a limitation.

                    You can only specify a range of bars starting from the last bar in which you will accept as crossovers. For instance, bumping lookback period to 10 will mean you accept this condition to be true if a cross happened anywhere from the current bar to 10 bars ago.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      NinjaScript Strategy Wizard questions

                      Thanks for the clarification, Josh.

                      Suggestion: If the Bars Ago and the Offset are not changeable with a CrossAbove/CrossBelow operator then maybe those fields should not appear.

                      Comment


                        #12
                        Thank you for the suggestion.
                        Josh P.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by warreng86, 11-10-2020, 02:04 PM
                        7 responses
                        1,360 views
                        0 likes
                        Last Post NinjaTrader_Manfred  
                        Started by Perr0Grande, Today, 08:16 PM
                        0 responses
                        5 views
                        0 likes
                        Last Post Perr0Grande  
                        Started by elderan, Today, 08:03 PM
                        0 responses
                        9 views
                        0 likes
                        Last Post elderan
                        by elderan
                         
                        Started by algospoke, Today, 06:40 PM
                        0 responses
                        10 views
                        0 likes
                        Last Post algospoke  
                        Started by maybeimnotrader, Today, 05:46 PM
                        0 responses
                        14 views
                        0 likes
                        Last Post maybeimnotrader  
                        Working...
                        X