Disappearing pending orders

 
I have placed a couple of pending orders. Buy stop and sell stop.

They are created fine but after a short time they disappear from my trade list. They appear in history but only as potential trades with no profit or loss. 

I am not sure what is going on. 

Any advice will be kindly appreciated.
Paul 
 

may be you have set the time limit for every pending order.

and you were just unaware about that.

 
  1. Expiration time.
  2. Insufficient free margin at time of activation.
 
flycatcher.trader:
I have placed a couple of pending orders. Buy stop and sell stop.

They are created fine but after a short time they disappear from my trade list. They appear in history but only as potential trades with no profit or loss. 

I am not sure what is going on. 

Any advice will be kindly appreciated.
Paul 

Hey Paul

Did you find what was going on for you? I'm having the same problem here.

Already checked expiration time, free margin and the problem wasn't there. It's funny that sell stop orders works really fine.

I also already checked if it was the ask price > bid price at the moment of sending the order but that's not it also.

On backtest either buy stops or sell stops works fine without any warning. I really don't know what is hapenning.

I'm considering execute buy orders by market if I have no solution for this problem.

Eddited: found it. It was a little mistake on another part of the code that was resulting on the exclusion of the order as soon as it was plotted on the chart.