{"id":13592625,"url":"https://github.com/SpiralDevelopment/candlestick-patterns","last_synced_at":"2025-04-08T23:33:39.531Z","repository":{"id":46325114,"uuid":"157670371","full_name":"SpiralDevelopment/candlestick-patterns","owner":"SpiralDevelopment","description":"Candlestick patterns detector","archived":false,"fork":false,"pushed_at":"2020-07-23T15:12:42.000Z","size":22,"stargazers_count":426,"open_issues_count":1,"forks_count":161,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-08-02T16:45:20.530Z","etag":null,"topics":["candlestick-patterns-detection","sotck-market","stock-trading","technical-analysis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpiralDevelopment.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-15T07:30:51.000Z","updated_at":"2024-07-24T07:42:28.000Z","dependencies_parsed_at":"2022-08-12T12:50:40.260Z","dependency_job_id":null,"html_url":"https://github.com/SpiralDevelopment/candlestick-patterns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpiralDevelopment%2Fcandlestick-patterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpiralDevelopment%2Fcandlestick-patterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpiralDevelopment%2Fcandlestick-patterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpiralDevelopment%2Fcandlestick-patterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpiralDevelopment","download_url":"https://codeload.github.com/SpiralDevelopment/candlestick-patterns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223346890,"owners_count":17130523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["candlestick-patterns-detection","sotck-market","stock-trading","technical-analysis"],"created_at":"2024-08-01T16:01:11.432Z","updated_at":"2024-11-06T13:31:54.995Z","avatar_url":"https://github.com/SpiralDevelopment.png","language":"Python","readme":"# candlestick-patterns\n\u003e Candlestick patterns detector\n\n## Available patterns\n* Inverted Hammer\n* Hammer\n* Hanging man\n* Bearish/Bullish Harami\n* Dark cloud cover\n* Doji\n* Doji Star\n* Dragonfly doji\n* Gravestone doji\n* Bearish engulfing\n* Bullish engulfing\n* Morning star\n* Morning star doji\n* Piercing pattern\n* Rain drop\n* Rain drop doji\n* Star\n* Shooting star\n\n\n## How to use\n### Dataframe requirements\n\n- Dataframe must contain open, high, low and close prices\n- Open, high, low and close prices must be in numeric type.\n\n#### Dataframe Example: \n\n|                time |     open |     high |      low |    close |\n|--------------------:|---------:|---------:|---------:|---------:|\n| 2019-12-24 00:00:00 |  7317.3  |  7436.68 |  7157.04 |  7255.77 |\n| 2019-12-25 00:00:00 |  7255.77 |  7271.77 |  7128.86 |  7204.63 |\n| 2019-12-26 00:00:00 |  7205.01 |  7435    |  7157.12 |  7202    |\n| 2019-12-27 00:00:00 |  7202    |  7275.86 |  7076.42 |  7254.74 |\n| 2019-12-28 00:00:00 |  7254.77 |  7365.01 |  7238.67 |  7316.14 |\n| 2019-12-29 00:00:00 |  7315.36 |  7528.45 |  7288    |  7388.24 |\n\n### Code\n```python\nfrom candlestick import candlestick\ndf = candlestick.inverted_hammer(df, target='result')\n```\n### Result\n\n| T                   | result            |     open |     high |      low |    close |\n|:--------------------|:------------------|---------:|---------:|---------:|---------:|\n| 2019-12-24 00:00:00 | False             |  7317.3  |  7436.68 |  7157.04 |  7255.77 |\n| 2019-12-25 00:00:00 | False             |  7255.77 |  7271.77 |  7128.86 |  7204.63 |\n| 2019-12-26 00:00:00 | True              |  7205.01 |  7435    |  7157.12 |  7202    |\n| 2019-12-27 00:00:00 | False             |  7202    |  7275.86 |  7076.42 |  7254.74 |\n| 2019-12-28 00:00:00 | False             |  7254.77 |  7365.01 |  7238.67 |  7316.14 |\n| 2019-12-29 00:00:00 | False             |  7315.36 |  7528.45 |  7288    |  7388.24 |\n\n\"True\" indicates that pattern is detected at that candle\n\n## Parametrs\nAll pattern detection methods receive 3 parametrs:\n* target (String) - Indicates the column to which the result of detection is saved as boolean. \n* is_reversed (Bool) - Pass True if rows in dataframe are in time descending order, otherwise False. Deafult is False.\n* ohlc (List) - Pass list of strings which indicates the column names of open/high/low/close prices in dataframe. Default: [\"open\", \"high\", \"low\", \"close\"]. \n\n\n## Support\n\nIf this project helped you in any way and you feel like buying a cup of coffee :coffee::\n\n* **BTC:** 1PUGs6mxcW2W3SJi95aG8GvRQRJsoFHWWQ\n\n* **ETH:** 0x66615e09f7f46429e7620ffbf78479879bbab41d\n\n* **LTC:** LRxYMgEXMumwxYdimZo9EJ5CfBcipD5c3n\n\n\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSpiralDevelopment%2Fcandlestick-patterns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSpiralDevelopment%2Fcandlestick-patterns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSpiralDevelopment%2Fcandlestick-patterns/lists"}