2 ms·
You seem to have got it backwards: from https://github.com/maxbbraun/trump2cash/blob/02e66eddc4ea0666e4be1abec302cad7c48f2053/trading.py#L153-L161 https://gith
by slig 10y ago
You seem to have got it backwards:
from https://github.com/maxbbraun/trump2cash/blob/02e66eddc4ea0666e4be1abec302cad7c48f2053/trading.py#L153-L161 https://github.com/maxbbraun/trump2cash/blob/02e66eddc4ea066...
# Determine bull or bear based on sentiment direction.
if sentiment > 0:
strategy["action"] = "bull"
strategy["reason"] = "positive sentiment"
return strategy
else: # sentiment < 0
strategy["action"] = "bear"
strategy["reason"] = "negative sentiment"
return strategy