I am trying to backtest a futures product with a strategy that Enters Short and Long on the same day.
I want to test both Short and Long Entries in the same backtest, and keep track of their Exits separately.
My problem is that when I already have a long position, then try to enter short with a unique signalname, the short entry closes my long position.
I need both long and short positions to stay open at the same time, just for the purposes of the backtest.
How can I achieve this?
I realize that in a real world futures account you can't be both long and short the same instrument. I am perfectly happy with strange/tricky solutions. I will program the best workaround that anybody out there can come up with.
Thank you very much in advance,
ChiTrader2000

Comment