Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.41 KB

File metadata and controls

54 lines (40 loc) · 1.41 KB

hurst-pullback

Reproducible Python implementation of the Hurst-Regime Pullback Strategy for index futures (ES, NQ, EMD, YM) — QuantConnect-ready research framework.

Development

Quick setup using UV, make sure you have installed it before doing any of the following steps:

  1. Create the virtual environment and install dependencies
uv sync

This creates .venv, installs required packages and ensures the correct Python version.

  1. Activate the environment
  • PowerShell (Windows)
.\.venv\Scripts\Activate.ps1
  • Command Prompt (Windows)
.\.venv\Scripts\activate.bat
  • macOS / Linux
source .venv/bin/activate

Dependencies

Python dependencies and tools are managed with UV. This is how to install a library (UV will add this to the dependencies list automatically).

uv add pandas  # code dependencies
uv add --dev black # development tools

Configs

All flags and input parameters are initialized in the file base.yaml. You need to import the file, this is an example:

import yaml

yaml_path = Path().resolve().parent / "configs" / "base.yaml"
with open(yaml_path, "r") as f:
    config = yaml.safe_load(f)

Then you can use initialized variables using this syntax:

config["data"]["clean_NQ"]  # this line select the path of "clean_NQ" which is part of the subset data in the base file