feat: Enhance trading system with new e_min_chg_pct parameter and related logic

Changes:
- Introduced the `e_min_chg_pct` parameter to define the minimum price change percentage compared to the previous day's close, enhancing the momentum trading strategy.
- Updated various functions and classes to incorporate this new parameter, ensuring it is utilized in both backtesting and live trading scenarios.
- Improved documentation and comments to clarify the purpose and usage of the new parameter across the codebase.

Impact:
- This addition allows for more precise control over trading conditions, potentially increasing the effectiveness of the momentum strategy while maintaining system integrity and performance.
This commit is contained in:
Your Name
2026-08-01 16:19:24 +09:00
parent 7050f788c5
commit cb7e5037a0
30 changed files with 2206 additions and 253 deletions

View File

@@ -0,0 +1,26 @@
# Optuna 브리핑 — 돌파 (tpe)
기간: 2026-07-31 ~ 2026-07-31 (거래일≈1일) · trials 200/200
탐색 게이트: WR≥0% PF≥0 · min_trades≥1 | 후보 게이트: WR≥40% PF≥1 · min_trades≥1
- min_trades=1: **합격 인정 최소 거래 건수**(표본 부족·우연 승률 방지). 이보다 적은 조합은 학습/후보 집계에서 제외됩니다.
학습용 통과 198건 · 사후합격(results_gated) 171건
## 이전 장에서는
- 실매(2026-07-31~2026-07-31) 해당 전략 청산 기록 없음(또는 전략명 불일치).
- 사후합격 1위: trial #139 · 거래 6건 · 승률 66.7% · PF 49.10 · PnL 28,621원
- 표본 장이 1일뿐이라, ‘이전 장에 잘 먹힌 숫자’일 뿐 **추세가 바뀌면 바로 깨질 수 있습니다.**
## 앞으로 장에서는
- **1~2일 Optuna best를 바로 실매에 넣지 마세요.** 다일(≥5거래일) 재검증·웹백테 1회 후 검토.
- 적용 시에는 `results_gated` 후보만. 탐색용 best(objective)와 다를 수 있습니다.
- 장이 좁아지거나 변동성이 커지면: 손절·트레일·시간창이 먼저 깨집니다. 승률 자랑보다 **손절이 살아 있는지**를 보세요.
- 사후합격이 있어도 ‘내일도 같은 장’이 아닙니다. 페이퍼/소액·모의로 1~2일 관찰 후 확대하세요.
_생성: 2026-07-31 11:24:36 (rule)_
## AI 코멘트 (이전 장 / 앞으로 장) [gemini]
**「이전 장에서는」**
지난 1일간의 짧은 백테스트에서 돌파 전략의 #139 조합이 6회 거래로 PnL 28,621원을 기록했습니다. 이는 지나치게 짧은 1일치 **표본 부족**으로 인한 결과이며, 특정 장세에 **과적합**되었을 가능성이 매우 높습니다. 해당 기간 실제 매매 기록은 없습니다.
**「앞으로 장에서는」**
이처럼 짧은 백테스트 결과만으로 실매 투입은 절대 금물입니다. 최소 5거래일 이상 **다양한 장세**에서 **재검증**해야 합니다. **백테스트와 실매매 간 괴리(고스트퍼지 등)**가 발생할 수 있음을 명심하고, 시장이 변하면 **손절 기능**부터 망가질 수 있으니 항상 확인하세요. 소액 또는 모의 투자로 충분히 관찰하고 검증한 후 신중하게 접근하십시오. 특정 종목 매수 추천이나 확정 수익은 약속하지 않습니다.