Giter Site home page Giter Site logo

cm45t3r / candlestick Goto Github PK

View Code? Open in Web Editor NEW
328.0 17.0 72.0 125 KB

Candlestick patterns detection.

License: MIT License

JavaScript 100.00%
candlestick candlesticks candlestick-patterns-detection technical-indicators technical-analysis candlestick-patterns candlestick-data candlestick-pattern candlesticks-pattern javascript

candlestick's People

Contributors

cm45t3r avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

candlestick's Issues

Non installation fix & possible script error on test?

Let me start by saying that this is exactly what I had been looking for, and was quite surprised that there weren't more projects of this type on here.

Okay now the issue(s)

  1. Easy fix . . . following download and running install, install was rejected due to the project name being the same as one the dependencies in the Package.Json file. - fixed by Capitalising the name of the project in this file and running npm install Candlestick instead of candlestick.

  2. Issue on test (which I'm not going to need, but ran anyway) throwing up

mocha --check-leaks --use_strict

error. May be something in the script?

isEngulfed function

First of all, thank's for sharing this code.
I'm not a python developer but I think there's an issue with isEngulfed function.

Shortest candlestick is engulfed by a longest if the body of longest which completely overlaps or engulfs the body of the shortest

  1. Math.max(shortest.open, shortest.close) < Math.max(longest .open, longest .close)
  2. Math.min(shortest.open, shortest.close) > Math.min(longest .open, longest .close)

if this two conditions are true so bodyLen(shortest) < bodyLen(longest)

Thank's

Cannot chain the patterns

The essential value of pattern recognition is in constructing a chain of patterns from an array of candles, i.e. taking an array of candles, and producing an array of [pattern1, pattern2, pattern3,...], so it is possible to use such data to evaluate data predicted by the pattern versus the actual data, which in turn provides evaluation of patterns accuracy/reliance within any given data set.

Currently, the library does not let you construct such pattern chain at all.

So this is a proposed improvement ๐Ÿ˜‰

Should detect Doji patterns.

Currently library functions don't if a candlestick has Doji pattern. This feature needs to be included. It would be better if different versions of Doji pattern i.e. standard, gravestone or dragonfly Doji can be detected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.