【发布时间】:2022-07-17 19:47:51
【问题描述】:
我正在尝试(在 Python 中)实现 SuperTrend 指标,如果您点击 TradingView 选项卡并添加它here,您可以在 Binance 网站上看到它here
到目前为止,我已经尝试了多种计算方法以及 TA-Lib 和 pandas-ta。这些都与 Binance 版本完全相同。我错过了什么?
我从封闭的蜡烛数据(带 X 参数的 Klines)中提供指标,其中包含 1000 个样本,如下所示:
st_df = ta.supertrend(high=ticker_df['high'].tail(1000),\
low=ticker_df['low'].tail(1000), close=ticker_df['price'].tail(1000), \
length=10, multiplier=3)
我的数据框很好 - 我得到了完全相同的(如 Binance 所示)EMA 和其他带有 pandas-ta 的指标。
【问题讨论】:
标签: python pandas algorithmic-trading pandas-ta