EasyAI / Python-Charting-Indicators

This repository contains a python file with is used to calculate charting indicators.
MIT License
23 stars 14 forks source link

TypeError: cannot perform reduce with flexible type #1

Closed its0x4d closed 3 years ago

its0x4d commented 4 years ago

Hi i'm using get_MACD function and i use this function to get candles candles = bot.get_klines(symbol="BTCUSDT", interval=bot.KLINE_INTERVAL_1MINUTE) and this is my candles output: [[unixtime, open, high, low, close, volume], ...] and i get this error: TypeError: cannot perform reduce with flexible type

chrishsr commented 3 years ago

how do you call the get_MACD function? try: import technical_indicators as TI MACD = TI.getMACD(candles['close'])