num = -1
close = history_bars(\'RB00\',100,\'1d\',\'close\',include_now=True)
high = history_bars(\'RB00\',100,\'1d\',\'high\',include_now=True)
low = history_bars(\'RB00\',100,\'1d\',\'low\',include_now=True)
will = talib.WILLR(high,low,close,timeperiod=14)
print(will[num])
注:在金融领域就有这样一个标准库叫TAlib集成了几乎所有你会使用到的那些基于k线分析的指标。