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

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

        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 AaronKoRn, Yesterday, 09:49 PM
              0 responses
              11 views
              0 likes
              Last Post AaronKoRn  
              Started by carnitron, Yesterday, 08:42 PM
              0 responses
              10 views
              0 likes
              Last Post carnitron  
              Started by strategist007, Yesterday, 07:51 PM
              0 responses
              12 views
              0 likes
              Last Post strategist007  
              Started by StockTrader88, 03-06-2021, 08:58 AM
              44 responses
              3,982 views
              3 likes
              Last Post jhudas88  
              Started by rbeckmann05, Yesterday, 06:48 PM
              0 responses
              9 views
              0 likes
              Last Post rbeckmann05  
              Working...
              X