近期热点量化百科策略分享精品课程专题报告AI量化知识树PLUS会员问答交流公告&内推

怎么调用因子

WITH daily_returns AS (
    SELECT instrument, date, (close - m_lag(close, 1)) / m_lag(close, 1) AS daily_return
    FROM cn_stock_bar1d
    WHERE date >= '2022-01-01'
)
SELECT instrument, date, POWER(m_stddev(daily_return, 20), 2) * 250 AS annualized_variance
FROM daily_returns
ORDER BY date, instrument;


这个是20日年化方差  
我在策略中改怎么调用

\

文档