Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

two opposing entry limit orders?

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

    #16
    Jon, yes the NT7 docs and helpguide is still work in progress at this point in time. For monitoring price / last tick, just use Close[0] with CalculateOnBarClose = false.

    Comment


      #17
      Doh! Of course. Sometimes when I start delving into the details, I forget the obvious. Thanks Bertrand and the rest of your team for all the help.

      jon

      Originally posted by NinjaTrader_Bertrand View Post
      Jon, yes the NT7 docs and helpguide is still work in progress at this point in time. For monitoring price / last tick, just use Close[0] with CalculateOnBarClose = false.

      Comment


        #18
        Unmanaged = true

        How do i do this?

        I guess I have run into a similar issue which is hopefully fixed in Ninja 7.



        I had started building the strategy in Ninja 7, however I have run into CHarting and rollover issues in 7.


        So, assuming I can get charting issue fixed in Ninja 7, I definitely need the option to fire orders in multiple directions. Hence I am asking
        1. How to set Unmanaged to true and
        2. If I have to manage stop orders myself and the Ninja internal stop losses are not being managed, how do i maintain references to these orders

        Thanks very much in advance

        Comment


          #19
          ariliveitup, set Unmanaged to true in the Initialize() of your strategy. This will deactivate the Internal Order Handling Rules, answered your other post as well, believe you're running into those on 65.

          Correct, there's then no signal tracking by NT, you could use IOrder objects to track and manage your orders then by collecting their tokens.

          Comment


            #20
            I would like to submit an OCO Order in a strategy. With or without internal stuff.

            How can I do that?

            Comment


              #21
              symphys, try using the OCO property on the two orders you want to tie. Place the same string value in the two orders and enjoy!

              Originally posted by symphys View Post
              I would like to submit an OCO Order in a strategy. With or without internal stuff.

              How can I do that?

              Comment


                #22
                Do I understand you correctly that I need to use:

                EnterLongStop(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double stopPrice, signalNameOCO)
                EnterShortStop(....., signalNameOCO)

                So the string signalName = signalNameOCO needs to be the same?

                Comment


                  #23
                  symphys,

                  You cannot OCO entry orders in the opposite direction. You need to submit one or the other and as price moves closer to the other direction cancel the first then submit the second.
                  Josh P.NinjaTrader Customer Service

                  Comment


                    #24
                    That is very sad, it can be done in SuperDOM.

                    Comment


                      #25
                      What is the best place to use Unmanaged = true, Initialize() or OnStartUp() ?


                      And please add OCO in a strategy would be very appreciated!

                      Comment


                        #26
                        Originally posted by symphys View Post
                        What is the best place to use Unmanaged = true, Initialize() or OnStartUp() ?
                        I use it in Initialize().
                        This is a NT7 feature only.

                        Comment


                          #27
                          In SubmitOrder() there is an ocoID, can this be used to submit opposite OCO orders?

                          How can I generate one?

                          Comment


                            #28
                            Yes, you can link orders through this string - http://www.ninjatrader.com/support/h...ub=SubmitOrder

                            Comment


                              #29
                              Seems like there are lots of people wanting to do this. Would be nice if someone that has coded this would share there code for others to discuss.

                              Comment


                                #30
                                Originally posted by zwoop View Post
                                Seems like there are lots of people wanting to do this. Would be nice if someone that has coded this would share there code for others to discuss.

                                Zwoop,

                                What exactly do you want to see examples of? I may be able to provide some.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by CarlTrading, 03-31-2026, 09:41 PM
                                1 response
                                65 views
                                0 likes
                                Last Post NinjaTrader_ChelseaB  
                                Started by CarlTrading, 04-01-2026, 02:41 AM
                                0 responses
                                35 views
                                0 likes
                                Last Post CarlTrading  
                                Started by CaptainJack, 03-31-2026, 11:44 PM
                                0 responses
                                59 views
                                1 like
                                Last Post CaptainJack  
                                Started by CarlTrading, 03-30-2026, 11:51 AM
                                0 responses
                                62 views
                                0 likes
                                Last Post CarlTrading  
                                Started by CarlTrading, 03-30-2026, 11:48 AM
                                0 responses
                                51 views
                                0 likes
                                Last Post CarlTrading  
                                Working...
                                X