알림목록 obv 그래프 문제 최종수정
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
normalizeObvParams,
|
||||
enrichIndicatorConfig,
|
||||
} from './indicatorRegistry';
|
||||
import { isStrategyChartIndicatorId } from './strategyToChartIndicators';
|
||||
import {
|
||||
normalizeBollingerParams,
|
||||
DEFAULT_BB_BAND_BACKGROUND,
|
||||
@@ -64,10 +65,12 @@ export function initializeIndicatorConfigForEditor(
|
||||
: { ...raw.params };
|
||||
const visual = getVisualConfig?.(raw.type, def.plots, def.hlines);
|
||||
|
||||
const mergedPlots = mergePlotDefs(
|
||||
raw.plots?.length ? raw.plots : undefined,
|
||||
mergePlotDefs(visual?.plots, def.plots),
|
||||
);
|
||||
const mergedPlots = isStrategyChartIndicatorId(raw.id)
|
||||
? mergePlotDefs(undefined, mergePlotDefs(visual?.plots, def.plots))
|
||||
: mergePlotDefs(
|
||||
raw.plots?.length ? raw.plots : undefined,
|
||||
mergePlotDefs(visual?.plots, def.plots),
|
||||
);
|
||||
|
||||
return enrichIndicatorConfig({
|
||||
...raw,
|
||||
|
||||
Reference in New Issue
Block a user