가상투자 종목카드박스 레이아웃 수정

This commit is contained in:
Macbook
2026-05-26 16:42:57 +09:00
parent 7cf43609dc
commit c0d21ac825
25 changed files with 1632 additions and 61 deletions
+10
View File
@@ -384,8 +384,18 @@ export function getIndicatorDef(type: string): IndicatorDef | undefined {
return INDICATOR_REGISTRY.find(d => d.type === type);
}
const DSL_DISPLAY_ALIASES: Record<string, { koreanName: string; shortName: string }> = {
NEW_HIGH: { koreanName: '신고가', shortName: 'NH' },
NEW_LOW: { koreanName: '신저가', shortName: 'NL' },
DONCHIAN: { koreanName: '돈치안채널', shortName: 'DC' },
};
/** 가상투자·조건 목록 — 한글명 (영문약어) 예: 상품채널지수 (CCI) */
export function formatIndicatorDisplayLabel(indicatorType: string): string {
const alias = DSL_DISPLAY_ALIASES[indicatorType];
if (alias) {
return `${alias.koreanName} (${alias.shortName})`;
}
const def = getIndicatorDef(indicatorType);
const abbr = def?.shortName ?? indicatorType;
const ko = def?.koreanName ?? abbr;