# 开盘前函数

def before_trading(context):
    pass
1
2

用途:

  • 每个交易日开盘前准备数据。
  • 重置当日临时变量。
  • 生成当日候选股票池。

兼容before_trading_start(context, data)函数名