For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

How to cancel ALL existing orders (without specifying order ids one-by-one)?



  • Hello, Every time my strategy makes a buy order, it also places a stop order (for stop loss purposes). What line of code can I write if I want the code to cancel ALL existing stop orders (or even all existing orders) without having to specify each order (via order id, etc.)?



  • Unless you use bracket orders, the order management need to be written as a part of the strategy script. It can be more than one line depending on your strategy.


Log in to reply
 

});