-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update custom_indicators.Rmd #32
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ knitr::opts_chunk$set( | |
|
||
```{r setup} | ||
library(cryptoQuotes) | ||
library(dplyr) | ||
``` | ||
|
||
Trading indicators comes in various forms; from the alignment of the moon relative to the sun, to sophisticated trading rules based on neural networks which incorporates classified features; It is not possible to cover them all in an `R` package. | ||
|
@@ -39,15 +40,18 @@ We start by creating a simple `chart`-object with `volume` as it's only indicato | |
# 1) create a simple chart | ||
# object | ||
chart_object <- chart( | ||
ticker = BTC, | ||
ticker = BTC , | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove this additional white space; I spend many hours on spotting these. It triggers my OCD 🤣 |
||
main = kline(), | ||
sub = list( | ||
volume() | ||
), | ||
options = list( | ||
dark = FALSE | ||
) | ||
) | ||
)%>% | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not use |
||
layout(xaxis = list(showticklabels=FALSE)) | ||
stavralf marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
||
|
||
# 2) display the chart | ||
chart_object | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be a shame to declare a dependency on
dplyr
just for this PR. I suggest that you post your PR withoutdplyr
.