[2026-05-27] 포맷 후 복구 설치 스크립트 추가

This commit is contained in:
2026-05-27 16:53:52 +09:00
parent 04577c63f1
commit 29db1bfcab
135 changed files with 2909 additions and 251 deletions
+28 -71
View File
@@ -1,78 +1,35 @@
# claude_evening — 장 후 분석 및 피드백
# claude_evening daily review
오늘 매매 결과를 분석하고 `reports/daily/날짜.md`를 생성한다.
Analyze today's trading result and write `reports/daily/YYYY-MM-DD.md`.
## 실행 순서
## Steps
### 1. 데이터 수집
```bash
python app/ai/evening.py --print
```
1. Collect data:
```bash
python app/ai/evening.py --print
```
### 2. 분석 항목
수집된 데이터를 바탕으로 다음을 판단한다:
2. Review:
- total trades, win rate, net PnL, fees
- exit reason distribution: TP1 / TP2 / SL / TIME / FORCE
- overtrading: daily entry count, repeated stop losses, TIME/FORCE concentration
- AI filter quality: boosted tickers and blacklists
- execution quality: missing prices, zero-price rows, inconsistent open positions
**오늘 매매 평가**
- 승률·손익 수준이 적절했는가
- 손절이 제대로 작동했는가
- AI 부스트 종목 성과 vs 일반 종목 비교
- 이상 패턴 (연속 손절, 특정 시간대 집중 손실 등)
3. Strategy changes:
- Do not edit `app/config.py` directly.
- If a change looks justified, create `reports/proposals/YYYY-MM-DD_strategy_proposal.md`.
- Include exact proposed values, evidence, sample size, expected benefit, and risk.
- If fewer than 30 closed trades support the change, clearly mark the evidence as insufficient.
- `FORCE_EXIT = "14:50"` is not changeable.
**파라미터 조정** (문제가 명확할 때만)
- 연속 손절 3회 이상 → `SL_PCT` 축소 검토
- 목표가 도달 후 즉시 반락 패턴 → `TP1_PCT` 상향 검토
- 승률 < 40% 지속 → `STRATEGY_K` 조정 검토
- 조정이 필요하면 `app/config.py`를 직접 수정
4. Live readiness:
- at least 30 closed trades
- recent win rate > 48%
- MDD better than -10%
- Sharpe > 1.0
- stop/kill risk events <= 2
- If all pass, create `reports/live_ready/YYYY-MM-DD_READY.md`.
### 3. 실전 전환 조건 체크
`live_ready` 섹션의 5가지 조건을 확인한다:
- 누적 운영 30거래일 이상
- 최근 30일 승률 > 48%
- 최근 30일 MDD < -10%
- 최근 30일 샤프지수 > 1.0
- 이번 달 L3 발동 2회 이하
**5가지 모두 충족 시:**
```bash
mkdir -p reports/live_ready
```
`reports/live_ready/날짜_READY.md`를 생성하고 Discord에 🚀 알림을 보낸다.
### 4. 일일 리포트 저장
`reports/daily/날짜.md` 형식으로 저장한다:
```markdown
# [날짜] 일일 리포트
## 매매 결과
- 총 매매: N회 / 승 N 패 N (승률 N%)
- 순손익: +N원
## 매매 상세
| 종목 | 진입 | 청산 | 사유 | 손익 |
|------|------|------|------|------|
## 분석 및 피드백
(Claude 분석 내용)
## 파라미터 변경
(변경했으면 내용, 없으면 "없음")
## 실전 전환 조건
| 조건 | 기준 | 현재 | 통과 |
|------|------|------|------|
```
### 5. Discord 알림 전송
```bash
python -c "
import asyncio, json, sys
sys.path.insert(0, '.')
from app.main import load_env; load_env()
from app.monitor.notifier import send
# 분석 결과 요약을 msg에 담아 전송
asyncio.run(send(msg))
"
```
### 6. 완료
리포트 경로와 한 줄 요약을 출력하고 종료한다.
5. Discord:
Send a concise result summary. If a proposal file was created, include that manual approval is required.