Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Candlestick patterns detector

License

NotificationsYou must be signed in to change notification settings

SpiralDevelopment/candlestick-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Candlestick patterns detector

Available patterns

  • Inverted Hammer
  • Hammer
  • Hanging man
  • Bearish/Bullish Harami
  • Dark cloud cover
  • Doji
  • Doji Star
  • Dragonfly doji
  • Gravestone doji
  • Bearish engulfing
  • Bullish engulfing
  • Morning star
  • Morning star doji
  • Piercing pattern
  • Rain drop
  • Rain drop doji
  • Star
  • Shooting star

How to use

Dataframe requirements

  • Dataframe must contain open, high, low and close prices
  • Open, high, low and close prices must be in numeric type.

Dataframe Example:

timeopenhighlowclose
2019-12-24 00:00:007317.37436.687157.047255.77
2019-12-25 00:00:007255.777271.777128.867204.63
2019-12-26 00:00:007205.0174357157.127202
2019-12-27 00:00:0072027275.867076.427254.74
2019-12-28 00:00:007254.777365.017238.677316.14
2019-12-29 00:00:007315.367528.4572887388.24

Code

fromcandlestickimportcandlestickdf=candlestick.inverted_hammer(df,target='result')

Result

Tresultopenhighlowclose
2019-12-24 00:00:00False7317.37436.687157.047255.77
2019-12-25 00:00:00False7255.777271.777128.867204.63
2019-12-26 00:00:00True7205.0174357157.127202
2019-12-27 00:00:00False72027275.867076.427254.74
2019-12-28 00:00:00False7254.777365.017238.677316.14
2019-12-29 00:00:00False7315.367528.4572887388.24

"True" indicates that pattern is detected at that candle

Parametrs

All pattern detection methods receive 3 parametrs:

  • target (String) - Indicates the column to which the result of detection is saved as boolean.
  • is_reversed (Bool) - Pass True if rows in dataframe are in time descending order, otherwise False. Deafult is False.
  • ohlc (List) - Pass list of strings which indicates the column names of open/high/low/close prices in dataframe. Default: ["open", "high", "low", "close"].

Support

If this project helped you in any way and you feel like buying a cup of coffee ☕:

  • BTC: 1PUGs6mxcW2W3SJi95aG8GvRQRJsoFHWWQ

  • ETH: 0x66615e09f7f46429e7620ffbf78479879bbab41d

  • LTC: LRxYMgEXMumwxYdimZo9EJ5CfBcipD5c3n

About

Candlestick patterns detector

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2026 Movatter.jp