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,

Comment