Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Order at Open, then Profit Taker/Stop Loss, and finally sell at Close

Hi Everyone
It took me some time to figure out how to use my own universe in a strategy that buys using limit prices and number of shares I specify depending on the open, during the day takes profits or sells at a stop loss price, and at the end of the day goes back to cash.
So I thought in the spirit of the community I would share this.
Please note those comments where I am not sure of the code - recommend that if you use this do so as a starting point as I am a newbie to both Python and Quantopian.
After I get better with Python and Quantopian I will post an update where limit prices and shares by date are imported - the limit prices and shares in the code are placeholders for now.
And please let me know if I have missed anything or the code needs tweaking.
And for those of you that need an excellent Python course that I found helpful try IBM's Python for Data Science - it is free.
Best wishes and happy weekend
Savio