?
?
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線分析的指標。
?
?