Alpha 信号
原能力
登记有依据的超额收益信号,区分候选信号、失效状态与获准用途。(合同附件 R7 12.4)
首选项目
Qlib(MIT)。 Qlib
匹配范围
Alpha 组件与因子结果曲线提供检验基元。
源码
Qlib · class Alpha158(
qlib/contrib/data/handler.py · 98–111 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
class Alpha158(DataHandlerLP):
def __init__(
self,
instruments="csi500",
start_time=None,
end_time=None,
freq="day",
infer_processors=[],
learn_processors=_DEFAULT_LEARN_PROCESSORS,
fit_start_time=None,
fit_end_time=None,
process_type=DataHandlerLP.PTYPE_A,
filter_pipe=None,
inst_processors=None,
- # Copyright (c) Microsoft Corporation.
Alphalens · def factor_information_coefficient(
alphalens/performance.py · 28–41 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def factor_information_coefficient(factor_data,
group_adjust=False,
by_group=False):
"""
Computes the Spearman Rank Correlation based Information Coefficient (IC)
between factor values and N period forward returns for each period in
the factor index.
Parameters
----------
factor_data : pd.DataFrame - MultiIndex
A MultiIndex DataFrame indexed by date (level 0) and asset (level 1),
containing the values for a single alpha factor, forward returns for
each period, the factor quantile/bin that factor value belongs to, and
- # Copyright 2017 Quantopian, Inc.
实现与验收要点
原信号定义、观察时点、接纳和提示边界。