Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with Breakout Stop Entry code.

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

    #16
    Originally posted by NinjaTrader_Josh View Post
    NT7 will provide relaxed rules.
    lovely, i can't wait ;-) how's the beta coming along?

    Comment


      #17
      Slotted for around close of Q2.
      Josh P.NinjaTrader Customer Service

      Comment


        #18
        Originally posted by piersh View Post
        please correct me if i'm wrong, but i think it's because, in your case you have essentially two conflicting orders, both of which could get filled. at that point you'd have both long & short positions open on the same signal.
        No. I do this all the time with real orders doing discretionary trading.

        Lets say the market is at 50 and I place a buy 1 stop order at 51 and a sell 1 stop order at 49.
        If the market goes to say 52 then 48 I would go long at 51 then flat at 49. Or instead, if the market goes to say 48 first then 52, I would go short at 49 then flat at 51. That how the real world works.

        However, Ninjatrader's Strategy code and Tradestation's Strategy code assumes the trader wants to reverse when both long and short entry orders are placed. So in the above first example, we would go long at 51 then Tradestation, behind the scene would double the order size for the sell stop order so when the market traded down to 48 we would be short 1 from 49.

        shawnj

        Comment


          #19
          running 2 strategy

          Is it solution if I run 2 strategy , one with EnterLongStop(xxx)
          and the other with EnterShortStop(yyy) - both are on the same instrument - or the internal order handling rule is system wide , so this will cause an error too?

          Hatori.

          Comment


            #20
            hatori, yes that would cause an issue with the Internal Order Handling Rules because it would create two opposing entries.
            AustinNinjaTrader Customer Service

            Comment


              #21
              2 strategy

              I tried it today , and it is working without error.

              Last edited by hatori; 11-16-2009, 02:47 AM.

              Comment


                #22
                hatori, so your screenshot is showing two independent strategies placing those orders?

                Comment


                  #23
                  2 strategy

                  Yes , two independent strategy placing opposite EnterStopLimit orders.
                  Last edited by hatori; 11-16-2009, 10:34 AM.

                  Comment


                    #24
                    hatori, thanks for clarifying - this is the expected outcome as the 2 strategies are acting indepentent of each other.

                    Comment


                      #25
                      Originally posted by hatori View Post
                      Yes , two independent strategy placing opposite EnterStopLimit orders.
                      I proposed that workaround on message #3 of this thread. The problem with this workaround is that backtesting / optimizing gets very messy.

                      I'ts obvious the NT folks put a lot of work into NT's backtesting/optimizing/walkForwardOptimization. It's just sad however that the simplest type of breakout strategy cannot utilize any of it.

                      shawnj

                      Comment


                        #26
                        shawnj, NinjaTrader 7 will give you more flexibility for this as it introduces a new 'unmanaged order submission' mode - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html

                        New Unmanaged Order Submission
                        In 6.5 some users were burdened with our "Internal Order Handling" rules. We have introduced unmanaged order submission which bypasses the convenience of our order handling layer. This lower level of programming allows you to do what you want relative to order submission/management without any limitations other than any imposed by your broker. There are only three methods, SubmitOrder(), ChangeOrder() and CancelOrder(). You then get the flexibility of managing your orders how you see fit and optionally handling rejections

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        662 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        376 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        110 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        574 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        580 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X