def before_trading(context): pass
用途:
兼容before_trading_start(context, data)函数名
before_trading_start(context, data)
← 初始化函数init Bar回调函数handle_bar →