❓ Questions and Help
I downloaded cn_data v2 (.bin data, update to 2021-06-11), and I arranged my .csv data by akshare from sina.
我下载了v2版本的数据(更新到2021-06-11), 另外我通过akshare准备了2021-06-12到今天的csv数据。
- The example data use "close" and "adjclose"
通过示例代码下载的数据包含close和adjclose这两项
(python scripts/get_data.py csv_data_cn --target_dir ~/.qlib/csv_data/cn_data)
while the doc suggests adjusted price and factor
文档里建议使用调整后的价格和复权因子。
(https://qlib.readthedocs.io/en/latest/component/data.html?highlight=adjusted#converting-csv-format-into-qlib-format).
which format should I use? The adjusted price I guess it should be "qfq", Not "hfq" and "bfq", and the factor should also be "qfq-factor"?
我应该使用哪种格式比较好?调整的价格应该是前复权,而不是后复权或者不复权, 复权因子也同样是前复权因子?
-
Since I have downed the cn_data, I just arranged "2021-06-12" to today .csv data, after transformed to .bin data, how to merge the two .bin data? The rested columns, like dividends, splits, just let it alone, do not deal with them?
自己准备的数据转换成bin格式后(2021-06-12到今天),如何和下载的bin格式数据(2021-06-11之前)合并到一起呢?
另外下载的数据含有其他一些数据列,例如dividends, splits, 这些多余的列的bin数据不需要处理吧?
-
Jointquant used "Dynamic restoration mode" in backtest, which is to use the real price at that time buy and sell, and use the qfq price at that time. Does qlib also use this backtest mode?
像其他家平台,回测使用的动态复权(真实价格)模式:
回测时,使用当天的真实价格进行买卖;
回测时,如果需要使用前复权价格,会以当天作为起始(当天复权因子为1),而不是以今天2021-10-10复权因子为1。
我想知道qlib的回测也是这种模式吗?如果不是,可以具体说说吗?
英文表述可能不准确,请以中文为准,谢谢。
Thank you in advance.
❓ Questions and Help
I downloaded cn_data v2 (.bin data, update to 2021-06-11), and I arranged my .csv data by akshare from sina.
我下载了v2版本的数据(更新到2021-06-11), 另外我通过akshare准备了2021-06-12到今天的csv数据。
通过示例代码下载的数据包含close和adjclose这两项
(python scripts/get_data.py csv_data_cn --target_dir ~/.qlib/csv_data/cn_data)
while the doc suggests adjusted price and factor
文档里建议使用调整后的价格和复权因子。
(https://qlib.readthedocs.io/en/latest/component/data.html?highlight=adjusted#converting-csv-format-into-qlib-format).
which format should I use? The adjusted price I guess it should be "qfq", Not "hfq" and "bfq", and the factor should also be "qfq-factor"?
我应该使用哪种格式比较好?调整的价格应该是前复权,而不是后复权或者不复权, 复权因子也同样是前复权因子?
Since I have downed the cn_data, I just arranged "2021-06-12" to today .csv data, after transformed to .bin data, how to merge the two .bin data? The rested columns, like dividends, splits, just let it alone, do not deal with them?
自己准备的数据转换成bin格式后(2021-06-12到今天),如何和下载的bin格式数据(2021-06-11之前)合并到一起呢?
另外下载的数据含有其他一些数据列,例如dividends, splits, 这些多余的列的bin数据不需要处理吧?
Jointquant used "Dynamic restoration mode" in backtest, which is to use the real price at that time buy and sell, and use the qfq price at that time. Does qlib also use this backtest mode?
像其他家平台,回测使用的动态复权(真实价格)模式:
回测时,使用当天的真实价格进行买卖;
回测时,如果需要使用前复权价格,会以当天作为起始(当天复权因子为1),而不是以今天2021-10-10复权因子为1。
我想知道qlib的回测也是这种模式吗?如果不是,可以具体说说吗?
英文表述可能不准确,请以中文为准,谢谢。
Thank you in advance.