-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All built-in data now only has the datasets keyword argument, which comes by default. The chart_ma()-function has been rewritten to mitigate possible bugs. See for example joshuaulrich/TTR#131. The error is fixed, but its not published to CRAN yet. The new approach is robust against such bug-fixes for univariate series. All moving average (MA) functions have been redocumented for usage and title sections.
- Loading branch information
Showing
21 changed files
with
336 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
#' USDT denominated ATOMS with 15m intervals | ||
#' USDT Denominated ATOM (ATOMUSDT) 15-Minute Intervals | ||
#' | ||
#' A xts object with 15m OHLCV of USDT denominated ATOM with 97 rows and 5 columns, from 2023-12-30 to 2023-12-31. | ||
#' @description | ||
#' This dataset contains time-series data for the ATOM cryptocurrency denominated in USDT (Tether), | ||
#' captured in 15-minute intervals (OHLC-V format). The data spans from December 30 to December 31, 2023. | ||
#' | ||
#' @format An [xts::xts()] object with 97 rows and 5 columns structured as follows: | ||
#' \describe{ | ||
#' \item{Open}{Opening price} | ||
#' \item{High}{Highest price} | ||
#' \item{Low}{Lowest price} | ||
#' \item{Close}{Closing price} | ||
#' \item{Volume}{Volume} | ||
#' \item{open}{[numeric] Opening price.} | ||
#' \item{high}{[numeric] Highest price.} | ||
#' \item{low}{[numeric] Lowest price.} | ||
#' \item{close}{[numeric] Closing price.} | ||
#' \item{volume}{[numeric] Trading volume.} | ||
#' } | ||
#' | ||
#' @family data | ||
#' @examples | ||
#' # Load the dataset | ||
#' data("ATOM") | ||
#' | ||
#' # candlestick charts | ||
#' chart( | ||
#' ticker = ATOM, | ||
#' main = kline(), | ||
#' sub = list(volume()) | ||
#' ) | ||
"ATOM" | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
#' USDT denominated Bitcoin(BTC) with 1 week intervals | ||
#' USDT Denominated Bitcoin (BTCUSDT) Weekly Intervals | ||
#' | ||
#' A xts object with weekly OHLCV of USDT denominated Bitcoin with 52 rows and 5 columns, from 2023-01-01 to 2023-12-31. | ||
#' @description | ||
#' This dataset contains time-series data for Bitcoin (BTC) denominated in USDT (Tether), | ||
#' captured in weekly intervals (OHLC-V format). The dataset consists of 52 rows and 5 columns, | ||
#' covering the period from January 1, 2023, to December 31, 2023. | ||
#' | ||
#' @format An [xts::xts()] object structured as follows: | ||
#' \describe{ | ||
#' \item{Open}{Opening price} | ||
#' \item{High}{Highest price} | ||
#' \item{Low}{Lowest price} | ||
#' \item{Close}{Closing price} | ||
#' \item{Volume}{Volume} | ||
#' \item{open}{[numeric] Opening price of Bitcoin in USDT at the start of each week.} | ||
#' \item{high}{[numeric] Highest price of Bitcoin in USDT during the week.} | ||
#' \item{low}{[numeric] Lowest price of Bitcoin in USDT during the week.} | ||
#' \item{close}{[numeric] Closing price of Bitcoin in USDT at the end of each week.} | ||
#' \item{volume}{[numeric] Trading volume of Bitcoin for the week, measured in units of Bitcoin.} | ||
#' } | ||
#' | ||
#' @examples | ||
#' # Load the dataset | ||
#' data("BTC") | ||
#' | ||
#' @family data | ||
#' # candlestick charts | ||
#' chart( | ||
#' ticker = BTC, | ||
#' main = kline(), | ||
#' sub = list(volume()) | ||
#' ) | ||
"BTC" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
#' USDT denominated DOGECOIN in 1m intervals | ||
#' USDT Denominated DOGECOIN (DOGECOINUSDT) 1-Minute Intervals | ||
#' | ||
#' A xts object with 1m OHLCV of USDT denominated Dogecoin with 61 rows and 5 columns. | ||
#' @description | ||
#' This dataset contains time-series data for the DOGECOIN cryptocurrency denominated in USDT (Tether), | ||
#' captured in 1-minute intervals (OHLC-V format). The dataset consists of 61 rows and 5 columns and spans 2022-01-14 07:00:00 CET to 2022-01-14 08:00:00 CET. | ||
#' | ||
#' @format An [xts::xts()] object structured as follows: | ||
#' \describe{ | ||
#' \item{Open}{Opening price} | ||
#' \item{High}{Highest price} | ||
#' \item{Low}{Lowest price} | ||
#' \item{Close}{Closing price} | ||
#' \item{Volume}{Volume} | ||
#' \item{open}{[numeric] Opening price} | ||
#' \item{high}{[numeric] Highest price.} | ||
#' \item{low}{[numeric] Lowest price.} | ||
#' \item{close}{[numeric] Closing price.} | ||
#' \item{volume}{[numeric] Trading volume.} | ||
#' } | ||
#' | ||
#' @family data | ||
#' @examples | ||
#' # Load the dataset | ||
#' data("DOGE") | ||
#' | ||
#' # Plot candlestick charts to visualize price movements | ||
#' chart( | ||
#' ticker = DOGE, | ||
#' main = kline(), | ||
#' sub = list(volume()) | ||
#' ) | ||
"DOGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,29 @@ | ||
#' Fear and Greed Index Values | ||
#' Fear and Greed Index Values (FGIndex) Daily Intervals | ||
#' | ||
#' A xts object with Fear and Greed Index value. It has 689 rows, and 1 colum. Extracted from 2023-01-01 to 2023-12-31 | ||
#' @description | ||
#' This dataset contains daily values of the Fear and Greed Index for the year 2023, which is used to measure the sentiments of investors in the market. The data spans from January 1, 2023, to December 31, 2023. | ||
#' | ||
#' @format An [xts::xts()] object structured as follows: | ||
#' \describe{ | ||
#' \item{FGI}{Daily Fear and Greed Index Value} | ||
#' \item{FGI}{[numeric] Daily Fear and Greed Index value.} | ||
#' } | ||
#' | ||
#' @family data | ||
#' @details | ||
#' The Fear and Greed Index goes from 0-100, and can be classified as follows, | ||
#' | ||
#' \describe{ | ||
#' \item{0-24}{Extreme Fear} | ||
#' \item{25-44}{Fear} | ||
#' \item{45-55}{Neutral} | ||
#' \item{56-75}{Greed} | ||
#' \item{76-100}{Extreme Greed} | ||
#' } | ||
#' | ||
#' | ||
#' @examples | ||
#' # Load the dataset | ||
#' data("FGIndex") | ||
#' | ||
#' # Get a summary of index values | ||
#' summary(FGIndex) | ||
"FGIndex" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.