From b2d61d020c31a80dfe0c479505092c4c82b75f5a Mon Sep 17 00:00:00 2001 From: dsyoon Date: Tue, 30 Jan 2024 20:20:31 +0900 Subject: [PATCH] init --- stock/analysis/Common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock/analysis/Common.py b/stock/analysis/Common.py index 5ecfc4c..8b3c962 100644 --- a/stock/analysis/Common.py +++ b/stock/analysis/Common.py @@ -620,7 +620,7 @@ class Common: if len(stock['trend']) < 1: return check - if (stock['avg60'][0] < stock['avg20'][0] and stock['avg5'][0]) and (stock['avg60'][0] < stock['avg20'][0] and stock['avg5'][0]): + if not (stock['avg60'][1] < stock['avg20'][1] and stock['avg5'][1]) and (stock['avg60'][0] < stock['avg20'][0] and stock['avg5'][0]): if stock['upper'][0] < stock['avg5'][0]: check = True