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
+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>
);
};