가상투자 종목카드박스 레이아웃 수정
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user