I am backtesting an overnight strategy that needs to be able to enter the market in the opposite of the market direction when the market moves better than a certain price level, say going short when the market moves 1% up from its Close price overnight. I am trying to get my strategy to enter the position on the first 1 Minute Bar the next day, somewhere within the price range of that first 1 Minute Bar.
I am happy to use Limit Orders, Stop Orders or Market Orders to achieve this while backtesting, but all three seem to have their problems in Ninja Trader for the situation described above, for instance:
1. Short Stop Orders can't be placed above the market in NT. They are ignored:
When I try to place a Short Stop Order 1% above the market, the order is ignored by Ninja Trader. With TraceOrders=true, the Output Window says that Ninja Trader ignored the Short Stop order because you can't place a Short Stop Order above the market, only below the market, i.e. Ninja Trader can only use Stop Orders to enter in the direction of the market.
2. Limit Orders produce fills that are in the middle of gap opens, where no trading occurred:
When I use a Limit Order to go short 1% above the market and there is a gap open up 3%, Ninja Trader is giving me the Short position at where I placed my Limit Order, whereas what I really wanted to do was go short on the first 1 Minute Bar that breached my price level, which is the bar that opened up 3% the next morning.
3. Market Orders placed on the opening 8:30AM-8:31AM bar always get executed at the Close Price of the SECOND bar, the 8:31AM-8:32AM bar.
How can I get my backtested strategy to enter a short position in a rising market within the price range of the opening 1 minute bar, EVEN on a gap open, when 1) Stops are ignored, 2) Limits give fills in the middle of gaps, and 3) markets entered on the 8:30-8:31 bar get filled at the closing price of the SECOND 1 minute bar?
Thank you VERY much for any help in solving this problem.
I feel like I am stuck in a corner and have no options for something that seems like it should be simple.
ChiTrader2000

OK, that's me after trying to find any reference to Last[0], you know...like Close[0] just not the close of the bar, specificaly current trade (price) between Open[0] and Close[0]. I find this amuzing that Ninja does not have Last[0] built in (TradeStation has just that).
Comment