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 fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,406 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by Shai Samuel, 07-02-2022, 02:46 PM
      4 responses
      98 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by DJ888, Yesterday, 10:57 PM
      0 responses
      8 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      160 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      9 views
      0 likes
      Last Post Belfortbucks  
      Working...
      X