Skip to content

Conversation

@evanzd
Copy link
Contributor

@evanzd evanzd commented Dec 17, 2021

Support optimization based strategy.

Description

This PR is an initial implementation to close the loop of planning-based portfolio optimization in Qlib workflow. Specifically, we implement the qlib.contrib.strategy.signal_strategy.EnhancedIndexingStrategy to support usings building a risk indexing product.

Motivation and Context

This PR is a follow-up of #280. Major changes include:

  • Implement EnhancedIndexingStrategy under Qlib's new strategy interface
  • Improve EnhancedIndexingOptimizer
  • Add example to use this strategy under examples/portfolio

How Has This Been Tested?

This PR has been tested by qrun examples/portfolio/config_enhanced_indexing.yaml (need to follow examples/portfolio/README.md to prepare data first. )

Screenshots of Test Results (if appropriate):

image

Types of changes

  • Add new feature

@evanzd evanzd marked this pull request as ready for review December 19, 2021 02:15
date = price_all.index[i]
ref_date = price_all.index[i - T + 1]

print(date)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Discussions about the data preparation

Co-authored-by: you-n-g <[email protected]>
@you-n-g you-n-g merged commit 1b8f0b4 into microsoft:main Dec 28, 2021
@you-n-g you-n-g added the enhancement New feature or request label Jan 12, 2022
qianyun210603 pushed a commit to qianyun210603/qlib that referenced this pull request Mar 23, 2023
* support optimization based strategy

* fix riskdata not found & update doc

* refactor signal_strategy

* add portfolio example

* Update examples/portfolio/prepare_riskdata.py

Co-authored-by: you-n-g <[email protected]>

* fix typo

Co-authored-by: you-n-g <[email protected]>

* fix typo

Co-authored-by: you-n-g <[email protected]>

* update doc

* fix riskmodel doc

Co-authored-by: you-n-g <[email protected]>

Co-authored-by: you-n-g <[email protected]>
you-n-g added a commit to you-n-g/qlib that referenced this pull request Aug 16, 2025
microsoft#754)

* feat: Add reasoning_effort parameter to LiteLLMAPIBackend and LLMSettings

* style: Use consistent quotation marks for reasoning_effort literals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants