I have developed bot which works for 98%. I have only 1 issue when I one of pending orders is executed I want other market positons closed and pending orders deleted.
my code is big and I don't want to take too much you time and thats why I am asking you to make very simple example ATM strategy which will work like this:
open 1 market position for example buy and place 2 pending positions for example buystop and sellstop. and when one of those pending order will be executed then close previous buy position and delete remaining stop order. Just this please and I will then read your code understand it and fix my bug.
Hope someone can help me and give me simple code example of what I have asked above.
Thank you in advanced and waiting for your reply.
Comment