pip install uv
uv venv
uv sync
It's recommended to use pypy to do faster simulations
uv python install pypy@3.11
uv venv --python pypy@3.11
uv sync -p pypy@3.11
Add pair to simulator/settings.py and import price data
python manage.py import_data {pair_name} (i.e. BTCUSDT)
PDF will be added with more detailed explanation
-
Change parameters in python manage.py for
calculatecommand -
Run simulations
python manage.py calculate
Results automatically will be saved in results folder.
Script ran for every pair is stored in simulator/pairs directory to save parameters used in calculations
export PYTHONPATH="${PYTHONPATH}:/path/to/your/directory"
python simulator/pairs/btcusd/calculate_a.py