feat(v9-hardening): Complete P3~P6 specs, GAS functions, and MudBlazor UI
Phase 2 implementation complete: P3 - 손절 체계 재정의 (Stop Loss Taxonomy): - spec/exit/stop_loss.yaml: P3 섹션 추가 - calcAbsoluteRiskStopV1_: 절대 손실 금지선 (entry * 0.92 vs ATR * 1.5) - calcRelativeUnderperfAlertV1_: 상대 성과 추적 (WATCH/TRIM_30/TRIM_50/EXIT_100) - calcStopActionLadderV1_: 사다리식 액션 결정 P4 - 라우팅 단일화 (Unified Routing): - spec/xx_routing_contract.yaml: 4가지 스타일 가중치 정의 - buildRoutePacket_: SCALP/SWING/MOMENTUM/POSITION 점수 + best_style 결정 P5 - 뒷북 차단 (Anti-Late Entry): - spec/exit/pre_distribution_gate.yaml: 배분 위험 조기 감지 - calcAlphaLeadV1_: Alpha Lead Entry Gate (alpha_lead_score >= 75) - calcDistributionRiskV1_: Pre-Distribution Early Warning (risk >= 70) P6 - 현금확보 (Cash Recovery): - spec/exit/cash_recovery.yaml: K2 50/50 분할 + value_damage <= 10% - calcCashRecoveryOptimizerV1_: 현금 최적화 (부족액 4,134만원) UI/UX 개선 (MudBlazor 6.10.0): - Dashboard.razor: 단순 버전 (컴파일 에러 제거) - MainLayout.razor: Typo enum 수정 (H5→h5, H6→h6) - NavMenu.razor: Icons.Material.Filled.Portfolio → Inventory2 릴리스 빌드: - dotnet publish -c Release 성공 - publish 폴더 24MB (배포 준비 완료) 실전 운영 계획: - spec/realtime/live_outcome_ledger_plan.yaml: 30건 신호 샘플링 계획 - honest_proof_score: 56.57 → 95.0 개선 경로 정의 - 예상 기간: 2026-06-25 ~ 2026-08-10 (약 6주) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -99,6 +99,73 @@ timing_exit_score_formula:
|
||||
v1_deprecated: "close × 0.998 (0.2% — 변동성 무시, 사실상 시가 매도)"
|
||||
trailing_stop_breach: "trailingStop 가격 직접 사용. min(trailingStop, close×0.998) 적용 금지."
|
||||
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
# [P3: 손절 체계 재정의] ABSOLUTE_RISK_STOP_V1, RELATIVE_UNDERPERFORMANCE_ALERT_V1
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
p3_absolute_risk_stop_v1:
|
||||
name: "절대 손실 금지선 (P3)"
|
||||
formula: "max(entry_price * 0.92, entry_price - ATR20 * 1.5)"
|
||||
purpose: "진입가 대비 절대 손실 8% 또는 변동성 1.5배 중 높은쪽"
|
||||
quantity_strategy:
|
||||
immediate: "50% 즉시 매도"
|
||||
rebound_wait: "50% 반등 대기"
|
||||
rebound_trigger: "prevClose + 0.5 * ATR20"
|
||||
order_method: "지정가 주문"
|
||||
enforcement: "자동 실행, LLM 자유도 없음"
|
||||
gas_function: "calcAbsoluteRiskStopV1_(entry_price, atr20) → stop_price"
|
||||
|
||||
p3_relative_underperformance_alert_v1:
|
||||
name: "상대 성과 추적 (P3)"
|
||||
condition: "excess_return_20d <= min(-10%, relative_threshold)"
|
||||
action_ladder:
|
||||
step_1: "WATCH: 모니터링 시작 (상대 underperformance -10%~-15%)"
|
||||
step_2: "TRIM_30: 30% 감소 (상대 underperformance -15%~-20%)"
|
||||
step_3: "TRIM_50: 추가 20% 감소 총 50% (상대 underperformance -20%~-25%)"
|
||||
step_4: "EXIT_100: 완전 청산 (상대 underperformance < -25% AND 절대손실 >= 8%)"
|
||||
forbidden:
|
||||
- "상대 성과만으로 EXIT_100 금지 (절대손실 8% 미만)"
|
||||
- "기술지표만으로 TRIM_50 금지"
|
||||
gas_function: "calcRelativeUnderperfAlertV1_(ret_stock_20d, ret_market_20d) → alert_state"
|
||||
action_ladder_function: "calcStopActionLadderV1_(alert_state, underperf_pct) → action"
|
||||
|
||||
p3_fundamental_thesis_break_v1:
|
||||
name: "기본 이론 파괴 감지 (P3)"
|
||||
description: "기업 기본가치 붕괴 신호 (절대/상대와 독립 평가)"
|
||||
signals:
|
||||
- "EPS cut ≥ 10%"
|
||||
- "분기별 매출 성장률 역신장"
|
||||
- "경쟁사 점유율 급락"
|
||||
- "법적/규제 문제 발생"
|
||||
action: "검증 후 EXIT_100 (다른 제약 불적용)"
|
||||
override_absolute_stop: true
|
||||
override_relative_alert: true
|
||||
enforcement: "수동 검증 + 자동 실행"
|
||||
|
||||
p3_formula_registry:
|
||||
- name: "calcAbsoluteRiskStopV1"
|
||||
inputs: ["entry_price", "atr20"]
|
||||
output: "stop_price"
|
||||
formula: "max(entry * 0.92, entry - atr20 * 1.5)"
|
||||
unit: "KRW"
|
||||
|
||||
- name: "calcRelativeUnderperfAlertV1"
|
||||
inputs: ["return_stock_20d", "return_market_20d"]
|
||||
output: "alert_state"
|
||||
states: ["WATCH", "TRIM_30", "TRIM_50", "EXIT_100"]
|
||||
logic: "ladder transition based on excess_return"
|
||||
|
||||
- name: "calcStopActionLadderV1"
|
||||
inputs: ["alert_state", "underperf_pct", "absolute_loss_pct"]
|
||||
output: "action"
|
||||
logic: "WATCH → TRIM_30 → TRIM_50 → EXIT_100 with absolute_loss check"
|
||||
|
||||
p3_validation:
|
||||
- "gap_down 프로토콜: 매도불가 상황에서 WAIT_FOR_OPEN"
|
||||
- "TICK_NORMALIZER 통과 확인"
|
||||
- "포지션 크기 조정 후 재진입 재평가"
|
||||
- "지정가 주문이 체결되지 않으면 시장가 전환"
|
||||
|
||||
stop_loss:
|
||||
principle: "손절가·손절수량·잔여수량·재진입 조건을 함께 제시"
|
||||
priority_matrix: # [proposal_75 / 2026-05-15] 복수 손절 조건 동시 발동 시 최종 HTS 지정가 결정
|
||||
|
||||
Reference in New Issue
Block a user