Plenty of tools like this already exist. Trading view apple stocks built in app. If you just want the data those would be far easier. If you want to self host something just to say you did it or for the challenge, you can try your hand at python, libta, and yahoo raw data. There are ways to calculate the things you are wanting and visualizing the graphs as well. It’s pretty fun and interesting!
Edit: just found this on awesome self hosted
This would be my vote honestly.