Not sure if this thread belongs in Index/Commodity Futures, Programming, Strat Dev, Trading software, etc, but it deals with an order logi issue so this is probably the best place.
For background, I have about 10 years experience trading futures and options but I'm just now getting into automated systems via TT's ADL.
I'm developing an algorithm to trade a particular futures and futures options strategy I have designed. I've been trading it manually or a few months and now want to automate it. Problem is, there is a particular order logic that I execute manually that I am having a hell of a time ensuring happens automatically. It seems like a common issue so I am just not seeing the trees from the forest.
Suppose S&P is at 2400. I want to be LONG X contracts above 2400 and SHORT X contracts below 2400. That is the entire goal. This also applies to any other futures market. When trading manually I use a combo of OCO orders, buy/sell stops and alerts to manage the position. However, my fear is that automatically I will end up in a situation where the market moves one way or the other and I will not get filled on all X of my contracts, but the market will continue to move. Yes, I can use if/then logic at particular market levels to do a "check" and make sure my position quanitity is indeed X number of contracts (and not something less than X), but that seems like something I should be doing as a backup rather than the primary means of ensuring I am getting filled.
S&P is at 2400, It moves up a few ticks to 2400.50 so my algo enters an order to buy 30 contracts at market. Filled at average price 2401. Now, if the market retraces to 2400 I will have a sellstop order to sell 60 contracts (X times 2 to reverse the position) at 2399.75. My issue is that my contract size HAS to be 30 contracts for strategic purposes. The transaction costs and losses on getting stopped out on 1 and 2 pt fluctuations repeatedly does not concern me (I deal with that another way). What concerns me is that the market may leave this buy/sell zone and I will NOT be holding my required 30 contracts.
What kind of orders or order logic can I impose such that my orders are in the order book and cannot be hurdled or gapped over? If that happens I will have a backup in place to chase the fill, but as a PRIMARY means of order execution I'd like to efficiently ensure fulfillment of my contract size at the buy/sell point.
Any takers? I am not as familiar with all of the order tactics as I could be, such as hidden and iceberg orders. I suppose these could play a part?
Let me know if this thread will get better traction in a diff category.
For background, I have about 10 years experience trading futures and options but I'm just now getting into automated systems via TT's ADL.
I'm developing an algorithm to trade a particular futures and futures options strategy I have designed. I've been trading it manually or a few months and now want to automate it. Problem is, there is a particular order logic that I execute manually that I am having a hell of a time ensuring happens automatically. It seems like a common issue so I am just not seeing the trees from the forest.
Suppose S&P is at 2400. I want to be LONG X contracts above 2400 and SHORT X contracts below 2400. That is the entire goal. This also applies to any other futures market. When trading manually I use a combo of OCO orders, buy/sell stops and alerts to manage the position. However, my fear is that automatically I will end up in a situation where the market moves one way or the other and I will not get filled on all X of my contracts, but the market will continue to move. Yes, I can use if/then logic at particular market levels to do a "check" and make sure my position quanitity is indeed X number of contracts (and not something less than X), but that seems like something I should be doing as a backup rather than the primary means of ensuring I am getting filled.
S&P is at 2400, It moves up a few ticks to 2400.50 so my algo enters an order to buy 30 contracts at market. Filled at average price 2401. Now, if the market retraces to 2400 I will have a sellstop order to sell 60 contracts (X times 2 to reverse the position) at 2399.75. My issue is that my contract size HAS to be 30 contracts for strategic purposes. The transaction costs and losses on getting stopped out on 1 and 2 pt fluctuations repeatedly does not concern me (I deal with that another way). What concerns me is that the market may leave this buy/sell zone and I will NOT be holding my required 30 contracts.
What kind of orders or order logic can I impose such that my orders are in the order book and cannot be hurdled or gapped over? If that happens I will have a backup in place to chase the fill, but as a PRIMARY means of order execution I'd like to efficiently ensure fulfillment of my contract size at the buy/sell point.
Any takers? I am not as familiar with all of the order tactics as I could be, such as hidden and iceberg orders. I suppose these could play a part?
Let me know if this thread will get better traction in a diff category.