I have written a strategy which has good backtests in the SP500. I'm now mirroring the trades in ES because you can't trade the index and if I apply my strategy on the ES performance drops.
I simply added ES as secondary instrument and enter/exit trades when together with SP500. All works fine in backtests, market replay, and sim trading with Kinetick live data.
Now I'm worried because some of the exit logic is based on Position.AvgPrice calculation and when I will trade the strategy the orders for the index (which were fine for sim) will be rejected by IB. Am I right that, as a consequence, there is no Position.AvgPrice for the SP500 and my exit logic wont execute? If yes, is it possible to 'simulate' the position within the strategy?
Any help is very much appreciated,
Marco
Comment