I would like to ExitLong then EnterShort OR ExitShort then EnterLong......basically reverse the trade direction (trade the opposite signal) on the same bar with that close above or below a line. There is no Ninjatrader code for "ReverseDirection" in a Strategy.
While it seems I can get the action to appear to work....the SetStopLoss and SetProfitTarget does not change to the new details.....and this is resulting in an exit of both trades all on the same bar as it appears the previous Stop or Target is being used to exit the new direction order.
Is there any way to enter and exit AND set the new Stop and Target all on the cross/close using OnBarClose?
If not, can you suggest the best way to do it?
I could not find a previous post that best discussed this issue.
Comment