obv 신호선

This commit is contained in:
Macbook
2026-06-09 01:06:35 +09:00
parent 8a2d8054ad
commit 1f0671aa7a
4 changed files with 69 additions and 9 deletions
+4 -1
View File
@@ -22,7 +22,7 @@
*/
import { useEffect, useRef, useCallback, useState } from 'react';
import { getIndicatorDef, mergePlotDefs, normalizeHLines, PlotDef, HLineDef } from '../utils/indicatorRegistry';
import { getIndicatorDef, mergePlotDefs, normalizeHLines, normalizeObvParams, PlotDef, HLineDef } from '../utils/indicatorRegistry';
import { createDefaultSmaParams, createDefaultSmaPlots, normalizeSmaConfig } from '../utils/smaConfig';
import { normalizeIchimokuConfig, mergeIchimokuPlots } from '../utils/ichimokuConfig';
import {
@@ -177,6 +177,9 @@ export function useIndicatorSettings(sessionKey = 0) {
if (type === 'IchimokuCloud') {
return normalizeIchimokuConfig({ id: '', type: 'IchimokuCloud', params: merged }).params;
}
if (type === 'OBV') {
return normalizeObvParams(merged);
}
return merged;
},
[settingsRevision],