Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Removing Draw Objects

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

    Removing Draw Objects

    I am looking for a way to RemoveDrawObject

    in a strategy when the global "Close" button is used to canel all open and pending orders within a running strategy...

    When I use the "Close" button it seems to cancel the orders and the strategy (leaving the strategy disabled) but this also leaves all my locked DrawObjects on the chart ...

    if the positions are closed using the, for example, ExitLong() logic , all open orders are canceled and the DrawObjects removed...

    I use the managed approach in my logic, so is there a simple command I can use to RemoveAllDrawObjects after using the global "Close" button to cancel all pending/open orders?

    ALSO, Is there a way to add to the ExitLong() logic that will not only cancel open orders but pending orders as well with the managed approach?

    I am realizing in this edit I may not have picked the best forum area for this post and apologize if so...

    Hope this makes sense and thanks for any help,
    Last edited by tshirtdeal; 05-03-2014, 08:13 PM.

    #2
    was actually able to resolve the first question so still curious as to this ?

    ALSO, Is there a way to add to the ExitLong() logic that will not only cancel open orders but pending orders as well with the managed approach?
    Thanks,

    Comment


      #3
      Hello tshirtdeal,

      Thank you for your post.

      You can use OnTermination() and RemoveDrawObjects() so that the drawing objects are removed upon termination of the strategy.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      56 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      143 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X