-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qlib simulator refinement #1244
Conversation
Function used to get the inner level executor. | ||
exchange_config (ExchangeConfig): | ||
Configuration used to create the Exchange instance. | ||
strategy_config (dict): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docstring format does not conform numpy doc format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please review the latest version and provide some details?
qlib/rl/integration/feature.py
Outdated
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest moving this file into order_execution/integration.py
.
Okay to keep it for now.
qlib/rl/order_execution/state.py
Outdated
|
||
class SAOEStateAdapter: | ||
""" | ||
Maintain states of the environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add some explanations of "what" should be adapted and "how".
qlib/rl/strategy/single_order.py
Outdated
def __init__( | ||
self, | ||
order: Order, | ||
trade_range: TradeRange, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think trade_range
can be None?
Description
is_collecting
inner_strategy.post_upper_level_exe_step()
in NestedExecutorpost_upper_level_exe_step()
methodSAOEStrategy
, strategies that use SAOEState as states. MakeDecomposedStrategy
a subclass ofSAOEStrategy
.StateMaintainer
insideSAOEStrategy
. Now eachSAOEStrategy
can have its own state maintainer, so it can maintain its own state.qlib/rl/from_neutrader
. Move all necessary components intosimulator_qlib
.qlib/rl/strategy
qlib/rl/order_execution/objects
qlib/rl/order_execution/state
Motivation and Context
How Has This Been Tested?
pytest qlib/tests/test_all_pipeline.py
under upper directory ofqlib
.Screenshots of Test Results (if appropriate):
Types of changes