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 zstheorist, Today, 07:52 PM
              0 responses
              7 views
              0 likes
              Last Post zstheorist  
              Started by pmachiraju, 11-01-2023, 04:46 AM
              8 responses
              150 views
              0 likes
              Last Post rehmans
              by rehmans
               
              Started by mattbsea, Today, 05:44 PM
              0 responses
              6 views
              0 likes
              Last Post mattbsea  
              Started by RideMe, 04-07-2024, 04:54 PM
              6 responses
              33 views
              0 likes
              Last Post RideMe
              by RideMe
               
              Started by tkaboris, Today, 05:13 PM
              0 responses
              6 views
              0 likes
              Last Post tkaboris  
              Working...
              X