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
bracketorders, 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.