obv 그래프 수정
This commit is contained in:
@@ -21,6 +21,7 @@ import { DEFAULT_DISPLAY_TIMEZONE } from '../../utils/timezone';
|
||||
import { useIndicatorSettings } from '../../hooks/useIndicatorSettings';
|
||||
import { useSessionCandleOverlayControls } from '../../hooks/useSessionCandleOverlayControls';
|
||||
import { ensurePaperChartOverlays } from '../../utils/strategyToChartIndicators';
|
||||
import { enrichIndicatorConfig } from '../../utils/indicatorRegistry';
|
||||
import {
|
||||
applyNotificationSignalMarkers,
|
||||
type TradeSignalChartMarker,
|
||||
@@ -68,7 +69,7 @@ const TradeSignalMiniChart: React.FC<Props> = ({
|
||||
signalMarkerRef.current = signalMarker;
|
||||
|
||||
const baseIndicators = useMemo(
|
||||
() => ensurePaperChartOverlays(indicators, getParams, getVisualConfig),
|
||||
() => ensurePaperChartOverlays(indicators, getParams, getVisualConfig).map(enrichIndicatorConfig),
|
||||
[indicators, getParams, getVisualConfig],
|
||||
);
|
||||
|
||||
@@ -117,6 +118,7 @@ const TradeSignalMiniChart: React.FC<Props> = ({
|
||||
}
|
||||
syncChartLayout();
|
||||
applySignalMarkers();
|
||||
void mgr?.repairDualLineSeries();
|
||||
}, [syncChartLayout, applySignalMarkers]);
|
||||
|
||||
const handleManagerReady = useCallback((mgr: ChartManager) => {
|
||||
@@ -162,7 +164,8 @@ const TradeSignalMiniChart: React.FC<Props> = ({
|
||||
const { isLoadingMore } = useHistoryLoader({
|
||||
symbol: market,
|
||||
timeframe,
|
||||
isUpbit: useUpbit && enabled,
|
||||
/** OBV — 백엔드 history volume=0 봉 prepend 시 본선 왜곡 방지 */
|
||||
isUpbit: useUpbit && enabled && !needsDeepObv,
|
||||
managerRef,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user