MCPcopy Create free account
hub / github.com/AI4QTrading/R2-SAC

github.com/AI4QTrading/R2-SAC @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
88 symbols 218 edges 13 files ⚖ GPL-3.0 27 documented · 31% updated 2y ago★ 38

Browse by type

Functions 73 Types & classes 15
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

R2-SAC

a novel framework for stock portfolio trading that employs a 'Relaxation and Refinement' strategy to boost the Soft Actor-Critic (SAC) agent 1. PLEASE NOTE: Find the basic version of the Hawkes scripts, which can be founded in the https://github.com/HongtengXu/PoPPy/

  1. TCN_GAT_zz1000.py is the training program for TCN and GAT, which introduced the scripts model.py for TCN model and gat.py for GAT model.

  2. SAC_zz1000.py is the traning program for SAC model, which introduced the scripts StockEnv_zz1000.py for trading environment and StcokAgent.py for agent model.

  3. To run R2-SAC, you should rewrite the test procedure for your trading strategy and get the hawkes scripts from the https://github.com/HongtengXu/PoPPy/.

  4. For some suggetions, we built AI4QTrading-patch-1 branch to help reproducing the strategy. And for commercial reason, some data need to be downloaded from the public data source.

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 59
Class 15
Function 14

Languages

Python100%

Modules by API surface

stock_dataset_havkes_zz1000.py12 symbols
model.py12 symbols
StockModel.py12 symbols
replay_memory_sacduiqi.py11 symbols
gat.py9 symbols
StockEnv_zz1000.py9 symbols
utils.py7 symbols
util.py5 symbols
StockAgent.py5 symbols
TCN_GAT_zz1000.py4 symbols
SAC_zz1000.py2 symbols

For agents

$ claude mcp add R2-SAC \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page