Files
DeepCoin/monitor_coin.py
dsyoon e218a8ea32 전 봉 BB·일목 조합 분석 및 simulation 단일 실행으로 통합
9개 간격(1~1440분) BB·일목 위치 특징을 3분 타임라인에 맞춰 분석하고,
discover로 매수·매도 규칙을 찾은 뒤 HTML 차트에 해당 체결만 표시한다.
simulation_1h.py를 simulation.py로 변경했으며, 파라미터 없이 실행하면
analyze→discover→차트가 한 번에 수행된다.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-29 01:20:36 +09:00

40 lines
1.0 KiB
Python

"""
WLD(월드코인) 실시간 모니터 — 전 봉 BB·일목 조합 (discovered_rules).
전략: strategy.py / rule_discovery.py
"""
from datetime import datetime
import time
from config import COIN_NAME, COOLDOWN_FILE, MONITOR_LOOP_SLEEP_SEC, SYMBOL
from monitor import Monitor
class MonitorCoin(Monitor):
"""WLD 모니터링 및 매매 실행."""
def __init__(self, cooldown_file: str = COOLDOWN_FILE) -> None:
super().__init__(cooldown_file)
def monitor_wld(self) -> None:
"""일봉·1시간 추세 + 3분 신호로 현물 매수/매도."""
balances = self.load_balances_dict()
print(
"[{}] {} ({})".format(
datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
COIN_NAME,
SYMBOL,
)
)
self.process_wld_mtf(SYMBOL, balances=balances)
def run_schedule(self) -> None:
while True:
self.monitor_wld()
time.sleep(MONITOR_LOOP_SLEEP_SEC)
if __name__ == "__main__":
MonitorCoin().run_schedule()