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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      650 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      370 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      109 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      577 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X