매매시 현재가 적용

This commit is contained in:
Macbook
2026-06-23 00:12:23 +09:00
parent 351c5600b8
commit 6e86ec7ecb
16 changed files with 221 additions and 79 deletions
@@ -233,19 +233,19 @@ export const BacktestSettingsPanel: React.FC<BacktestSettingsPanelProps> = ({
<BtSection title="거래 가격 기준">
<BtGrid>
<BtField label="진입 가격 기준" desc="매수 신호 시 진입 가격. 종가 즉시 진입 또는 다음 봉 시가 진입.">
<BtField label="진입 가격 기준" desc="매수 신호 시 진입 가격. 현재가(시그널 시점) 또는 다음 봉 시가.">
<select className="stg-select stg-select--wide"
value={cfg.entryPriceType}
onChange={e => field('entryPriceType', e.target.value as 'CLOSE' | 'NEXT_OPEN')}>
<option value="CLOSE"> (Close)</option>
value={cfg.entryPriceType === 'CLOSE' ? 'CURRENT' : cfg.entryPriceType}
onChange={e => field('entryPriceType', e.target.value as 'CURRENT' | 'NEXT_OPEN')}>
<option value="CURRENT"> (Current)</option>
<option value="NEXT_OPEN"> (Next Open)</option>
</select>
</BtField>
<BtField label="청산 가격 기준" desc="매도 신호 시 청산 가격. 종가 즉시 청산 또는 다음 봉 시가 청산.">
<BtField label="청산 가격 기준" desc="매도 신호 시 청산 가격. 현재가(시그널 시점) 또는 다음 봉 시가.">
<select className="stg-select stg-select--wide"
value={cfg.exitPriceType}
onChange={e => field('exitPriceType', e.target.value as 'CLOSE' | 'NEXT_OPEN')}>
<option value="CLOSE"> (Close)</option>
value={cfg.exitPriceType === 'CLOSE' ? 'CURRENT' : cfg.exitPriceType}
onChange={e => field('exitPriceType', e.target.value as 'CURRENT' | 'NEXT_OPEN')}>
<option value="CURRENT"> (Current)</option>
<option value="NEXT_OPEN"> (Next Open)</option>
</select>
</BtField>