Skip to content

Conversation

@JosueNina
Copy link
Collaborator

This PR adds support for the --parameter option to both lean backtest and lean cloud backtest

Examples:
lean backtest "My Project" --parameter param1 123 --parameter param2 123.34
lean cloud backtest "My Project" --parameter param1 123 --parameter param2 123.34

For local backtests, the CLI parameters are used and any parameters defined in config.json are ignored

Closes #590

@JosueNina JosueNina force-pushed the feature-590-add-parameter-option-to-backtest-command branch from 7d1fe0d to 52d394b Compare October 2, 2025 09:08
@JosueNina JosueNina force-pushed the feature-590-add-parameter-option-to-backtest-command branch from 66a2d76 to ba19573 Compare October 2, 2025 18:24
Copy link
Collaborator

@jhonabreul jhonabreul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@JosueNina JosueNina force-pushed the feature-590-add-parameter-option-to-backtest-command branch from c70e89a to 0321851 Compare October 2, 2025 22:05
@JosueNina JosueNina force-pushed the feature-590-add-parameter-option-to-backtest-command branch from d339957 to 294a671 Compare October 3, 2025 21:59
Copy link
Member

@Martin-Molinero Martin-Molinero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Martin-Molinero Martin-Molinero merged commit 79e421b into QuantConnect:master Oct 6, 2025
28 checks passed
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.

Adds parameter option to backtest Commands

3 participants