In short, the algorithm works in the following way: 1. It discovers trending and profitable stocks provided by the Alpha Vantage API through news sentiment analysis.
2. Now, having a list of good stock options, it cherry-picks those stocks that it considers to be from "evergreen companies" that just can't go bankrupt and will result in profit in the long term.
3. It sets limit orders for the stocks by analyzing the past 7 days of their prices (all by using LLMs).
4. The stop-loss price is calculated as 95% of the current price to mitigate risks.
5. It then buys the largest amount of stocks that have the greatest spread (limit price - current price) out of the chosen stocks through a position-sizing algorithm.
6. It constantly monitors the positions and buys more stocks when the existing ones are sold off.