How to Use yfinance for Mutual Fund Percent Change Tracking?

22 Replies, 1284 Views

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.

Messages In This Thread



Users browsing this thread: 1 Guest(s)