Add initial implementation of backtesting framework with CLI interface. Introduce core modules for data loading, trade management, performance metrics, and logging. Include Supertrend indicator calculations and slippage estimation. Update .gitignore to exclude logs and CSV files.
This commit is contained in:
18
config.py
Normal file
18
config.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from __future__ import annotations
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import Sequence
|
||||
|
||||
@dataclass
|
||||
class CLIConfig:
|
||||
start: str
|
||||
end: str
|
||||
timeframe_minutes: int
|
||||
timeframes_minutes: list[int] | None
|
||||
stop_losses: Sequence[float]
|
||||
exit_on_bearish_flip: bool
|
||||
csv_path: Path | None
|
||||
out_csv: Path
|
||||
log_dir: Path
|
||||
fee_bps: float
|
||||
slippage_bps: float
|
||||
Reference in New Issue
Block a user