What I want to do is have a ninjascript I can add to a chart(or an automated strategy for Market replay purposes) that allows me to enter a time limit, 5 minutes for example and once 5 minutes passes from the time the entry was executed exit the trade no matter what position it's in. The largest problem I'm running into is that the time series used in ninjatrader rolls over at the hour and minute by 4000 and 40 respectively.
Kinda like a backup in case I forget I'm still in the trade and it starts going against me until it stops out.
Comment