Skip to content

Add missing EqualWeightStrategy and create_strategy to base_strategy - #84

Open
0ywfe wants to merge 1 commit into
AI4Finance-Foundation:masterfrom
0ywfe:fix/missing-base-strategy-exports
Open

Add missing EqualWeightStrategy and create_strategy to base_strategy#84
0ywfe wants to merge 1 commit into
AI4Finance-Foundation:masterfrom
0ywfe:fix/missing-base-strategy-exports

Conversation

@0ywfe

@0ywfe 0ywfe commented Apr 18, 2026

Copy link
Copy Markdown

Related to #80

The web dashboard imports EqualWeightStrategy and create_strategy from base_strategy.py, but neither exists, so the dashboard crashes on load.

Added:

  • EqualWeightStrategy: extends BaseStrategy, splits weights equally across all tickers in the universe.
  • create_strategy(strategy_type, config): factory function mapping strategy type strings to their classes.

File changed: src/strategies/base_strategy.py

@0ywfe
0ywfe force-pushed the fix/missing-base-strategy-exports branch from b73484d to 121ad48 Compare April 18, 2026 20:50
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.

1 participant