• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisãofd149a6c846460d7ba109971738e598236739443 (tree)
Hora2024-12-17 01:28:40
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Mensagem de Log

I use now the number of assets I want to consider as a parameter.

Mudança Sumário

Diff

diff -r 8ff618b5b429 -r fd149a6c8464 R-codes/technical_analysis.R
--- a/R-codes/technical_analysis.R Mon Dec 16 17:25:43 2024 +0100
+++ b/R-codes/technical_analysis.R Mon Dec 16 17:28:40 2024 +0100
@@ -30,7 +30,7 @@
3030
3131 n_assets <- 16 ## how many assets to consider
3232
33-value_min <- 2 ## min_value of the asset to be considered
33+n_assets <- 10 ## number of asset to be considered
3434
3535 ## mylist_slug <- c("cardano" , "avalanche",
3636 ## "injective",
@@ -102,7 +102,7 @@
102102 arrange(desc(total_value_usdt)) |>
103103 ## slice(1:n_assets) |>
104104 ## filter(total_value_usdt>value_min) |>
105- slice(1:10) |>
105+ slice(1:n_assets) |>
106106 mutate(asset=if_else(asset=="BEAMX", "BEAM", asset)) |>
107107 pull(asset)
108108