I'm new to Python and I'm just curious. Like is there a way to write an algo that has a small trailing stop loss and that re-buys the stock if the price again goes above the trailing stop loss during that day. You would also have to sell all stock at end of day to prevent price fluctuations when the market is closed. Wouldn't this algo prevent large losses and focuses on the stocks good days. If there is can you tell me please?