You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After buy scan:
Traceback (most recent call last):
File "main.py", line 271, in
scan_stocks()
File "main.py", line 259, in scan_stocks
cross = golden_cross(symbol, n1=50, n2=200, days=10, direction="above")
File "main.py", line 166, in golden_cross
if(direction == "above" and not five_year_check(stockTicker)):
File "main.py", line 138, in five_year_check
if ((pd.Timestamp("now") - pd.to_datetime(list_date)) < pd.Timedelta("5 Y")):
TypeError: unsupported operand type(s) for -: 'Timestamp' and 'NoneType'
The text was updated successfully, but these errors were encountered:
I never had this error until one of the stocks on my watchlist triggered it, I then tried a couple things and couldnt get a fix for it. So I ended up removing the five year check in total.
I never had this error until one of the stocks on my watchlist triggered it, I then tried a couple things and couldnt get a fix for it. So I ended up removing the five year check in total.
After buy scan:
Traceback (most recent call last):
File "main.py", line 271, in
scan_stocks()
File "main.py", line 259, in scan_stocks
cross = golden_cross(symbol, n1=50, n2=200, days=10, direction="above")
File "main.py", line 166, in golden_cross
if(direction == "above" and not five_year_check(stockTicker)):
File "main.py", line 138, in five_year_check
if ((pd.Timestamp("now") - pd.to_datetime(list_date)) < pd.Timedelta("5 Y")):
TypeError: unsupported operand type(s) for -: 'Timestamp' and 'NoneType'
The text was updated successfully, but these errors were encountered: