Skip to content

Invalid Filename on Windows Due to Colon (:) in DATETIME_FORMAT_BACKTESTINGΒ #290

@Willdu69

Description

@Willdu69

Description

On Windows, file creation fails because DATETIME_FORMAT_BACKTESTING = "%Y-%m-%d:%H:%M" (in file constant.py in investing_algorithm_framework/domain) produces filenames with : (e.g., OHLCV_BTC-EUR_BINANCE_2h_2023-12-15:06:00_2025-01-01:00:00.csv). Colons are not allowed in Windows filenames.

Steps to Reproduce

  1. Run the framework on Windows with backtesting enabled.
  2. Observe file creation failure.

Suggested Fix

Use a colon-free format (e.g., "%Y-%m-%d_%H-%M") or sanitize filenames to remove invalid characters.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions