How to cancel bracket order after several bars pass?
The program asks for an order reference and i'm having a hard time finding out how to put this in the cancel method to cancel my bracket orders. Any help on this would be greatly appreciated!
It would help (us) a lot if you showed us what the program is asking you for and how you manage that it requests you to do so. In general and having had a look at several samples and a quick look at the docs:
You keep a reference to the order(s) which have been created and use that to cancel.
Quite conveniently for the case, the
buy_bracketmethods are together in the reference.