보조지표 설정 저장 오류
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user