jealous / stockstats

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

[GH-148] Add Correlation Trend Indicator #149

Closed jealous closed 1 year ago

jealous commented 1 year ago

Correlation Trend Indicator is a study that estimates the current direction and strength of a trend.

Implementation is based on the following code:

https://github.com/twopirllc/pandas-ta/blob/main/pandas_ta/momentum/cti.py

Examples:

Add dependency numpy>=1.16.6 for the as_strided function. Update the version to 0.6.0.

codecov-commenter commented 1 year ago

Codecov Report

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

Comparison is base (b075674) 98.61% compared to head (0b97249) 98.67%.

: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 #149 +/- ## ========================================== + Coverage 98.61% 98.67% +0.06% ========================================== Files 1 1 Lines 864 909 +45 ========================================== + Hits 852 897 +45 Misses 12 12 ``` | [Impacted Files](https://app.codecov.io/gh/jealous/stockstats/pull/149?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/149?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Cedric+Zhuang#diff-c3RvY2tzdGF0cy5weQ==) | `98.67% <100.00%> (+0.06%)` | :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.