상세투자분석 계산로직 수정
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
loadBacktestSettings,
|
||||
saveBacktestSettings,
|
||||
} from '../utils/backendApi';
|
||||
import { ANALYSIS_METHOD_OPTIONS } from '../utils/analysisMethodLabels';
|
||||
|
||||
// ── 백테스팅 전용 UI 컴포넌트 ───────────────────────────────────────────────
|
||||
|
||||
@@ -106,6 +107,26 @@ export const BacktestSettingsPanel: React.FC<BacktestSettingsPanelProps> = ({
|
||||
</BtGrid>
|
||||
</BtSection>
|
||||
|
||||
<BtSection title="투자분석 방식">
|
||||
<BtGrid>
|
||||
<BtField
|
||||
label="수익률 · 손익 산정"
|
||||
desc="백테스팅, 알림 레포트, 분석레포트 등 모든 투자분석 결과에 동일하게 적용됩니다."
|
||||
full
|
||||
>
|
||||
<select
|
||||
className="stg-select stg-select--wide"
|
||||
value={cfg.analysisMethod ?? 'MARK_TO_MARKET'}
|
||||
onChange={e => field('analysisMethod', e.target.value as 'MARK_TO_MARKET' | 'REALIZED_ONLY')}
|
||||
>
|
||||
{ANALYSIS_METHOD_OPTIONS.map(o => (
|
||||
<option key={o.value} value={o.value}>{o.label}</option>
|
||||
))}
|
||||
</select>
|
||||
</BtField>
|
||||
</BtGrid>
|
||||
</BtSection>
|
||||
|
||||
<BtSection title="자본 · 거래 규모">
|
||||
<BtGrid>
|
||||
<BtField
|
||||
|
||||
Reference in New Issue
Block a user