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
pyrenko-0.1.tar.gz 3.4 kB Details

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

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

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