Skip to content

scan_stocks() not working pls help? #3

Description

@markmark1

----- Scanning portfolio for stocks to sell -----

----- Scanning watchlist for stocks to buy -----

Traceback (most recent call last):
File "main.py", line 259, in
scan_stocks()
File "main.py", line 248, in scan_stocks
cross = golden_cross(symbol, n1=50, n2=200, days=10, direction="above")
File "main.py", line 159, in golden_cross
if(direction == "above" and not five_year_check(stockTicker)):
File "main.py", line 131, 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