Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

May we have a CancelAllOrders() method, please?

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

    May we have a CancelAllOrders() method, please?

    One occasion: when one had many standing orders, but is flat, and then wishes to stop taking any trades for the session but does not want to Disable() the strategy.

    Another occasion: strategy comes into an indeterminate state, so one wants to not take any further orders, and to quit trading.

    Yet another occasion: RealTimeErrorHandling is TakeNoAction. This allows us to quickly reset the strategy after going flat.

    #2
    Hello Koganam,

    Thank you for your note.

    There is not a supported method for this, however you can use CancelAllOrders(bool entries, bool exits);

    this.CancelAllOrders(true, true); will cancel all order for that specific strategy.


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

    Comment


      #3
      Originally posted by NinjaTrader_Cal View Post
      Hello Koganam,

      Thank you for your note.

      There is not a supported method for this, however you can use CancelAllOrders(bool entries, bool exits);

      this.CancelAllOrders(true, true); will cancel all order for that specific strategy.


      Let me know if I can be of further assistance.
      Thanks. You mean there is yet another hidden under the covers method for this already? Dang, how did I miss that? Even Intellisense shows it quite clearly. I must be losing my touch.
      Last edited by koganam; 07-05-2014, 05:06 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      55 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      35 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      19 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      8 views
      0 likes
      Last Post cre8able  
      Working...
      X