Retrieve and analyze Barron's Commitments of Trader data.
Barron's commitments of traders (COT) is a weekly data seed from Barron's web page Barron's COT
barronsCOT package reads the COT table from Barron's web page, store the data and plot graphics to analyze it.
If you install from devtools you do not need to do anything else.
> devtools::install_github("mariope/barronsCOT")
When you load the library, you obtain three data frames:
COTsp for S&P 500 COT
COTspm for S&P 500 (E-mini) COT
COTgold for Gold COT.
library(barronsCOT)
The functions available are:
Retrieve COT weekly data fron Barron's web page. This function hasn't parameters.
> getBarronsCOT()
The output is a text saying if the data frames have been updated like this:
# [1] "Values added with date: February 14, 2017"
or
# [1] "February 14, 2017 Values are already embedded"
Show several graphics representation. This function need a COT data frame. Default COTsp.
> plotCOT(COTsp)
> plotCOT(COTspm)
> plotCOT(COTgold)
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
I use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the GPL-3 License - see the LICENSE file for details
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.