stochastic lookback 조건 추가

This commit is contained in:
Macbook
2026-06-12 09:36:12 +09:00
parent 94934d8ce5
commit 429a80523e
2 changed files with 14 additions and 9 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export const SIDEWAYS_FILTER_CATEGORY_LABEL: Record<SidewaysFilterCategory, stri
ichimoku: '일목균형표',
donchian: 'Donchian · 채널',
oscillator: '오실레이터 중립',
cycle: 'Stoch·룩백 사이클',
cycle: 'Stoch·lookback 사이클',
dmi: 'DMI · 방향성',
volume: '거래량 · VR',
combo: '복합 횡보 필터',
+13 -8
View File
@@ -1073,6 +1073,19 @@ export const CondEditor: React.FC<CondEditorProps> = ({
</select>
</>
)
) : isLookbackType ? (
<>
<label className="sp-cond-lbl">lookback ()</label>
<input
type="number"
className="sp-cond-num sp-cond-num--inline"
min={2}
max={500}
value={cond.lookbackPeriod ?? ''}
placeholder="예: 20"
onChange={e => onChange({ ...cond, lookbackPeriod: parseInt(e.target.value) || 20 })}
/>
</>
) : (
<>
<label className="sp-cond-lbl"> </label>
@@ -1183,14 +1196,6 @@ export const CondEditor: React.FC<CondEditorProps> = ({
onChange={e => onChange({ ...cond, holdDays: parseInt(e.target.value) || 3 })} />
</div>
)}
{isLookbackType && (
<div className="sp-cond-extra">
<label className="sp-cond-lbl"> ()</label>
<input type="number" className="sp-cond-num" min={2} max={500}
value={cond.lookbackPeriod ?? ''} placeholder="예: 20"
onChange={e => onChange({ ...cond, lookbackPeriod: parseInt(e.target.value) || 20 })} />
</div>
)}
</div>
);
};