전략 직접입력값 평가오류
This commit is contained in:
@@ -8,6 +8,7 @@ import { formatIndicatorDisplayLabel } from './indicatorRegistry';
|
||||
import { coerceFiniteNumber, safeToFixed } from './safeFormat';
|
||||
import { asLogicNode } from './strategyHydrate';
|
||||
import { normalizeStartCandleType } from './strategyStartNodes';
|
||||
import { parseThresholdField } from './conditionPeriods';
|
||||
|
||||
export { coerceFiniteNumber } from './safeFormat';
|
||||
|
||||
@@ -65,7 +66,12 @@ function walk(
|
||||
seen.add(rowId);
|
||||
|
||||
const condLabel = CONDITION_LABEL[c.conditionType] ?? c.conditionType;
|
||||
const target = coerceFiniteNumber(c.targetValue ?? c.compareValue ?? null);
|
||||
const target = coerceFiniteNumber(
|
||||
c.targetValue
|
||||
?? c.compareValue
|
||||
?? parseThresholdField(c.rightField)
|
||||
?? null,
|
||||
);
|
||||
const plotKey = c.leftField && c.leftField !== 'none' ? c.leftField : c.indicatorType;
|
||||
|
||||
out.push({
|
||||
|
||||
Reference in New Issue
Block a user