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 JoMoon2024, Today, 06:56 AM
      0 responses
      6 views
      0 likes
      Last Post JoMoon2024  
      Started by Haiasi, 04-25-2024, 06:53 PM
      2 responses
      17 views
      0 likes
      Last Post Massinisa  
      Started by Creamers, Today, 05:32 AM
      0 responses
      5 views
      0 likes
      Last Post Creamers  
      Started by Segwin, 05-07-2018, 02:15 PM
      12 responses
      1,786 views
      0 likes
      Last Post Leafcutter  
      Started by poplagelu, Today, 05:00 AM
      0 responses
      3 views
      0 likes
      Last Post poplagelu  
      Working...
      X