상세투자분석 계산로직 수정
This commit is contained in:
@@ -1151,6 +1151,11 @@ export interface BacktestStats {
|
||||
export interface BacktestAnalysis {
|
||||
initialCapital: number;
|
||||
finalEquity: number;
|
||||
analysisMethod?: 'MARK_TO_MARKET' | 'REALIZED_ONLY';
|
||||
cashBalance?: number;
|
||||
holdingsValue?: number;
|
||||
realizedPnl?: number;
|
||||
unrealizedPnl?: number;
|
||||
totalReturnPct: number;
|
||||
totalProfitLoss: number;
|
||||
grossProfit: number;
|
||||
@@ -1230,6 +1235,8 @@ export interface BacktestSettingsDto {
|
||||
partialExitPct: number;
|
||||
/** "LONG_ONLY" | "SIGNAL_ONLY" — 매도 시그널 포지션 종속성 모드 */
|
||||
positionMode?: 'LONG_ONLY' | 'SIGNAL_ONLY';
|
||||
/** MARK_TO_MARKET | REALIZED_ONLY — 투자분석 방식 */
|
||||
analysisMethod?: 'MARK_TO_MARKET' | 'REALIZED_ONLY';
|
||||
}
|
||||
|
||||
export const DEFAULT_BACKTEST_SETTINGS: BacktestSettingsDto = {
|
||||
@@ -1253,6 +1260,7 @@ export const DEFAULT_BACKTEST_SETTINGS: BacktestSettingsDto = {
|
||||
partialExitEnabled: false,
|
||||
partialExitPct: 50,
|
||||
positionMode: 'LONG_ONLY',
|
||||
analysisMethod: 'MARK_TO_MARKET',
|
||||
};
|
||||
|
||||
/** 백테스팅 설정 로드 */
|
||||
|
||||
Reference in New Issue
Block a user