TypeError: '>=' not supported between instances of 'NoneType' and 'int'See original GitHub issue
I’m getting this:
TypeError: '>=' not supported between instances of 'NoneType' and 'int'
stock_recommendation = TA_Handler( symbol=ticker, screener=screener, exchange=exchange, interval=interv, ) d_recommendation = stock_recommendation.get_analysis().summary
with ticker as
PLTR. It works for others
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
I’ll release the next version with a clear error message.
Quick fixed: modified ‘main.py’ from site-packages\tradingview_ta: IN line 80: def calculate(indicators, screener, symbol, exchange, interval): Replace line 85,86,87 with code:
recommend_oscillators = "NEUTRAL" recommend_summary = "NEUTRAL" recommend_moving_averages = "NEUTRAL" if indicators is not None: recommend_oscillators = Compute.Recommend(indicators) if indicators is not None: recommend_summary = Compute.Recommend(indicators) if indicators is not None: recommend_moving_averages = Compute.Recommend(indicators)