Skip to main content

pyrenko

This is a class for calculating and visualizing a renko chart.

Author

Credit to the author for source code of pyrenko.

The only contribution from dennislwm is made a package and upload it to PyPi.

Installation

 $ pip install pyrenko

Example

 >>> import pyrenko

Getting Data

 >>> import yfinance
 >>> data = yfinance.download('SPY', start="2019-01-01", end="2019-12-31")

Note: Variable data is of type DataFrame that consists of columns ['Open', 'High', 'Low', 'Close'].

Get optimal brick size based

 >>> optimal_brick = pyrenko.renko().set_brick_size(auto = True, HLC_history = data[["High", "Low", "Close"]])

Build Renko

 >>> objRenko = pyrenko.renko()
 >>> print('Set brick size: ', objRenko.set_brick_size(auto = False, brick_size = optimal_brick))
 >>> objRenko.build_history(prices = data.Close)

Renko data

 >>> print('Renko length:' , len(objRenko.get_renko_prices()))
 >>> print('Renko bar directions: ', objRenko.get_renko_directions())
 >>> print('Renko bar evaluation: ', objRenko.evaluate())

Plot chart

 >>> objRenko.plot_renko()

Metadata

Release files for pyrenko 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrenko 0.1
File Size Uploaded Provenance Actions
pyrenko-0.1.tar.gz 3.4 kB Without provenance Details for pyrenko-0.1.tar.gz

Release files / pyrenko-0.1.tar.gz

Download URL pyrenko-0.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
299a3bf6663342e2f75efe4a370ff5c8fdd8bb15a6fd7b5de8bcbfd8eefedc5d
BLAKE2b-256 checksum
How to use checksums
2e38b08450630b6cbe1d976b2564febe7008e650c8e4f67b97923833df00a6df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.8

Security for pyrenko 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page