Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Help adapting Robinhood Instant sample algorithm to intraday

Robinhood instant user, new to Quantopian and coding in general, and trying to learn as quickly as possible. Very appreciative of all the brilliant code and strategy shared on the forums. Would anyone be willing to help adapt the attached robinhood instant sample algorithm as a basic, easily adaptable intraday strategy which could:

-Handle data/run logic every minute intraday
-Trade 95% of cash back and forth between SPY and SH (or any correlated securities) as often as triggered, based on a simple indicator (price >/< 125 period moving average, MA crossover, zscore, etc.)
-Maintain the basic framework of the order logic to accommodate robinhood instant, and prevent rejected orders due to pending fills.
-Close all positions 5 min before market close each day.

As a newbie with a genuine desire to learn and explore, having this available would be very helpful to gain insight into the code changes necessary to adapt other daily strategies to intraday, and could serve as a building block to test other indicators for robinhood instant intraday trading.

Thanks,
Chris

1 response

First algorithm, comments and improvements welcome.