Skip to content

unsupported operant Timestamp and NoneType #15

Description

@zyxelenator

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions