백테스팅 차트 색상 오류 수정
This commit is contained in:
@@ -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],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user