Hi, Shrewd!        Login  
Shrewd'm.com 
A merry & shrewd investing community
Best Of MI | Best Of | Favourites & Replies | All Boards | Post of the Week!
Search MI
Shrewd'm.com Merry shrewd investors
Best Of MI | Best Of | Favourites & Replies | All Boards | Post of the Week!
Search MI


Investment Strategies / Mechanical Investing
Unthreaded | Threaded | Whole Thread (9) |
Author: anchak   😊 😞
Number: of 3957 
Subject: Re: GTR ETFs, etc?
Date: 04/03/2025 11:48 AM
Post New | Post Reply | Report Post | Recommend It!
No. of Recommendations: 3
Excellent suggestion! I use quantmod functions for other analysis - dont know why this slipped my mind.

I use Yahoo! sparingly - but its currently the ONLY free source for Russell ( the actual index - if you have historical data stored you can use IWM as a proxy)

Here's the code :

#install.packages("tidyquant") I commented it out - you will need to install if you dont have it already

library(tidyquant)
symbol="^RUT"
df <- tq_get(symbol, get = "stock.prices", from = "1980-01-01")
Post New | Post Reply | Report Post | Recommend It!
Print the post
Unthreaded | Threaded | Whole Thread (9) |


Announcements
Mechanical Investing FAQ
Contact Shrewd'm
Contact the developer of these message boards.

Best Of MI | Best Of | Favourites & Replies | All Boards | Followed Shrewds