I have developed strategy that draws buttons on Chart Trader and those buttons all buttons works fine now.
Currently when I click on buy or sell buttons and open market position it closes all other positions and also deletes all pending orders.(code line: 821-882)
But my issue is that when I place Limit or Stop orders and when it is executed I want same behavior from bot as when clicking on buy or sell orders.(code line: 884-996)
I know that issues is in strategy IDs but I couldn't found fix for it so if anybody can help me and edit my code that will be wonderful.
P.S. in code I have created region called: NEED HELP on line 819 so you can easily find part what requires fix.
Thanks in advanced.
Comment