Nice work on figuring it out! I’ve been using yfinance for mutual fund percent change tracking for a while now, and I found that adding a rolling average to your data can give you a smoother trend line.
Here’s a quick snippet:
```python
data['Rolling_Avg'] = data['Close'].rolling(window=30).mean()
```
This helps me see the overall trend better. Also, if you’re into automation, you can set up a script to email you the percent change daily.
Here’s a quick snippet:
```python
data['Rolling_Avg'] = data['Close'].rolling(window=30).mean()
```
This helps me see the overall trend better. Also, if you’re into automation, you can set up a script to email you the percent change daily.
