Giter Club home page Giter Club logo

currency-pattern-detector's Introduction

currency-pattern-detector

Finding patterns in a temporary financial row.

Supported Patterns

  • Abandoned Baby.
  • Bearish Engulfing Pattern.
  • Bullish Engulfiing Pattern.
  • Dark Cloud Cover.
  • Downside Tasuki Gap.
  • Doji.
  • DragonFly Doji.
  • GraveStone Doji.
  • BullishHarami.
  • Bearish Harami Cross.
  • Bullish Harami Cross.
  • Bullish Marubozu.
  • Bearish Marubozu.
  • Evening Doji Star.
  • Evening Star.
  • Bearish Harami.
  • Piercing Line.
  • Bullish Spinning Top.
  • Bearish Spinning Top.
  • Morning Doji Star.
  • Morning Star.
  • Three Black Crows.
  • Three White Soldiers.
  • Bullish Hammer.
  • Bearish Hammer.
  • Bullish Inverted Hammer.
  • Bearish Inverted Hammer.
  • Hammer Pattern.
  • Hammer Pattern (Unconfirmed).
  • Hanging Man.
  • Hanging Man (Unconfirmed).
  • Shooting Star.
  • Shooting Star (Unconfirmed).
  • Tweezer Top.
  • Tweezer Bottom.

Using

import detector from "currency-pattern-detector/build";

interface ICandle {
  open: number;
  close: number;
  high: number;
  low: number;
}

const candles: ICandle[] = [
  { open: 45.0, high: 46.2, close: 41.2, low: 38.56 },
  { open: 33.45, high: 34.7, close: 29.31, low: 28.0 },
  { open: 30.2, high: 36.63, close: 36.28, low: 29.8 }
];

detector(candles);
interface IResult {
  bullish: string[];
  bearish: string[];
}

The result contains two arrays listing the patterns found.

You can give a complete history of candles, and the detector itself will take as much as it needs (from the last).

currency-pattern-detector's People

Stargazers

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

Watchers

 avatar  avatar

currency-pattern-detector's Issues

[Feature] Single detection support

Hi,
Thank you for working and sharing.

It is not possible to check the data of a single candle, to test for example, doji or hammer.
This will be a handy feature.

Body position calcul

Hi, I don't understand body position calculation.

const fourth = (high + low) / 4;

It seems incorrect to find the fourth of the candle.

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.