Skip to content

fix: thread freq parameter from backtest() through to Account#2176

Open
EdenRochmanSharabi wants to merge 1 commit intomicrosoft:mainfrom
EdenRochmanSharabi:fix/backtest-account-freq
Open

fix: thread freq parameter from backtest() through to Account#2176
EdenRochmanSharabi wants to merge 1 commit intomicrosoft:mainfrom
EdenRochmanSharabi:fix/backtest-account-freq

Conversation

@EdenRochmanSharabi
Copy link
Copy Markdown

Fixes #1846. The freq parameter was hardcoded to 'day' in Account creation. Now threaded from backtest config.

)

Previously create_account_instance() did not accept a freq parameter,
so Account always initialized with the default freq='day' regardless
of the actual backtest frequency. Add freq parameter to
create_account_instance(), get_strategy_executor(), backtest(), and
collect_data(), threading it through to Account() construction.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@EdenRochmanSharabi
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

It use default param freq='day' for create Account obj in Backtest.

1 participant