5 일선 반등

This commit is contained in:
monoid 2023-11-01 01:30:35 +09:00
parent 1f83b6abf9
commit 7e5853b480
2 changed files with 5 additions and 5 deletions

6
gen.py
View File

@ -216,6 +216,9 @@ def collect(data: DataStore, collector: OutputCollector, corp: database.KRXCorp
if (d60[nday + 1] < d60[nday]): if (d60[nday + 1] < d60[nday]):
collector.collect("정배열60", corp, stock.index[nday]) collector.collect("정배열60", corp, stock.index[nday])
if d5[nday + 2] >= d5[nday + 1] and d5[nday + 1] <= d5[nday]:
collector.collect("60일 5일선 반등", corp, stock.index[nday])
if (d20[nday + 1] < d20[nday]): if (d20[nday + 1] < d20[nday]):
collector.collect("정배열20", corp, stock.index[nday]) collector.collect("정배열20", corp, stock.index[nday])
if (D240BiggerThanYesterDay): if (D240BiggerThanYesterDay):
@ -247,9 +250,6 @@ def collect(data: DataStore, collector: OutputCollector, corp: database.KRXCorp
if (d45[2+nday] > d45[1+nday] and d45[1+nday] < d45[nday]): if (d45[2+nday] > d45[1+nday] and d45[1+nday] < d45[nday]):
collector.collect("45일선 반등",corp, stock.index[nday]) collector.collect("45일선 반등",corp, stock.index[nday])
if(d60[10+nday] <= d60[nday]):
collector.collect("60일 10일 반등", corp, stock.index[nday])
if(d20[2+nday] > d20[1+nday] and d20[1+nday] < d20[nday]): if(d20[2+nday] > d20[1+nday] and d20[1+nday] < d20[nday]):
collector.collect("20일선 반등",corp, stock.index[nday]) collector.collect("20일선 반등",corp, stock.index[nday])

View File

@ -52,8 +52,8 @@
- name: 뭉침1% 120선 상승 - name: 뭉침1% 120선 상승
description: 뭉침1% 120선 상승 description: 뭉침1% 120선 상승
- name: 60일 10일 반등 - name: 60일 5일선 반등
description: 60일선이 10일 전보다 크면 description: 60일선이 상향, 5일 반등
- name: RSI 30 이하 - name: RSI 30 이하
description: RSI 14일 이 30이하 description: RSI 14일 이 30이하
- name: d20d5돌파 - name: d20d5돌파