백테스팅 SIGNAL_ONLY 수정 — 포지션 무관 전체 시그널 생성 + 기본값 적용

- BacktestingService: SIGNAL_ONLY 모드에서 inPosition 포지션 락 제거,
  entryRule/exitRule 충족 시마다 BUY/SELL 시그널 무조건 생성
- BacktestSettingsDto: positionMode 기본값 LONG_ONLY → SIGNAL_ONLY
- backendApi.ts: DEFAULT_BACKTEST_SETTINGS positionMode 기본값 변경
- BacktestSettingsModal: positionMode UI 항목(시그널 생성 방식) 최상단에 추가

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Macbook
2026-06-11 17:22:26 +09:00
parent 7b4a7e1950
commit 8d019ddd26
4 changed files with 29 additions and 50 deletions
+1 -1
View File
@@ -1286,7 +1286,7 @@ export const DEFAULT_BACKTEST_SETTINGS: BacktestSettingsDto = {
maxOpenTrades: 1,
partialExitEnabled: false,
partialExitPct: 50,
positionMode: 'LONG_ONLY',
positionMode: 'SIGNAL_ONLY',
analysisMethod: 'MARK_TO_MARKET',
};