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-167] Add Pretty Good Oscillator Support #168

Merged
merged 1 commit into from
Jul 8, 2023
Merged

[GH-167] Add Pretty Good Oscillator Support #168

merged 1 commit into from
Jul 8, 2023

Conversation

jealous
Copy link
Owner

@jealous jealous commented Jul 8, 2023

The Pretty Good Oscillator indicator by Mark Johnson measures the distance of the current close from its N-day simple moving average, expressed in terms of an average true range over a similar period.

https://library.tradingtechnologies.com/trade/chrt-ti-pretty-good-oscillator.html

Formular:

  • PGO = (Close - SMA) / (EMA of TR)

Example:

  • df['pgo'] retrieves the PGO with default window 14.
  • df['pgo_10'] retrieves the PGO with window 10.

The Pretty Good Oscillator indicator by Mark Johnson measures the
distance of the current close from its N-day simple moving average,
expressed in terms of an average true range over a similar period.

https://library.tradingtechnologies.com/trade/chrt-ti-pretty-good-oscillator.html

Formular:
* PGO = (Close - SMA) / (EMA of TR)

Example:
* `df['pgo']` retrieves the PGO with default window 14.
* `df['pgo_10']` retrieves the PGO 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.01 🎉

Comparison is base (31d5d46) 98.04% compared to head (ba9d805) 98.06%.

❗ 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     #168      +/-   ##
==========================================
+ Coverage   98.04%   98.06%   +0.01%     
==========================================
  Files           1        1              
  Lines         923      929       +6     
==========================================
+ Hits          905      911       +6     
  Misses         18       18              
Impacted Files Coverage Δ
stockstats.py 98.06% <100.00%> (+0.01%) ⬆️

☔ 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 2aa53b2 into master Jul 8, 2023
5 checks passed
@jealous jealous deleted the feature/pgo branch July 8, 2023 15:17
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.

None yet

2 participants