After use managed approach for a while i see, i encounter obstacles because of NT's order management rules. For escape from this obstacles i decide to use unmanaged approach and read user guide and related forum posts about it. But i see there is no detailed information about subject especially about OrderAction & OrderType.
Below i'll share what i understand and if i'm wrong please warn/inform me.
1. When we flat and want to go long we'll use OrderAction.Buy
2. When we long and want to close it we'll use OrderAction.Sell
3. When we flat and want to go short we'll use OrderAction.SellShort
4. When we short and want to close it we'll use OrderAction.BuyToCover
5. If our buy order filled and want to create stop loss order we'll use OrderAction.Sell & OrderType.StopMarket/StopLimit
6. If our sell order filled and want to create stop loss order we'll use OrderAction.Buy & OrderType.StopMarket/StopLimit
7. If our buy order filled and want to create take profit order we'll use OrderAction.Sell & OrderType.Limit
8. If our sell order filled and want to create take profit order we'll use OrderAction.Buy & OrderType.Limit
9. If our buy/sell order filled and want to create both stop loss and take profit order at the same time we'll use above orders but this time we'll give same OCO number for both SL&TP orders and this OCO number must be unique for each buy/sell orders.
10. StopMarket orders fills immediately but StopLimit orders pending and when limit order hit then market order will create.
11. MIT order also pending orders and after limit price hit, market order creating and position open from the most reasonable price.
* If all above is right. So i write a strategy and use only OrderAction.Buy and OrderAction.Sell for open/close my positions never used SellShort & BuyToCover. The strategy works well, why? how? Am i missing something?
* When use managed approach simply EnterLong reversing short position vise versa. When i use unmanaged orders how can i do it properly? What is my options?
Thanks,
Aytac
Comment