I'm using a script that shows up two buttons on the chart. One is a BUY button, the other is a SHORT button (code attached to the post).
When clicked, an "Open" button is changed into a "Close" button.
The buttons do what's expected : Buy when clicked, then close when clicked again.
My issue is that sometimes, I get more than one order filled, when only 1 is supposed to be.
As you can see in the linked screenshot : it should be only 1 order filled, but you can see 3 orders filled.
Can you help me understanding why I have those unexpected orders filled ?
Thank you in advance for your reply.
Comment