I new to the forum and NinjaTrader. I'm trying to create a strategy that simply buys at the daily open and sells at that same daily bar's close. I'm aware that "EnterLong()" executes a market order that buys at the following day's opening price, but I don't know how to sell at that same bar's closing price. If I use "ExitLong" it exits the long position at the "next" day's open and not at the same day's closing price.
James
Comment