그래프 수정
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
type HLineDef,
|
||||
} from './indicatorRegistry';
|
||||
import { initializeIndicatorConfigForEditor } from './indicatorSettingsEditor';
|
||||
import { mergeGlobalDefaultsOntoChartIndicators } from './indicatorMainConfig';
|
||||
import { buildMainIndicatorConfig } from './indicatorMainConfig';
|
||||
import { normalizeSmaConfig, smaPeriodKey } from './smaConfig';
|
||||
import { normalizeIchimokuConfig } from './ichimokuConfig';
|
||||
@@ -266,7 +267,11 @@ export function buildStrategyChartIndicators(
|
||||
const cfg = buildOneIndicator(ref, getParams, getVisual);
|
||||
if (cfg) result.push(cfg);
|
||||
}
|
||||
return result;
|
||||
return mergeGlobalDefaultsOntoChartIndicators(
|
||||
result,
|
||||
getParams,
|
||||
(type, defaultPlots, defaultHlines) => getVisual(type, defaultPlots ?? [], defaultHlines ?? []),
|
||||
);
|
||||
}
|
||||
|
||||
const MA_OVERLAY_TYPES = new Set(['SMA', 'EMA']);
|
||||
|
||||
Reference in New Issue
Block a user