So I expect to see only one order to buy or to sell and this is what usually happens on the system. The strange thing is that sometime it appears another order (close position, as you can see in the attachment) that duplicates my entry order without any reason.
What is the close position that is not in the code?
If you need I can send the full code in a private message.
Thanks.
Comment