Title. I'm wondering how to close out on short and long positions at a certain amount of time, right before the close.

 

Thanks