전략평가 메뉴 추가
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user