단순이동평균선 이름 표시방식 변경

This commit is contained in:
Macbook
2026-06-13 01:36:03 +09:00
parent 207374a08e
commit beeebed8f4
13 changed files with 106 additions and 51 deletions
+6 -3
View File
@@ -1,4 +1,4 @@
import { SMA_MA_COUNT, smaPlotId } from './smaConfig';
import { SMA_MA_COUNT, smaPlotId, formatSmaMaDisplayLabel } from './smaConfig';
/** Custom / Custom1 — 동일 기능, 설정만 분리 (세션만, DB 미저장) */
export type ChartCustomOverlaySlotId = 'custom' | 'custom1';
@@ -70,8 +70,11 @@ export function cloneChartCustomOverlaySelection(
};
}
export function smaMaLabel(plotIndex: number): string {
return `MA${plotIndex + 1}`;
export function smaMaLabel(
plotIndex: number,
params?: Record<string, number | string | boolean>,
): string {
return formatSmaMaDisplayLabel(params, plotIndex + 1);
}
export const ICHIMOKU_CUSTOM_ROWS: Array<{