UNPKG

@gabriel3615/ta_analysis

Version:

stock ta analysis

64 lines (63 loc) 1.77 kB
/** * 集成分析配置 * 统一管理所有集成相关的配置参数 */ export interface IntegrationWeights { chip: number; pattern: number; volume: number; bbsr: number; structure?: number; supplyDemand?: number; range?: number; trendline?: number; plugins?: Record<string, number>; } export interface IntegrationThresholds { scoreLong: number; scoreShort: number; volatilityAdjustedScoreStrong: number; volatilityAdjustedScoreModerate: number; volatilityAdjustedScoreWeak: number; chipDirectionThreshold: number; } export interface DataTimeframes { weekly: { lookbackDays: number; }; daily: { lookbackDays: number; }; hourly: { lookbackDays: number; }; } export interface ConsistencyConfig { timeframeWeights: { weekly: number; daily: number; '1hour': number; }; structureWeight: number; trendlineWeight: number; } export interface IntegrationOptions { enableFallbackStrategy?: boolean; logLevel?: 'silent' | 'normal' | 'verbose'; outputFormat?: 'console' | 'json' | 'both'; usePluginsOnly?: boolean; } export interface IntegrationConfig { weights: IntegrationWeights; thresholds: IntegrationThresholds; timeframes: DataTimeframes; consistency: ConsistencyConfig; options: IntegrationOptions; } export declare const DEFAULT_INTEGRATION_CONFIG: IntegrationConfig; export declare function updateIntegrationConfig(updates: Partial<IntegrationConfig>): IntegrationConfig; export declare function normalizeWeights(weights: IntegrationWeights): IntegrationWeights; export declare function validateConfig(config: IntegrationConfig): { valid: boolean; errors: string[]; };