Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Place Buy order and Sell order at same time.

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

    #16
    Originally posted by ooppie View Post
    I am wondering if I could implement "OCO" by having a global class with static properties/methods. Ray, is this the right direction?
    You could do this but you need to take care that you properly dispose of objects etc...
    RayNinjaTrader Customer Service

    Comment


      #17
      Thanks, Ray!

      Is it possible to temporarily allow two orders at both sides of the market in NT 6.x until a more robust solution is implemented in NT 7.0? You could demand the startegy must have certain attribute to be able to do so. By doing that you make the feature inaccesible for most casual users, while you expose it to more experienced programmers.

      Comment


        #18
        Unfortunately not.
        RayNinjaTrader Customer Service

        Comment


          #19
          Will NT7 allow multiple entry orders via a strategy script?

          Comment


            #20
            hemlock,

            You can already use multiple entry orders. Please see this reference sample: http://www.ninjatrader-support2.com/...ead.php?t=3225
            Josh P.NinjaTrader Customer Service

            Comment


              #21
              This thread was is regards to multiple entry orders within a Ninja script strategy on either side of the market (bracketed). That is available now?

              Comment


                #22
                Not sure what you mean. This script is for using multiple signals to trade different conditions. Having simultaneous orders working in opposite directions of the market is not supported.
                Josh P.NinjaTrader Customer Service

                Comment


                  #23
                  Here is an example of what I mean. Within a strategy script I would like to place an entry order 10 ticks above the current price (EnterShortLimit) and also an entry order 10 ticks below the current price (EnterLongLimit). If one gets filled the other gets cancelled.

                  I didn't think this was possible with the current version (actually I think it had been disabled). My original question was will this be available in NT7.

                  Thanks.

                  Comment


                    #24
                    Not possible in NT6.5. Announcements will be made if available in NT7 when appropriate.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #25
                      I've got a strategy that will do this... email me at [email protected] if you want it.

                      Comment


                        #26
                        Originally posted by heyligerb View Post
                        I've got a strategy that will do this... email me at [email protected] if you want it.
                        You have a strategy programmed with NinjaScript that has a long and short order working simultaneously?

                        That isn't possible if you're working entirely within NinjaTrader 6.5.
                        AustinNinjaTrader Customer Service

                        Comment


                          #27
                          Working with global variables... it works. It's just not supported. :-)

                          Comment


                            #28
                            Ah yes, the whole "unsupported" way. If it works, it works.
                            AustinNinjaTrader Customer Service

                            Comment


                              #29
                              Will it be supported in NT7?

                              Comment


                                #30
                                Yes, it will. From the NT7 announcement page:

                                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.
                                AustinNinjaTrader Customer Service

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                636 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                366 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                107 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                569 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                571 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X