Skip to content

Add algorithm trading example. #1587

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

lwwang1995
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the waiting for triage Cannot auto-triage, wait for triage. label Jul 7, 2023
return spaces.Discrete(len(self.action_values))

def interpret(self, state: SAATState, action: int) -> str:
assert 0 <= action < len(self.action_values)
Copy link
Contributor

Choose a reason for hiding this comment

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

state is unused here

@@ -0,0 +1,62 @@
simulator:
Copy link
Contributor

Choose a reason for hiding this comment

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

Add readme like this:
examples/rl_order_execution/README.md

Copy link

@Abhijais4896 Abhijais4896 left a comment

Choose a reason for hiding this comment

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

class Task: """ stock_id : str cash : float start_time : pd.Timestamp closed start time for order trading end_time : pd.Timestamp closed end time for order trading factor : float presents the weight factor assigned in Exchange() """ stock_id: str cash: float start_time: pd.Timestamp end_time: pd.Timestampclass OrderHelper: """
‎qlib/rl/algorithm_trading/init.pyCopy file name to clipboard+25Lines changed: 25 additions & 0 deletionsViewedComment on this fileOriginal file line numberDiff line numberDiff line change@@ -0,0 +1,25 @@# Copyright (c) Microsoft Corporation.# Licensed under the MIT License.from .interpreter import ( FullHistoryATStateInterpreter, CategoricalATActionInterpreter,)from .network import Recurrentfrom .policy import AllOne, PPOfrom .reward import LongShortRewardfrom .simulator_simple import SingleAssetAlgorithmTradingSimplefrom .state import SAATMetrics, SAATState__all__ = [ "FullHistoryATStateInterpreter", "CategoricalATActionInterpreter", "Recurrent", "AllOne", "PPO", "LongShortReward", "SingleAssetAlgorithmTradingSimple", "SAATMetrics", "SAATState",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for triage Cannot auto-triage, wait for triage.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants