vectorbt
vectorbt copied to clipboard
pandas -ta's TTM_TREND gives ValueError: Cannot reshape a 3-dimensional array to 2 dimensions
TTMIndicator = vbt.IndicatorFactory.from_pandas_ta('TTM_TREND')
ttm = TTMIndicator.run(ohlcv['High'], ohlcv['Low'], ohlcv['Close'], 6)
Above code gives below error:
ValueError: Cannot reshape a 3-dimensional array to 2 dimensions
Can you share entire code