전략평가 메뉴 추가

This commit is contained in:
Macbook
2026-06-12 14:39:17 +09:00
parent cb1bde2563
commit ae9266bd28
23 changed files with 1977 additions and 19 deletions
@@ -169,6 +169,13 @@ function collectIndicatorRefs(strategy: StrategyDto, side?: 'BUY' | 'SELL'): Ind
return out;
}
/** 전략 DSL에 포함된 보조지표 registry type 목록 (중복 제거) */
export function collectStrategyRegistryTypes(strategy: StrategyDto | null | undefined): string[] {
if (!strategy) return [];
const refs = collectIndicatorRefs(strategy);
return [...new Set(refs.map(r => r.registryType))];
}
function applyTargetHlines(
hlines: HLineDef[],
target: number | null | undefined,