init
This commit is contained in:
@@ -546,12 +546,13 @@ class AnalyzerSqlite:
|
|||||||
|
|
||||||
location = (max(stock_daily['close'][1:c_index]) - stock_daily['close'][0]) / max(stock_daily['close'][1:c_index])
|
location = (max(stock_daily['close'][1:c_index]) - stock_daily['close'][0]) / max(stock_daily['close'][1:c_index])
|
||||||
if location > 0.6:
|
if location > 0.6:
|
||||||
if stock_daily['stochastic_slow_k'][0] < 20 and (stock_daily['stochastic_slow_k'][1] < stock_daily['stochastic_slow_d'][1] and stock_daily['stochastic_slow_d'][0] < stock_monthly['stochastic_slow_k'][0]):
|
if stock_daily['stochastic_slow_k'][0] is not None and stock_daily['stochastic_slow_k'][1] is not None and stock_daily['stochastic_slow_d'][1] is not None and stock_daily['stochastic_slow_d'][0] is not None and stock_monthly['stochastic_slow_k'][0] is not None:
|
||||||
dir_code = "15"
|
if stock_daily['stochastic_slow_k'][0] < 20 and (stock_daily['stochastic_slow_k'][1] < stock_daily['stochastic_slow_d'][1] and stock_daily['stochastic_slow_d'][0] < stock_monthly['stochastic_slow_k'][0]):
|
||||||
dir_name = "daily_낙폭과대"
|
dir_code = "15"
|
||||||
final_status_count += 1
|
dir_name = "daily_낙폭과대"
|
||||||
status = "{:.2f}".format(location) + "_" + status
|
final_status_count += 1
|
||||||
self.writeFile(dir_code, dir_name, CODE, NAME, top, stock_daily, status)
|
status = "{:.2f}".format(location) + "_" + status
|
||||||
|
self.writeFile(dir_code, dir_name, CODE, NAME, top, stock_daily, status)
|
||||||
|
|
||||||
if len(stock_daily['volume']) > 5:
|
if len(stock_daily['volume']) > 5:
|
||||||
if stock_daily['envelope_lower'][0] is not None and stock_daily['envelope_lower'][1] is not None:
|
if stock_daily['envelope_lower'][0] is not None and stock_daily['envelope_lower'][1] is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user