상세투자분석 계산로직 수정

This commit is contained in:
Macbook
2026-06-07 15:12:42 +09:00
parent c4365283cf
commit e1cf2ea46d
14 changed files with 366 additions and 58 deletions
@@ -15,6 +15,11 @@ interface FieldMeta {
}
const FIELD_META: Partial<Record<keyof BacktestSettingsDto, FieldMeta>> = {
analysisMethod: {
label: '투자분석 방식',
description:
'수익률·손익 산정 방식을 선택합니다.\n• 평가손익 포함(표준): 예수금 + 보유주식 시가평가. HTS 평가금액과 동일합니다.\n• 실현손익만: 청산 완료 거래의 실현손익만 반영합니다.',
},
initialCapital: {
label: '초기 자본',
description:
@@ -129,6 +134,18 @@ interface SettingSection {
}
const SECTIONS: SettingSection[] = [
{
title: '📊 투자분석 방식',
fields: [
{
key: 'analysisMethod', type: 'select',
opts: [
{ value: 'MARK_TO_MARKET', label: '평가손익 포함 (표준)' },
{ value: 'REALIZED_ONLY', label: '실현손익만' },
],
},
],
},
{
title: '💰 자본 설정',
fields: [