Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How do I implement an intra-day strategy?

I have an algorithm and want to run it on minute data but ensure that positions are closed at end of trading day so that there is no overnight exposure. How do I implement that?

1 response

Hey Pavy,

Here is a thread that discusses how to close a position on a single security at the end of the day so no position is held overnight. You should be able to easily extend to a portfolio of multiple securities.

Ryan