| sample_prices_weekly | R Documentation |
Weekly closing prices for 20 stocks from 2017-2019. Data includes major stocks from various sectors and is suitable for demonstrating backtesting and technical analysis functions.
data(sample_prices_weekly)
A data.table with 158 rows and 21 columns:
Date object, weekly closing date (typically Friday)
Apple Inc. adjusted closing price
Amazon.com Inc. adjusted closing price
Boeing Co. adjusted closing price
Bank of America Corp. adjusted closing price
Additional stock symbols with adjusted closing prices
Yahoo Finance historical data, adjusted for splits and dividends
data(sample_prices_weekly)
head(sample_prices_weekly)
# Calculate momentum
momentum <- calc_momentum(sample_prices_weekly, lookback = 12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.