Technical Analysis enhanced through Machine Learning
Project description
MLTA
Machine Learning Driven Technical Analysis Library in Python.
Motivation
Technical Analysis has long been a stable for generating insights for trading. While the predictive power of each individual indicator is up for a debate, it is no denying that technical indicators are useful tools to create summary statistics for time-series data. This usefulness is not limited to finance, but rather any domain with necessity to deal with time series.
However, most indicators are interpreted in a too simplistic way. For example, candlestick patterns classify each candle into one of a couple classes. However, we would get more useful information if we can also measure how close a candle matches each class.
MLTA enables this possibility. Instead of returning classes, MLTA generates the likelihood of a candle belonging to a given class. The result is more granula information which leads to an improvement in accuracy.
Installation
MLTA is not yet on pypi. You can install the package through the following command:
pip install git+https://github.com/palmbook/MLTA.git
Usage
Candlestick Patterns
from MLTA import Candlestick
candle_model = Candlestick()
# df must have columns open, high, low, and close (in lower letters)
# class_prob contains columns of probabilities for each possible class
class_prob = candle_model.CDL3INSIDE(df)
Available methods are
- CDL3INSIDE
- CDL3LINESTRIKE
- CDL3OUTSIDE
- CDL3WHITESOLDIERS
- CDLCLOSINGMARUBOZU
- CDLCOUNTERATTACK
- CDLDOJI
- CDLDRAGONFLYDOJI
- CDLGAPSIDESIDEWHITE
- CDLGRAVESTONEDOJI
- CDLHAMMER
- CDLHARAMI
- CDLHOMINGPIGEON
- CDLINVERTEDHAMMER
- CDLLADDERBOTTOM
- CDLLONGLEGGEDDOJI
- CDLLONGLINE
- CDLMARUBOZU
- CDLMATCHINGLOW
- CDLMORNINGDOJISTAR
- CDLMORNINGSTAR
- CDLRICKSHAWMAN
- CDLRISEFALL3METHODS
- CDLSEPARATINGLINES
- CDLSHORTLINE
- CDLSTICKSANDWICH
- CDLTAKURI
- CDLTASUKIGAP
- CDLUNIQUE3RIVER
- bullishPin
- bearishPin
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file MLTA-0.0.5.tar.gz
.
File metadata
- Download URL: MLTA-0.0.5.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46683ed9611df9fc9d9950167c59ebabd391a3093e43e9630154b523b8c27a08 |
|
MD5 | bfe3b857910d6ecacc09f9d52db42f7d |
|
BLAKE2b-256 | bf537dc1556513c0d80879ca8188b08f1d500c68239720204e1c40d642d36ce3 |