Can you elaborate more on your requirement so that I can understand it better and help you further?
If you are referring to exiting positions at the end of the market, you can add time-based exit conditions. Please refer to this link to know more - Indicators - Streak Help
Have a nice Sunday