pybroker icon indicating copy to clipboard operation
pybroker copied to clipboard

设置了ctx.score的值后,买入的具体原则是怎样的,这个ctx.score具体作用和影响是什么呢

Open kachadx opened this issue 9 months ago • 0 comments

def rotate(ctx: ExecContext): if ctx.long_pos(): if ctx.symbol not in pyb.param('top_symbols'): ctx.sell_all_shares() else: target_size = pyb.param('target_size') ctx.buy_shares = ctx.calc_target_shares(target_size) ctx.score = ctx.indicator('roc_20')[-1] 设置了ctx.score的值后,买入的具体原则是怎样的,这个ctx.score具体作用和影响是什么呢

kachadx avatar May 09 '24 12:05 kachadx