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 frankthearm, Yesterday, 09:08 AM
      11 responses
      41 views
      0 likes
      Last Post frankthearm  
      Started by junkone, Today, 11:37 AM
      0 responses
      7 views
      0 likes
      Last Post junkone
      by junkone
       
      Started by quantismo, 04-17-2024, 05:13 PM
      5 responses
      35 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by proptrade13, Today, 11:06 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by love2code2trade, 04-17-2024, 01:45 PM
      4 responses
      34 views
      0 likes
      Last Post love2code2trade  
      Working...
      X