Skip to content
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

[GH-148] Add Correlation Trend Indicator #149

Merged
merged 1 commit into from
Jun 18, 2023
Merged

[GH-148] Add Correlation Trend Indicator #149

merged 1 commit into from
Jun 18, 2023

Conversation

jealous
Copy link
Owner

@jealous jealous commented Jun 18, 2023

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:

  • df['cti'] returns the CTI of close price with window 14
  • df['high_5_cti'] returns the CTI of high price with window 5

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

@jealous jealous self-assigned this Jun 18, 2023
@jealous jealous force-pushed the feature/cti branch 3 times, most recently from 6a098f5 to 672bf8f Compare June 18, 2023 13:47
@codecov-commenter
Copy link

codecov-commenter commented Jun 18, 2023

Codecov Report

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

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

❗ 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
@@            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 Coverage Δ
stockstats.py 98.67% <100.00%> (+0.06%) ⬆️

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

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:
* `df['cti']` returns the CTI of close price with window 14
* `df['high_5_cti']` returns the CTI of high price with window 5

add dependency numpy>=1.16.6 for the `as_strided` function.
Update the version to 0.6.0.
@jealous jealous merged commit 53af66a into master Jun 18, 2023
@jealous jealous deleted the feature/cti branch June 18, 2023 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants