kernc / kernc/backtesting.py

Backtest multiple instruments at once

Open
#20 19 comments 23 reactions 0 assignees View on GitHub
API enhancement
Dominant language
Python
Stars
9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Im trying to backtest a pairs trading strategy but i don't know how to add multiple data frames to the backtester in order to add positions to each instruments according to the hedge ratio.

Is there a way to do this?

Contributor guide

Open the contributing guide

Research direction

The issue does not identify any files, tests, or entry points. First determine how the backtester currently accepts market data and represents positions, then define the required multi-instrument behavior and tests for applying hedge-ratio-based positions to each instrument.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.