You can place an order to buy and then sell it during the day itself but you need to be aware of the free riding rule, please see here for more information.
How to place orders on the portal for Global Investing?
How can I get historical and current tax forms?
What happens if I place an order outside of market hours?
What are the trading hours for the U.S. stock exchanges?