Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancel all strategy orders in Unmanaged approach

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

    Cancel all strategy orders in Unmanaged approach

    Using the Unmanaged order approach, is there a single command to cancel all outstanding orders of a specific strategy?

    (I'm aware that I can keep a list of all outstanding orders and enumerate those).

    Thanks,
    Boaz

    #2
    Hello Boaz,

    Thank you for your post.

    There is no supported method for this, however you can use -

    this.CancelAllOrders(bool entries, bool exits);

    This will cancel all orders for the specific strategy that it is called in, and you can choose to do only entries, exits or both.

    Please note that this method is unsupported and do not have any documentation on the subject.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      No documentation/support?

      Originally posted by NinjaTrader_Cal View Post
      Hello Boaz,

      Thank you for your post.

      There is no supported method for this, however you can use -

      this.CancelAllOrders(bool entries, bool exits);

      This will cancel all orders for the specific strategy that it is called in, and you can choose to do only entries, exits or both.

      Please note that this method is unsupported and do not have any documentation on the subject.

      Let me know if I can be of further assistance.
      This is interesting. No documentation/support? I've used the unmanaged approach exclusively. How does NT know that an order is an entry or an exit in the unmanaged framework?

      Comment


        #4
        cgeorgan,

        NinjaTrader is smart enough to track your strategies positions and the type of orders being placed with the Unmanaged to determine if it is an entry or exit

        Correct, this is not a supported item with NinjaTrader and as such do not have documentation on it.
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Cal View Post
          cgeorgan,

          NinjaTrader is smart enough to track your strategies positions and the type of orders being placed with the Unmanaged to determine if it is an entry or exit

          Correct, this is not a supported item with NinjaTrader and as such do not have documentation on it.
          Do I understand well, that:
          Buy + SellShort - types of orders mean ENTRY
          and
          Sell + BuyToCover - types of ordes mean EXIT ?

          That is, how the NinjaTrader resolves difference between intended entry/exit order?
          Last edited by misova; 09-24-2014, 12:25 AM.

          Comment


            #6
            misova,

            These are just labels for your orders. Placing a BuyToCover in a flat position could put you in a position as well.

            The difference here is that some brokers require orders with the correct tags. You would explicitly say exit the long but don't go short.
            Cal H.NinjaTrader Customer Service

            Comment


              #7
              Cal,

              Is this a similar undocumented method which can be called to flat the position besides closing all open orders?

              Thanks,
              Clearpicks

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by r68cervera, Today, 05:29 AM
              0 responses
              2 views
              0 likes
              Last Post r68cervera  
              Started by geddyisodin, Today, 05:20 AM
              0 responses
              3 views
              0 likes
              Last Post geddyisodin  
              Started by JonesJoker, 04-22-2024, 12:23 PM
              6 responses
              34 views
              0 likes
              Last Post JonesJoker  
              Started by GussJ, 03-04-2020, 03:11 PM
              12 responses
              3,239 views
              0 likes
              Last Post Leafcutter  
              Started by AveryFlynn, Today, 04:57 AM
              0 responses
              6 views
              0 likes
              Last Post AveryFlynn  
              Working...
              X