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-169] Add Psychological Line (PSL) Support #170

Merged
merged 1 commit into from
Jul 8, 2023
Merged

Conversation

jealous
Copy link
Owner

@jealous jealous commented Jul 8, 2023

The Psychological Line indicator is the ratio of the number of rising periods over the total number of periods.

https://library.tradingtechnologies.com/trade/chrt-ti-psychological-line.html

Formular:

  • PSL = (Number of Rising Periods) / (Total Number of Periods) * 100

Example:

  • df['psl'] retrieves the PSL with default window 12.
  • df['psl_10'] retrieves the PSL with window 10.
  • df['high_12_psl'] retrieves the PSL of high price with window 10.

The Psychological Line indicator is the ratio of the number of
rising periods over the total number of periods.

https://library.tradingtechnologies.com/trade/chrt-ti-psychological-line.html

Formular:
* PSL = (Number of Rising Periods) / (Total Number of Periods) * 100

Example:
* `df['psl']` retrieves the PSL with default window 12.
* `df['psl_10']` retrieves the PSL with window 10.
* `df['high_12_psl']` retrieves the PSL of high price with window 10.
@jealous jealous self-assigned this Jul 8, 2023
@codecov-commenter
Copy link

Codecov Report

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

Comparison is base (2aa53b2) 98.06% compared to head (c9dfd11) 98.08%.

❗ 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     #170      +/-   ##
==========================================
+ Coverage   98.06%   98.08%   +0.02%     
==========================================
  Files           1        1              
  Lines         929      941      +12     
==========================================
+ Hits          911      923      +12     
  Misses         18       18              
Impacted Files Coverage Δ
stockstats.py 98.08% <100.00%> (+0.02%) ⬆️

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

@jealous jealous merged commit ea89acb into master Jul 8, 2023
@jealous jealous deleted the feature/psl branch July 8, 2023 16:04
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