mobile download
This commit is contained in:
@@ -9,7 +9,12 @@ import {
|
||||
type BullishWeightKey,
|
||||
} from './trendSearchBullishWeights';
|
||||
|
||||
/** 결과 목록 표시: chart | summary(신호) */
|
||||
export type TrendSearchDisplayMode = 'chart' | 'summary';
|
||||
|
||||
export interface TrendSearchAppSettings {
|
||||
/** 결과 UI 표시 모드 (기본 summary) */
|
||||
displayMode?: TrendSearchDisplayMode;
|
||||
weightMaAlignment: number;
|
||||
weightMaSlope: number;
|
||||
weightAdxTrend: number;
|
||||
@@ -32,6 +37,7 @@ export interface TrendSearchAppSettings {
|
||||
}
|
||||
|
||||
export const DEFAULT_TREND_SEARCH_APP_SETTINGS: TrendSearchAppSettings = {
|
||||
displayMode: 'summary',
|
||||
weightMaAlignment: DEFAULT_BULLISH_WEIGHTS.weightMaAlignment,
|
||||
weightMaSlope: DEFAULT_BULLISH_WEIGHTS.weightMaSlope,
|
||||
weightAdxTrend: DEFAULT_BULLISH_WEIGHTS.weightAdxTrend,
|
||||
@@ -59,7 +65,11 @@ export function resolveTrendSearchAppSettings(
|
||||
const rank = Number(raw.autoAddTopRank);
|
||||
const limit = Number(raw.limit);
|
||||
const scanLimit = Number(raw.scanLimit);
|
||||
const displayMode = raw.displayMode === 'chart' || raw.displayMode === 'summary'
|
||||
? raw.displayMode
|
||||
: d.displayMode ?? 'summary';
|
||||
return {
|
||||
displayMode,
|
||||
weightMaAlignment: clampWeight(raw.weightMaAlignment, d.weightMaAlignment),
|
||||
weightMaSlope: clampWeight(raw.weightMaSlope, d.weightMaSlope),
|
||||
weightAdxTrend: clampWeight(raw.weightAdxTrend, d.weightAdxTrend),
|
||||
|
||||
Reference in New Issue
Block a user