Hello, I use multiple trailing stops and profit taking orders without linking them. So for example, let's say I have 300 shares position and I have 3x100 trailing stop orders and 3x100 share profit taking orders active.
What happens from time to time is that I inadvertently get my position reversed when the market gets spikey. For example, one of my profit orders gets filled and I'm left with 200 position but 300 shares worth of trailing stop orders. I need to cancel one of the trailing stops.
Is there a way to do one of below?
1. Indicate that the order is a closing only order? I didn't find anything in API like that.
2. Configure TWS so that it will reject a sell order if it's not explicitly marked as 'sell short' but would result in a short position? Or at least prevent me from being able to flip position with a single order.
I assume none of the above, so do you guys link the orders to achieve this or track the position yourself?
Thanks
What happens from time to time is that I inadvertently get my position reversed when the market gets spikey. For example, one of my profit orders gets filled and I'm left with 200 position but 300 shares worth of trailing stop orders. I need to cancel one of the trailing stops.
Is there a way to do one of below?
1. Indicate that the order is a closing only order? I didn't find anything in API like that.
2. Configure TWS so that it will reject a sell order if it's not explicitly marked as 'sell short' but would result in a short position? Or at least prevent me from being able to flip position with a single order.
I assume none of the above, so do you guys link the orders to achieve this or track the position yourself?
Thanks