Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

why was this order getting ignored

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

    #16
    Josh,

    I just ran into this same issue. I can understand Junkone's frustration and concerns.

    Could you provide a code snippet that you would use for the work around?

    Sending a dummy order that is out of reach could be dangerous, so if that is the only option, it is very concerning. At any rate, I need to stay the course on AOH as it is essential to what I am doing, so a brief example would be helpful.

    Note: I second the motion on "known bugs" list, it would be a great way to save everyone time. Just my .01


    Thanks Josh,

    Comment


      #17
      Josh,

      Also, correct me if I am not understanding this correctly...

      If I use AOH, and I am live 1 car, with a stop working since entry, if I kill that stop for any reason, I can't put a stop back on as it relates to that live car?

      So I can't put a stop on and off at will? I have to move it "out of the way" as so to speak?

      If that is the case, one thing that comes to mind is margin requirements and rejected orders due to having a stop out there that you don't want anymore. As an example, instead of putting on a stop, I may want to spread the trade, then get naked the spread again and put the stop back on.

      So if there is divergence in the spread that I can use to hedge instead of stopping, I may run into a margin requirement because the broker will count that stop (that I priced out of range from being hit) against me as a full car that could fill.

      Is there more I can read about this? Are my concerns warranted or am I misunderstanding the entire issue.

      Please elaborate, it would be greatly appreciated.


      Regards,

      Comment


        #18
        The situation is as you have stated. This issue has already been fixed in NT7 so unfortunately there is nothing further I can provide you at this time.
        Josh P.NinjaTrader Customer Service

        Comment


          #19
          Originally posted by NinjaTrader_Josh View Post
          junkone,

          There are many implications in trying to fix anything related to order management and this requires full testing to the highest degree. I have already provided you a workaround that has no adverse implications so I am closing this case now.

          There is no concentrated external bug list.
          Originally posted by r2kTrader View Post
          Josh,
          If that is the case, one thing that comes to mind is margin requirements and rejected orders due to having a stop out there that you don't want anymore. As an example, instead of putting on a stop, I may want to spread the trade, then get naked the spread again and put the stop back on.

          So if there is divergence in the spread that I can use to hedge instead of stopping, I may run into a margin requirement because the broker will count that stop (that I priced out of range from being hit) against me as a full car that could fill.
          Josh,

          I would have to consider my example to be an adverse implication.

          I'm really confused as to how I should go about managing orders.

          Could you please provide a brief outline as to the approach I need to take to avoid this bug and gain granular control over my trades using AOH? Nothing specific, just a brief logic outline.

          Thanks again,

          Comment


            #20
            r2kTrader,

            The method has already been provided in this thread. You move the order so as to not execute. As stated, already fixed in NT7 and unfortunately there is nothing further I can provide on this at this point in time.
            Josh P.NinjaTrader Customer Service

            Comment


              #21
              Originally posted by NinjaTrader_Josh View Post
              r2kTrader,

              The method has already been provided in this thread. You move the order so as to not execute. As stated, already fixed in NT7 and unfortunately there is nothing further I can provide on this at this point in time.
              Josh,

              Could you give me a quick example of how to move the order before it cancels automatically? That would save me some time.

              Just a snippet of what to test and when to re-submit to protect from cancelling.

              Thanks,

              Comment


                #22
                Use liveUntilCancelled = true on your stop order so they will not auto cancel ever. Then you can just call ExitLongStop() again with your new stop price to modify the order when you want to do so.

                ExitLongStop(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double stopPrice, string signalName, string fromEntrySignal)
                Josh P.NinjaTrader Customer Service

                Comment


                  #23
                  Originally posted by NinjaTrader_Josh View Post
                  Use liveUntilCancelled = true on your stop order so they will not auto cancel ever. Then you can just call ExitLongStop() again with your new stop price to modify the order when you want to do so.

                  ExitLongStop(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double stopPrice, string signalName, string fromEntrySignal)
                  Thank you. One last question, and this is only because I am doing my first strategy with AOH.

                  What do I test when it's actually time to cancel? For example, if my entry is cancelled, do I set stopOrder = null after testing?

                  Thanks,

                  Comment


                    #24
                    You test the IOrder in OnOrderUpdate() for a Cancelled state. Once you receive a cancelled state then you can go ahead and set the IOrder to null again.
                    Josh P.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    558 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    324 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    101 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    545 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    547 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X