qlib icon indicating copy to clipboard operation
qlib copied to clipboard

How to create a new Stock Pool (Market)

Open Len1925 opened this issue 10 months ago • 3 comments

❓ Questions and Help

How can I create a new Stock Pool (Market) in Qlib and define a specific set of stocks? For example, how can I classify certain stocks under a category similar to CSI 300?" I have checked the documentation, but it seems that there is no relevant information. If there is, could you please provide the exact link? Thank you!

Len1925 avatar Feb 15 '25 16:02 Len1925

Hi, @Len1925 The documentation you need is here, maybe this one will help you too.

SunsetWolf avatar Mar 11 '25 08:03 SunsetWolf

Hi, @Len1925 The documentation you need is here, maybe this one will help you too.

Thank you for your response! Following the link provided, I have successfully converted the collected custom data from CSV format to Qlib format. However, when I attempted to process the data and calculate market information using the formula 'Mask($close/Ref($close,1)-1, "sh000906")', I encountered an issue. How should I specify the market information for the custom data?Such as "sh000906". Thank you!

Len1925 avatar May 20 '25 01:05 Len1925

Hi, @Len1925 Index data is treated the same as regular stocks. First, you need to obtain the raw data, then normalize it, and finally dump it into a bin file.

SunsetWolf avatar Sep 18 '25 08:09 SunsetWolf