백테스트 전략이름, 이동평균선 그래프 오류 수정
This commit is contained in:
@@ -2,6 +2,7 @@ import type { IndicatorConfig } from '../types';
|
||||
import { enrichIndicatorConfig, getIndicatorDef } from './indicatorRegistry';
|
||||
import { normalizeSmaConfig, createDefaultSmaPlotVisibility } from './smaConfig';
|
||||
import { normalizeIchimokuConfig } from './ichimokuConfig';
|
||||
import { buildMainIndicatorConfig } from './indicatorMainConfig';
|
||||
import type { PlotDef, HLineDef } from './indicatorRegistry';
|
||||
import type { IchimokuCloudColors } from './ichimokuConfig';
|
||||
|
||||
@@ -195,6 +196,13 @@ export function buildChartIndicatorConfig(
|
||||
};
|
||||
|
||||
if (type === 'SMA') {
|
||||
const mainSma = buildMainIndicatorConfig(type, [], getParams, getVisualConfig);
|
||||
if (mainSma?.plotVisibility) {
|
||||
cfg.plotVisibility = mainSma.plotVisibility;
|
||||
}
|
||||
if (mainSma?.plots?.length) {
|
||||
cfg.plots = mainSma.plots;
|
||||
}
|
||||
cfg = normalizeSmaConfig({
|
||||
...cfg,
|
||||
plotVisibility: cfg.plotVisibility ?? createDefaultSmaPlotVisibility(),
|
||||
|
||||
Reference in New Issue
Block a user