캔들차트, 이동평균선, 일목균형표, 볼린저밴드 보이기 숨기기 기능적용
This commit is contained in:
@@ -11,7 +11,7 @@ export const DEFAULT_PAPER_OVERLAY_VISIBILITY: PaperOverlayVisibility = {
|
||||
bollinger: true,
|
||||
};
|
||||
|
||||
const MA_TYPES = new Set(['SMA', 'EMA']);
|
||||
import { isMovingAverageOverlayType } from './chartOverlayVisibility';
|
||||
|
||||
export const PAPER_OVERLAY_TOGGLE_ORDER: PaperOverlayToggleKey[] = [
|
||||
'ma',
|
||||
@@ -29,7 +29,7 @@ export const PAPER_OVERLAY_LABELS: Record<PaperOverlayToggleKey, string> = {
|
||||
export const PAPER_OVERLAY_MENU_TITLE = '표시 설정';
|
||||
|
||||
export function paperOverlayKeyForType(type: string): PaperOverlayToggleKey | null {
|
||||
if (MA_TYPES.has(type)) return 'ma';
|
||||
if (isMovingAverageOverlayType(type)) return 'ma';
|
||||
if (type === 'IchimokuCloud') return 'ichimoku';
|
||||
if (type === 'BollingerBands') return 'bollinger';
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user