truerange = pd.concat(pricediffs, axis=1)这句报错File "strategy.py", line 58 truerange =…
Jump to turn (8)
- 1truerange = pd.concat(pricediffs, axis=1)这句报错File "strategy.py", line 58 trueran
- 2用中文
- 3baseprice['close'].values这是什么类型
- 4baseprice[‘close’].values运行错误:AttributeError: 'numpy.ndarray' object has no attr
- 5truerange=pd.concat(pricediffs, axis=1)报错TypeError: cannot concatenate a non-NDF
- 6baseprice = history(context.security, ['close','high','low'], 100, '1d', False,
- 7talib库是否有supertrend指标
- 8saret = talib.SAREXT(data['high'], data['low'])报错TypeError: Argument 'high' has
- User
true_range = pd.concat(price_diffs, axis=1)这句报错File "strategy.py", line 58 true_range = pd.concat(price_diffs, axis=1)
TabError:inconsistent use of tabs and spaces in indentation
- Assistant
This error indicates that there is inconsistent use of tabs and spaces for indentation in the code. To fix this, you need to ensure that you are consistently using either tabs or spaces for indentation throughout your code.
For example, make sure to use either tabs or spaces when indenting lines of code in the same block. Mixing tabs and spaces can lead to issues with interpreting the indentation correctly, which can result in errors like the one you are seeing.
You can choose either tabs or spaces based on your preference, but it is important to stick to one approach consistently for all the indentation in your code.
- User