diff --git a/articles/01-article.html b/articles/01-article.html index a82daca..ab38737 100644 --- a/articles/01-article.html +++ b/articles/01-article.html @@ -158,122 +158,122 @@
+The
@@ -191,7 +191,7 @@chart()
-function comes with variousoptions
for color deficiency and themes. Use?chart
for further details.Charting indicators) ) - +
- +Charting events @@ -267,7 +267,7 @@
Charting events event_data = event_data )
+#> -2.58% 47.45% 19.88% 58.17%Limitations diff --git a/articles/05-article.html b/articles/05-article.html index b43fe32..0edde85 100644 --- a/articles/05-article.html +++ b/articles/05-article.html @@ -150,24 +150,24 @@
Building Cryptocurrency Trade Mode ## 3) trade the model quantmod::tradeModel(built_model, leverage = 2) #> -#> Model: lm1717184203.27163 +#> Model: lm1717190012.22198 #> -#> C.A.G.R.: 68.21% H.P.R.: 33.50% +#> C.A.G.R.: 69.21% H.P.R.: 33.94% #> #> Returns by period summary: #> #> weekly monthly quarterly yearly -#> Max. 25.77% 48.73% 31.94% 57.65% -#> 3rd Qu. 6.62% 46.96% 28.82% 57.65% -#> Mean 2.77% 13.19% 25.71% 57.65% -#> Median -1.69% 1.88% 25.71% 57.65% -#> 2rd Qu. -4.94% -12.93% 22.60% 57.65% -#> Min. -14.61% -18.69% 19.49% 57.65% +#> Max. 25.77% 48.73% 31.94% 58.17% +#> 3rd Qu. 6.62% 47.45% 28.92% 58.17% +#> Mean 2.79% 13.29% 25.91% 58.17% +#> Median -1.69% 1.88% 25.91% 58.17% +#> 2rd Qu. -4.94% -12.93% 22.90% 58.17% +#> Min. -14.61% -18.69% 19.88% 58.17% #> #> Period to date returns: #> #> weekly monthly quarterly yearly -#> -2.91% 46.96% 19.49% 57.65%
-Charting Cryptocurrency with quantmod @@ -415,22 +415,22 @@
Cryptocurrency and TTR
-67500.1 +67610.5 -1045.352 +1143.184 -61891.112 +61892.001 -67066.438 +67068.278 -72241.765 +72244.556 -0.563 +0.566 diff --git a/articles/05-article_files/figure-html/unnamed-chunk-5-1.png b/articles/05-article_files/figure-html/unnamed-chunk-5-1.png index 4d3c3c5..e615046 100644 Binary files a/articles/05-article_files/figure-html/unnamed-chunk-5-1.png and b/articles/05-article_files/figure-html/unnamed-chunk-5-1.png differ diff --git a/articles/cryptoQuotes.html b/articles/cryptoQuotes.html index 2982da1..5ea5f8f 100644 --- a/articles/cryptoQuotes.html +++ b/articles/cryptoQuotes.html @@ -152,13 +152,13 @@Open, High, Low, Close an Volume futures = FALSE, interval = "1h" )
+#> open high low close volume -#> 2024-05-31 14:00:00 68062.2 68062.2 67281.4 67448.0 18.738182 -#> 2024-05-31 15:00:00 67483.0 67506.0 67261.6 67261.6 9.119218 -#> 2024-05-31 16:00:00 67255.7 67255.7 66692.3 67188.8 26.041747 -#> 2024-05-31 17:00:00 67176.7 67449.1 67165.7 67344.1 4.485146 -#> 2024-05-31 18:00:00 67360.1 67431.0 67200.0 67411.7 3.443449 -#> 2024-05-31 19:00:00 67406.1 67598.2 67361.9 67585.1 3.173481
#> open high low close volume +#> 2024-05-31 16:00:00 67255.7 67255.7 66692.3 67188.8 26.0417470 +#> 2024-05-31 17:00:00 67176.7 67449.1 67165.7 67344.1 4.4851455 +#> 2024-05-31 18:00:00 67360.1 67431.0 67200.0 67411.7 3.4434494 +#> 2024-05-31 19:00:00 67406.1 67948.0 67361.9 67660.4 5.4238393 +#> 2024-05-31 20:00:00 67672.2 67792.7 67597.9 67668.0 3.3599569 +#> 2024-05-31 21:00:00 67668.1 67711.1 67668.1 67674.7 0.0365553
The market data can be extracted in different intervals using the
@@ -210,12 +210,12 @@interval
-argument. To see available intervals, theavailable_intervals()
-function can be used,Sentiment Data interval = "1h" )
+#> 2024-05-31 19:00:00 0.7541 0.2459 3.066694 +#> 2024-05-31 20:00:00 0.7443 0.2557 2.910833 +#> 2024-05-31 21:00:00 0.7463 0.2537 2.941663#> long short ls_ratio -#> 2024-05-31 14:00:00 0.7436 0.2564 2.900156 -#> 2024-05-31 15:00:00 0.7526 0.2474 3.042037 #> 2024-05-31 16:00:00 0.7463 0.2537 2.941663 #> 2024-05-31 17:00:00 0.7504 0.2496 3.006410 #> 2024-05-31 18:00:00 0.7507 0.2493 3.011231 -#> 2024-05-31 19:00:00 0.7528 0.2472 3.045307
The
@@ -254,7 +254,7 @@ticker
specific to the perpetual futures market can be extracted using theavailable_tickers
withfutures = TRUE
as follows,Charting cryptocurrency market data ) ) -
+- +Adding indicators
The
cryptoQuotes
-package also acts as an API-client to @@ -284,7 +284,7 @@Adding indicators) )