Using TWS, I want to simultaneously sell 2 NQ contracts, at certain price and after sell order is executed I want to buy 1ES contract at market price. Is this possible, if so what type of order is this and how do I do it? Will Bracket Trader or Ninja Trade do this for me? Thanks, Tad K.
You cannot do this on the TWS. The closest way to set this up would be: say if you wanted to sell 2 NQ at 1253. You could make the ES order conditional on NQ Last Price >= 1253.50 ... Probably not what you want. Not sure if Bracket Trader and Ninja Trader can do it.
If that's just what you want to do, here's a program. To test it on the edemo, set a price lower than the bid as the sell price. The port is set to 7495 to prevent an inadvertent live order. I tried to attach the file directly but elite wont allow it, so just pm me for a copy.