Repo to create crypto strategies
Project description
crypto-strategy
A repository to perform backtests and create trading strategies for cryptocurrencies.
Install
pip install crypto-strategy[full]
Usage
- Moving average strategy
BestMaStrategy(symbols, freq, res_dir, flag_filter)
- symbols: asset name, e.g., BTCUSDT
- freq: data frequency to use, 1h | 4h
- res_dir: results directory
- flag_filter: filter to use, [mmi | ang]
- mmi: Market Meanness Index filter
- ang: Linear Regression Angle filter
- Breakout strategy
BestBoStrategy(symbols, freq, res_dir, flag_filter, flag_ts_stop)
- symbols: asset name, e.g., BTCUSDT
- freq: data frequency to use, 1h | 4h
- res_dir: results directory
- flag_filter: filter to use, [mmi | ang]
- mmi: Market Meanness Index filter
- ang: Linear Regression Angle filter
- flag_ts_stop: trailing stop filter
- macd strategy
BestMacdStrategy(symbols, freq, res_dir, flag_filter)
- symbols: asset name, e.g., BTCUSDT
- freq: data frequency to use, 1h | 4h
- res_dir: results directory
- flag_filter: filter to use, [mmi | ang | stoch | sma]
- vol: Volume filter
- ang: Linear Regression Angle filter
CLI
Backtests can also be carried out in command line. To find out more
crypto --help
Tests
pytest
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
crypto-strategy-0.1.6.tar.gz
(49.0 kB
view hashes)
Built Distribution
Close
Hashes for crypto_strategy-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9fe1dd69a5d073b112a36b928c2cd0d13a31a90a71ee9352b1e7fd5d2d4fe08 |
|
MD5 | ae4b5d5b29f21390ac36614018e9991d |
|
BLAKE2b-256 | 08a6670063732c34bda98d2b095524f9cb7e642e9be2eb067163906d19d1b175 |