stochastic lookback 조건 추가
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user