GT MTF 프로필·캘리브레이션과 04 매칭/시뮬/실거래 파이프라인을 추가한다.

3분~일봉 GT 타점 분석(03c), leg 체결 순서 수정, 총자산 90% 검증 루프,
walk-forward Go/No-Go 시뮬, monitor·live_trader 및 reference 문서를 포함한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-31 11:27:50 +09:00
parent b52d61b777
commit 2cb67c42b3
47 changed files with 5956 additions and 209 deletions

View File

@@ -1,9 +1,19 @@
# DeepCoin — WLD MTF 분석·정답·운영
빗썸 KRW-WLD. **1, 3, 5, 10, 15, 30, 60, 240, 1440분** 봉을 적재하고,
Ground Truth·기술적 분석·(예정) 규칙 매칭·1분 모니터까지 **단계별 폴더**로 관리합니다.
Ground Truth·기술적 분석·규칙 매칭·알림·**실거래(선택)**까지 단계별로 관리합니다.
## 로드맵
## 남은 작업 순서
| 순서 | 단계 | 실행 |
|------|------|------|
| 1 | 시뮬레이션 | `python scripts/04_simulation_report.py` |
| 2 | 문서화 | `docs/reference/SIMULATION.md` 등 |
| 3 | 오픈(실거래) | `python scripts/06_execute_live.py` |
| 4 | 1~2주 검증 | 실계좌 기록 |
| 5 | 지속 거래 | 06 상시 |
## 파이프라인 CLI
| 단계 | 목적 | 실행 |
|------|------|------|
@@ -11,8 +21,10 @@ Ground Truth·기술적 분석·(예정) 규칙 매칭·1분 모니터까지 **
| 02 Ground Truth | 매수·매도 정답 타점 | `python scripts/02_ground_truth.py` |
| 03 분석 | 8TF 기술 지표 enrich | `python scripts/03_analyze_enrich.py` |
| 03b 분석 | GT 타점 MTF 스냅샷 | `python scripts/03_analyze_trades.py` |
| 04 매칭 | GT 근접 규칙 선택 (예정) | `python scripts/04_match_rules.py` |
| 05 운영 | 차트·1분 모니터 | `scripts/05_chart_*.py`, `05_run_monitor.py` |
| 04 매칭 | GT 프로필 + leg_gt EV | `python scripts/04_match_rules.py` |
| 04 시뮬 | Go/No-Go 리포트 | `python scripts/04_simulation_report.py` |
| 05 알림 | 텔레그램 (주문 없음) | `python scripts/05_run_monitor.py` |
| 06 실거래 | 빗썸 주문 (`LIVE_TRADING_ENABLED=1`) | `python scripts/06_execute_live.py` |
상세: [docs/reference/ROADMAP.md](docs/reference/ROADMAP.md)
@@ -27,8 +39,8 @@ DeepCoin/
│ ├── data/ # 01 다운로드
│ ├── ground_truth/ # 02 정답 타점
│ ├── analysis/ # 03·03b 지표·스냅샷
│ ├── matching/ # 04 규칙 매칭 (예정)
│ └── ops/ # 05 모니터·차트
│ ├── matching/ # 04·시뮬
│ └── ops/ # 05 알림·06 실거래
├── data/ # coins.db, ground_truth/, ops/
└── docs/
├── reference/ # 가이드·기법 명세 (Git)
@@ -56,6 +68,8 @@ python scripts/01_download.py
python scripts/02_ground_truth.py
python scripts/03_analyze_enrich.py
python scripts/03_analyze_trades.py
python scripts/03_gt_mtf_profile.py # GT 타점 3분~일봉 프로필 (04 입력)
python scripts/04_match_rules.py
python scripts/05_chart_truth.py
```
@@ -69,6 +83,12 @@ python scripts/05_chart_truth.py
| `CHART_LOOKBACK_DAYS` | 기본 365일 |
| `DOWNLOAD_MONTHS` | 3분 이상 봉 12개월 |
| `MONITOR_LOOP_SLEEP_SEC` | 05 모니터 루프 주기(초) |
| `MONITOR_ALERT_KRW_AMOUNT` | 규칙 알림 참고 금액(원, 매수·잔고 미조회 시) |
| `MONITOR_ALERT_COOLDOWN_MIN` | 동일 규칙 텔레그램 재알림 최소 간격(분, 기본 180) |
| `MATCH_HOLDOUT_RATIO` | 홀드아웃(최근) 구간 비율 (기본 0.15) |
| `MATCH_MONITOR_MAX_PER_SIDE` | 05·06 감시 규칙 수 (매수·매도 각, 기본 1) |
| `LIVE_TRADING_ENABLED` | 1일 때만 06 실주문 (기본 0) |
| `LIVE_ORDER_KRW` / `LIVE_DAILY_KRW_MAX` | 1회·일 주문 한도 |
## 산출물
@@ -80,7 +100,10 @@ python scripts/05_chart_truth.py
| `docs/02_ground_truth/wld_ground_truth_chart.html` | 정답 차트 |
| `docs/03_analysis/latest/*_latest.csv` | 간격별 최근 봉 전 기법 |
| `docs/03_analysis/general_analysis_trades.csv` | GT 타점 MTF 스냅샷 |
| `docs/04_matching/matched_rules.json` | EV·holdout 통과 규칙 |
| `docs/04_matching/simulation_report.html` | 1단계 Go/No-Go |
| `data/ops/live_trades.jsonl` | 06 실거래 로그 |
## 면책
실거래 사용자 책임입니다. 본 저장소는 주문 실행을 포함하지 않습니다.
실거래 손익은 사용자 책임입니다. `LIVE_TRADING_ENABLED=0`이면 06은 주문하지 않습니다.