Skip to main content

Japanese candlestick pattern

Project description

Pylint pytest

japanese-candlestick-pattern

Install

pip install japanese-candlestick

Usage

Assuming having a pandas DataFrame candles with the following columns:

  • 'Open'
  • 'High
  • 'Low'
  • 'Close'

One can compute the japanese candlestick pattern Engulfing as follow:

from patterns import Engulfing

# Instantiate the pattern, with the candles dataframe as arg
engulfing = Engulfing(candles)

# Perform pattern detection
output_df = engulfing.compute_pattern()

The pattern detection value (a bool) is stored in a column having the same name as the pattern (lower case). In above example, the results would be in output_df['engulfing'].

Available patterns

The patterns are computed based on the book 'Japanese Candlestick Charting Techniques', by Steve Nison.

The currently available patterns are the following:

  • Doji
  • DragonflyDoji
  • Engulfing
  • GraveswtoneDoji
  • Hammer
  • HangingMan
  • Harami
  • InvertedHammer
  • LongleggedDoji
  • ShootingStar
  • ThreeWhiteSoldiers
  • ThreeBlackCrows

They are all to be imported from patterns, and all with the same usage (and sometimes parameters), i.e.:

# First import
from patterns import Hammer
# Then instantiate
hammer = Hammer(candles)
# Finally compute detection
output_df = hammer.compute_pattern()

Additional

One can make a telegram bot and configure telegram-send using this tuto.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

japanese-candlestick-0.2.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

japanese_candlestick-0.2.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file japanese-candlestick-0.2.0.tar.gz.

File metadata

  • Download URL: japanese-candlestick-0.2.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for japanese-candlestick-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b521001828a5fadf9f3787d36981b5cced0d6435f84289a8d171c25916e9dd00
MD5 3df359c4725ce851ec7cde5dd76b9fa7
BLAKE2b-256 0b2fcbd8771982d30651a3957f3b2b79364e605ab2b72e1b47e565a07f76ea48

See more details on using hashes here.

File details

Details for the file japanese_candlestick-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for japanese_candlestick-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bccaeff807bad13b7a571719cb0126c9eba658baaaf5ada9ecd337d7ff9b1ce7
MD5 6f50ce9d1f1d42c20e6507d0f8ab448e
BLAKE2b-256 c4985583ae7c68b80109b3d6a87edd337430de2c1bd57fe1e7978c818c7ae01f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page