ecosystem.yaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # 四维市场生态识别配置
  2. # 宏观生态识别
  3. macro:
  4. # 季节识别阈值
  5. seasons:
  6. spring:
  7. volatility_rebound: 0.20 # 波动率从低位回升阈值
  8. volume_ratio: 1.2 # 成交量5日/20日均值比
  9. dispersion_percentile: [30, 60] # 板块离散度历史分位
  10. summer:
  11. adx_threshold: 25 # ADX阈值
  12. adx_duration: 5 # 持续天数
  13. volatility_percentile: [40, 70]
  14. dispersion_max: 40
  15. autumn:
  16. dispersion_percentile: 70
  17. rotation_high: true # 轮动指数高位
  18. volatility_increase: 0.15
  19. winter:
  20. volume_percentile: 50 # 成交量低于历史中位
  21. volatility_compression: 20
  22. adx_flat: 20 # ADX低于此值视为无趋势
  23. flat_duration: 10
  24. # 计算周期
  25. lookback_days: 252 # 历史数据回看天数
  26. # 中观生态识别
  27. meso:
  28. # 结构健康度权重
  29. health_weights:
  30. price_impact: 0.30 # 价格冲击系数
  31. order_flow: 0.25 # 订单流平衡
  32. liquidity_depth: 0.20 # 流动性深度
  33. volatility_efficiency: 0.15 # 波动率效率
  34. info_response: 0.10 # 信息冲击响应
  35. # 健康度分级
  36. levels:
  37. high: 70
  38. medium: 40
  39. low: 0
  40. # 计算周期
  41. lookback_days: 60
  42. # 微观生态识别
  43. micro:
  44. # HMM配置
  45. hmm:
  46. n_components: 3 # 状态数:震荡/趋势/反转
  47. covariance_type: "full"
  48. n_iter: 100
  49. # 有毒订单流检测
  50. toxic_flow:
  51. price_reversal: 0.003 # 大单成交后价格反向运动阈值
  52. depth_ratio: 0.8 # 买卖盘深度比阈值
  53. duration_minutes: 10 # 持续时间
  54. # 主力资金识别
  55. smart_money:
  56. min_order_value: 1000000 # 大单阈值(元)
  57. accumulation_period: 5 # 建仓识别周期(分钟)
  58. # 计算周期
  59. timeframe: "30min"
  60. # 瞬时生态识别
  61. instant:
  62. # 买卖盘不平衡
  63. imbalance:
  64. ratio_threshold: 2.0 # 买卖盘量比阈值
  65. duration_minutes: 3 # 持续时间
  66. # 跳动率突变
  67. tick_rate:
  68. change_threshold: 0.5 # 较前5分钟均值变化阈值
  69. # 大单流向
  70. block_trade:
  71. min_value: 500000 # 大单阈值(元)
  72. window_minutes: 1 # 统计窗口
  73. # 生态融合
  74. fusion:
  75. confidence_threshold: 0.6 # 置信度阈值
  76. update_frequency:
  77. macro: "1d" # 日度更新
  78. meso: "1d" # 日度更新
  79. micro: "30min" # 30分钟更新
  80. instant: "1min" # 分钟级更新