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 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: cancel(order)

    You keep a reference to the order(s) which have been created and use that to cancel.

    Quite conveniently for the case, the cancel and buy_bracket methods are together in the reference.