jealous / stockstats

Supply a wrapper ``StockDataFrame`` based on the ``pandas.DataFrame`` with inline stock statistics/indicators support.
Other
1.26k stars 297 forks source link

[GH-160] Add Relative Vigor Index #161

Closed jealous closed 1 year ago

jealous commented 1 year ago

The Relative Vigor Index (RVI) is a momentum indicator used in technical analysis that measures the strength of a trend by comparing a security's closing price to its trading range while smoothing the results using a simple moving average (SMA).

https://www.investopedia.com/terms/r/relative_vigor_index.asp

Formular

where:

Examples:

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.28 :tada:

Comparison is base (abe781d) 97.72% compared to head (b77d722) 98.01%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #161 +/- ## ========================================== + Coverage 97.72% 98.01% +0.28% ========================================== Files 1 1 Lines 880 907 +27 ========================================== + Hits 860 889 +29 + Misses 20 18 -2 ``` | [Impacted Files](https://app.codecov.io/gh/jealous/stockstats/pull/161?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Cedric+Zhuang) | Coverage Δ | | |---|---|---| | [stockstats.py](https://app.codecov.io/gh/jealous/stockstats/pull/161?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Cedric+Zhuang#diff-c3RvY2tzdGF0cy5weQ==) | `98.01% <100.00%> (+0.28%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.