Skip to main content

Repo to create crypto strategies

Project description

crypto-strategy

A repository to perform backtests and create trading strategies for cryptocurrencies.

Python package pypi-upload pages-build-deployment

Install

pip install crypto-strategy[full]

Usage

  1. 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
  1. 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
  1. 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


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)

Uploaded Source

Built Distribution

crypto_strategy-0.1.6-py3-none-any.whl (57.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page