stochastic slow 중앙선 안나오는 문제 수정
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
import { useEffect, useRef, useCallback } from 'react';
|
||||
import { getIndicatorDef, mergePlotDefs, PlotDef, HLineDef } from '../utils/indicatorRegistry';
|
||||
import { getIndicatorDef, mergePlotDefs, normalizeHLines, PlotDef, HLineDef } from '../utils/indicatorRegistry';
|
||||
import { createDefaultSmaParams, createDefaultSmaPlots, normalizeSmaConfig } from '../utils/smaConfig';
|
||||
import { normalizeIchimokuConfig, mergeIchimokuPlots } from '../utils/ichimokuConfig';
|
||||
import {
|
||||
@@ -170,7 +170,9 @@ export function useIndicatorSettings(sessionKey = 0) {
|
||||
const def = getIndicatorDef(type);
|
||||
const registryPlots = defaultPlots ?? def?.plots ?? [];
|
||||
let plots = mergePlotDefs(saved?.plots as PlotDef[] | undefined, registryPlots);
|
||||
const hlines = (saved?.hlines as HLineDef[] | undefined) ?? defaultHlines ?? def?.hlines ?? [];
|
||||
const registryHlines = defaultHlines ?? def?.hlines ?? [];
|
||||
const rawHlines = (saved?.hlines as HLineDef[] | undefined) ?? registryHlines;
|
||||
const hlines = normalizeHLines(rawHlines, type, registryHlines);
|
||||
|
||||
if (type === 'SMA') {
|
||||
plots = normalizeSmaConfig({
|
||||
|
||||
Reference in New Issue
Block a user