Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
coding for open long/short, close long/short

I am newbie here and trying to figure out how I can write code for 'open long for stock s for 10 units' and 'close the long that I opened' . Can I use the 'order' function with different style or some other function?

Thanks a lot for your help!