Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancel Everything

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

    Cancel Everything

    Hi

    Could I request a CancelAllOrders() function ... I see you can call ExitLong() / ExitShort() to close all all executed open trades but there does not seem to be an equivalent for working/open orders ... it would be really useful as I would not have to maintain my own list of open orders.

    Thanks

    Paul

    #2
    Thanks for the suggestion Paul - a manual way would be the command 'Flatten everything' in the File menu.

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Thanks for the suggestion Paul - a manual way would be the command 'Flatten everything' in the File menu.
      Hi Bertrand

      Thanks ... though it would be really useful to have a programable equivalent .... Would also be VERY useful to be able to make a call to get all open trades and all working orders ... if for example you have a bunch of trades and orders open and you happen to close your strategy window by mistake you cannot programmatically find out where you are when you bring the strategy window back up ...

      GetOpenExecutions();
      GetWorkingOrders();
      CancelAllOrders();

      Would be highly appreciated !!!!!

      Thanks again ...

      Comment


        #4
        I agree Paul, thanks for the input - NinjaTrader 7 will address strategy persistence across sessions.

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          I agree Paul, thanks for the input - NinjaTrader 7 will address strategy persistence across sessions.
          Hi Bertrand

          When is Ninja 7 due

          Thanks

          Paul

          Comment


            #6
            Hi Paul,

            Thank you for your reply.

            NinjaTrader 7 is currently slated for a beta release in the second quarter.
            KyleNinjaTrader Customer Service

            Comment


              #7
              The problem with this is that you also stop your strategy. If that is not a problem, then you coud duplicate the "Flatten Everything" menu item programmatically by following this thread.





              It is not supported by NT. Please test at your own risk.


              Originally posted by NinjaTrader_Bertrand View Post
              Thanks for the suggestion Paul - a manual way would be the command 'Flatten everything' in the File menu.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Today, 05:17 AM
              0 responses
              48 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              126 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              66 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              42 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              46 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X