cm45t3r / Candlestick
Licence: mit
Candlestick patterns detection.
Stars: ✭ 145
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Candlestick
Awesome Quant
A curated list of insanely awesome libraries, packages and resources for Quants (Quantitative Finance)
Stars: ✭ 8,205 (+5558.62%)
Mutual labels: technical-analysis
Tradestation
EasyLanguage indicators and systems for TradeStation
Stars: ✭ 65 (-55.17%)
Mutual labels: technical-analysis
Indicators.jl
Financial market technical analysis & indicators in Julia
Stars: ✭ 130 (-10.34%)
Mutual labels: technical-analysis
Ta Lib Rt
TA-Lib RT is a fork of TA-Lib that provides additional API for incremental calculation of indicators without reprocessing whole data.
Stars: ✭ 39 (-73.1%)
Mutual labels: technical-analysis
Ta Lib
Python wrapper for TA-Lib (http://ta-lib.org/).
Stars: ✭ 6,034 (+4061.38%)
Mutual labels: technical-analysis
Candlestick Patterns
Candlestick patterns detector
Stars: ✭ 132 (-8.97%)
Mutual labels: technical-analysis
Gekko Strategies
Strategies to Gekko trading bot with backtests results and some useful tools.
Stars: ✭ 1,022 (+604.83%)
Mutual labels: technical-analysis
Simplestockanalysispython
Stock Analysis Tutorial in Python
Stars: ✭ 126 (-13.1%)
Mutual labels: technical-analysis
Bitvision
Terminal dashboard for trading Bitcoin, predicting price movements, and losing all your money
Stars: ✭ 957 (+560%)
Mutual labels: technical-analysis
Pandas Ta
Technical Analysis Indicators - Pandas TA is an easy to use Python 3 Pandas Extension with 130+ Indicators
Stars: ✭ 962 (+563.45%)
Mutual labels: technical-analysis
Trading Signals
Technical indicators to run technical analysis with JavaScript / TypeScript. 📈
Stars: ✭ 118 (-18.62%)
Mutual labels: technical-analysis
Finta
Common financial technical indicators implemented in Pandas.
Stars: ✭ 901 (+521.38%)
Mutual labels: technical-analysis
Jhtalib
Technical Analysis Library Time-Series
Stars: ✭ 131 (-9.66%)
Mutual labels: technical-analysis
Octobot
Cryptocurrency trading bot: high frequency, daily trading, social trading, ...
Stars: ✭ 706 (+386.9%)
Mutual labels: technical-analysis
Technicalindicators
A javascript technical indicators written in typescript with pattern recognition right in the browser
Stars: ✭ 1,328 (+815.86%)
Mutual labels: technical-analysis
Lstm Crypto Price Prediction
Predicting price trends in cryptomarkets using an lstm-RNN for the use of a trading bot
Stars: ✭ 136 (-6.21%)
Mutual labels: technical-analysis
Turingtrader
The Open-Source Backtesting Engine/ Market Simulator by Bertram Solutions.
Stars: ✭ 132 (-8.97%)
Mutual labels: technical-analysis
Trendyways
Simple javascript library containing methods for financial technical analysis
Stars: ✭ 121 (-16.55%)
Mutual labels: technical-analysis
Candlestick
A JavaScript library for candlestick pattern detection. Easy to use and solves the need for node-gyp builds.
Installation
To use the most recent release in your project:
npm install --save candlestick
Available functions
isBullishKicker(previous, current)
isBearishKicker(previous, current)
isShootingStar(previous, current)
bullishKicker(dataArray)
bearishKicker(dataArray)
shootingStar(dataArray)
previous
and current
are OHLC (Open, High, Low, Close) objects:
{
...
open: Number, // security's opening price
high: Number, // security's highest price
low: Number, // security's lowest price
close: Number // security's closing price
}
dataArray
is an array of OHLC objects, like previous
or current
.
Note: The OHLC object could have more properties and does not affect the computing result.
Examples
Boolean detection
Use two OHLCs to assess the pattern:
const cs = require('candlestick');
// Market data: previous and current ticks
const prev = {
security: 'ORCL',
date: '2016-09-15',
open: 40.18,
high: 41.03,
low: 40.09,
close: 40.86
};
const curr = {
security: 'ORCL',
date: '2016-09-16',
open: 39.61,
high: 39.35,
low: 38.71,
close: 38.92
};
console.log(cs.isBullishKicker(prev, curr)); // false
console.log(cs.isBearishKicker(prev, curr)); // true
Finding patterns in series
Find the points in a dataset where the pattern occurs:
const cs = require('candlestick');
// Market data: array of ticks
const data = [
{
security: 'GE',
date: '2016-02-01',
open: 29.01,
high: 29.03,
low: 28.56,
close: 28.64
},
{ ... },
{ ... },
...
{ ... }
];
console.log(cs.shootingStar(data));
// result: [{ security: 'GE', date: '2016-02-10', ... }, { security: 'GE', date: '2016-07-11', ... }]
Running tests
npm run test
Contributing
You are welcome to contribute to this library creating issues or pull requests.
Licence
This project is licensed under the MIT license. See the LICENSE file for more info.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].