Skip to content



Requirement: Python 3.8+

python --version
# Python 3.10.8

Create a directory for your strategies:

mkdir strategies
cd strategies

Create a Python virtual environment and activate it:

python -m venv .venv
source .venv/bin/activate

Install Cipher:

pip install cipher-bt

Install optional dependencies:

pip install finplot  # finplot or mplfinance is required for plotting
pip install yfinance
# pip install cipher-bt[finplot,yfinance]

Initialize the directory and create a strategy:

cipher init
cipher new my_strategy

Run the strategy:


Google Colaboratory

!pip install 'cipher-bt[mplfinance]'