보조지표 설정 저장 오류

This commit is contained in:
Macbook
2026-06-16 01:08:58 +09:00
parent e93164deda
commit d34a824174
9 changed files with 80 additions and 57 deletions
@@ -55,7 +55,13 @@ export function initializeIndicatorConfigForEditor(
type: string,
defaultPlots: PlotDef[],
defaultHlines?: HLineDef[],
) => { plots: PlotDef[]; hlines: HLineDef[]; cloudColors?: IchimokuCloudColors; bandBackground?: HlinesBackground },
) => {
plots: PlotDef[];
hlines: HLineDef[];
plotVisibility?: Record<string, boolean>;
cloudColors?: IchimokuCloudColors;
bandBackground?: HlinesBackground;
},
): IndicatorConfig {
const def = getIndicatorDef(raw.type);
if (!def) return enrichIndicatorConfig(raw);
@@ -79,6 +85,7 @@ export function initializeIndicatorConfigForEditor(
hlines: raw.hlines?.length ? raw.hlines : visual?.hlines,
cloudColors: raw.cloudColors ?? visual?.cloudColors,
bandBackground: raw.bandBackground ?? visual?.bandBackground,
plotVisibility: raw.plotVisibility ?? visual?.plotVisibility,
});
}