• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 alfonso, Today, 10:21 AM
      0 responses
      1 view
      0 likes
      Last Post alfonso
      by alfonso
       
      Started by saeed, Today, 10:20 AM
      2 responses
      4 views
      0 likes
      Last Post NinjaTrader_RyanS  
      Started by ntbone, Yesterday, 05:21 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by ntbone, Yesterday, 04:05 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by tonynt, Today, 09:35 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Working...
      X