This commit is contained in:
dsyoon
2023-02-25 00:02:03 +09:00
parent 8dc4928ad8
commit ae0d0ce315

View File

@@ -180,7 +180,8 @@ class HTS_Stocks (HTS):
print("%5d: %8s, %-50s" % (idx, stock_code, stock_name))
slow_k_week, p_slow_k_week, slow_k_month, p_slow_k_month = self.getSlowK(stock_code)
if (slow_k_week < 0 or 40 < slow_k_week or slow_k_month < 0 or 40 < slow_k_month) or (slow_k_week < p_slow_k_week or slow_k_month < p_slow_k_month):
if 0 < slow_k_week < 50 and 0 < slow_k_month < 50:
if ((20 < slow_k_week and p_slow_k_week < slow_k_week) or (20 < slow_k_month and p_slow_k_month < slow_k_month)):
continue
stock = self.stockStatus.fetchLastData(self.cursor_stock, stock_code, n)