백테스팅 차트 색상 오류 수정

This commit is contained in:
Macbook
2026-06-08 12:09:38 +09:00
parent c20c806c19
commit 9fde6868e2
5 changed files with 89 additions and 89 deletions
@@ -15,7 +15,7 @@ import { useHistoryLoader } from '../../hooks/useHistoryLoader';
import { useIndicatorSettings } from '../../hooks/useIndicatorSettings';
import type { ChartManager } from '../../utils/ChartManager';
import { timeframeToCandleType } from '../../utils/chartCandleType';
import { enrichIndicatorConfig } from '../../utils/indicatorRegistry';
import { buildChartIndicatorConfig } from '../../utils/indicatorPaneMerge';
import { DEFAULT_DISPLAY_TIMEZONE } from '../../utils/timezone';
interface Props {
@@ -51,17 +51,9 @@ const TrendSearchCardChart: React.FC<Props> = ({
const { getParams, getVisualConfig } = useIndicatorSettings();
const indicators = useMemo(
() => CHART_INDICATOR_TYPES.map(type => {
const base = enrichIndicatorConfig({
id: `${type}-tsd-card`,
type,
params: { ...getParams(type) },
});
return {
...base,
plots: getVisualConfig(type)?.plots ?? base.plots,
};
}),
() => CHART_INDICATOR_TYPES.map(type =>
buildChartIndicatorConfig(type, `${type}-tsd-card`, getParams, getVisualConfig),
).filter((c): c is NonNullable<typeof c> => c != null),
[getParams, getVisualConfig],
);