代码: ```python3 import talib as tl tl.LINEARREG(df['Close'].values, 10) #线性回归 ``` 结果和TradingVeiw计算的一致 转自:https://sumubai.cc/post/31