전략 시간봉 오류 수정
This commit is contained in:
+10
-3
@@ -1361,7 +1361,7 @@ function App() {
|
||||
cfg = { ...fromConfig, id: newIndId(), type: def.type };
|
||||
} else {
|
||||
const params = getParams(type, def.defaultParams);
|
||||
const { plots, hlines, cloudColors } = getVisualConfig(type, def.plots, def.hlines);
|
||||
const { plots, hlines, cloudColors, bandBackground } = getVisualConfig(type, def.plots, def.hlines);
|
||||
cfg = {
|
||||
id: newIndId(),
|
||||
type: def.type,
|
||||
@@ -1369,6 +1369,7 @@ function App() {
|
||||
plots,
|
||||
hlines,
|
||||
...(cloudColors ? { cloudColors } : {}),
|
||||
...(bandBackground ? { bandBackground } : {}),
|
||||
};
|
||||
}
|
||||
if (type === 'SMA') {
|
||||
@@ -1463,7 +1464,13 @@ function App() {
|
||||
isIndicatorSettingsTemplateId(settingsModalId ?? '')
|
||||
|| updated.id.startsWith('template_');
|
||||
saveParams(updated.type, updated.params);
|
||||
saveVisual(updated.type, updated.plots, updated.hlines, updated.cloudColors);
|
||||
saveVisual(
|
||||
updated.type,
|
||||
updated.plots,
|
||||
updated.hlines,
|
||||
updated.cloudColors,
|
||||
updated.bandBackground,
|
||||
);
|
||||
|
||||
const applyUpdate = (prev: IndicatorConfig[]): IndicatorConfig[] => {
|
||||
if (fromTemplate) {
|
||||
@@ -1539,7 +1546,7 @@ function App() {
|
||||
applyChartIndicators(chartIndicators);
|
||||
allConfigs.forEach(ind => {
|
||||
saveParams(ind.type, ind.params);
|
||||
saveVisual(ind.type, ind.plots, ind.hlines, ind.cloudColors);
|
||||
saveVisual(ind.type, ind.plots, ind.hlines, ind.cloudColors, ind.bandBackground);
|
||||
});
|
||||
setShowBulkIndSettings(false);
|
||||
}, [applyChartIndicators, saveParams, saveVisual]);
|
||||
|
||||
Reference in New Issue
Block a user