Fastquant is a new python package that is related to stocks. Using only two lines, you can predict which stocks are good to buy, and which stocks you should sell.
First, install the fastquant package. Then, type the following:
from fastquant import backtest, get_stock_data
backtest('smac', get_stock_data('<Stock Ticker>', "2019-12-31", "2021-08-07"), fast_period=14, slow_period=30)
Run the program, and on the top left you will find something that says “value.” If the number beside it is greater than 100,000 (the start value), than you should buy the stock!