推送治理:静默采集+需要操作才出声

核心原则:数据采集类脚本完全静默(做积累不做推送),
只有需要操作/需要看的才到达Dad。

改动:
1. branch_scanner 已完全静默(上一轮改的)
2. stale_push_wlin return 1 → return 0(修复错误退出码)
3. 开盘简报 deliver=local → deliver=origin(之前没到Dad)
4. 收盘简报 deliver=local → deliver=origin
5. 策略评估-每日 deliver=local → deliver=origin
6. stale_push_wlin 输出格式已包含分支信息:
   【弱势震荡→buy】价格回调到支撑区,弱势市场低吸

Dad会收到的消息:
- 自选买入提醒(9:01/12:01)← 需要操作
- 开盘简报(9:35)← 需要看
- 收盘简报(16:10)← 需要看
- 策略评估(21:00)← 需要看
- 价格触发变化 ← 需要知道
其他全部静默
This commit is contained in:
知微
2026-06-24 10:45:51 +08:00
parent 80b854b945
commit b229e6f0cb
4 changed files with 128 additions and 128 deletions
+83 -83
View File
@@ -147,7 +147,7 @@
},
"priority": 99,
"rationale": "没有分支匹配时的默认动作",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
}
@@ -226,7 +226,7 @@
},
"priority": 1,
"rationale": "价格回调到支撑区,弱势市场低吸",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -411,7 +411,7 @@
},
"priority": 0,
"rationale": "止损保护本金",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -705,7 +705,7 @@
},
"priority": 99,
"rationale": "没有分支匹配时的默认动作",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
}
@@ -716,17 +716,17 @@
{
"code": "002594",
"name": "比亚迪",
"price": 83.03,
"price": 83.1,
"cost": 0,
"shares": 0,
"avg_price": 0,
"action": "盈利持有 | 目标92.47 | 止损80.54 | 买入区81.37~84.69 | 信号:观望",
"stop_loss": 80.54,
"entry_low": 81.37,
"entry_high": 84.69,
"tech_snapshot": "形态:光头光脚阴线/bearish 量价:主动卖盘占优 强撑:76.5 弱撑:82.45 弱压:85.0 强压:92.47",
"action": "盈利持有 | 目标92.5 | 止损80.61 | 买入区81.44~84.76 | 信号:观望",
"stop_loss": 80.61,
"entry_low": 81.44,
"entry_high": 84.76,
"tech_snapshot": "形态:光头光脚阴线/bearish 量价:主动卖盘占优 强撑:76.5 弱撑:82.5 弱压:85.0 强压:92.5",
"timing_signal": "观望",
"rr_ratio": 3.79,
"rr_ratio": 3.78,
"status": "updated",
"note": "",
"timestamp": "2026-06-24 09:00",
@@ -738,7 +738,7 @@
"position_advice": "减仓或观望",
"time_horizon": "观望",
"created_at": "2026-06-18 17:15",
"take_profit": 92.47,
"take_profit": 92.5,
"updated_reason": "技术信号变化: 大盘中性,行业偏弱,蓝筹,放量下跌,等企稳再入: 止损83.36→79.15 | 形态:带上影阴线/bearish 量价:主动卖盘占优 强撑:78.83 弱撑:83.73 弱压:87.59 强压:93.",
"changelog": [
{
@@ -824,7 +824,7 @@
{
"id": "002594_stop_loss",
"condition": {
"price": "<80.54"
"price": "<80.61"
},
"action": {
"type": "sell",
@@ -841,18 +841,18 @@
"id": "002594_buy_dip",
"condition": {
"scenario": "weak_consolidation",
"price": "<=84.69",
"price_lower": ">=81.37"
"price": "<=84.76",
"price_lower": ">=81.44"
},
"action": {
"type": "buy",
"amount": "normal",
"limit": 81.37,
"limit": 81.44,
"reason": "回调支撑买入"
},
"priority": 1,
"rationale": "价格回调到支撑区,弱势市场低吸",
"trigger_count": 7,
"trigger_count": 1,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -860,7 +860,7 @@
"id": "002594_breakout_chase",
"condition": {
"scenario": "bullish_recovery",
"price": ">=92.47"
"price": ">=92.5"
},
"action": {
"type": "buy",
@@ -894,7 +894,7 @@
{
"id": "002594_take_profit",
"condition": {
"price": ">=92.47"
"price": ">=92.5"
},
"action": {
"type": "sell",
@@ -4831,7 +4831,7 @@
},
"priority": 1,
"rationale": "价格回调到支撑区,弱势市场低吸",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -4906,17 +4906,17 @@
{
"code": "300124",
"name": "汇川技术",
"price": 67.09,
"price": 66.51,
"cost": 0,
"shares": 0,
"avg_price": 0,
"action": "盈利持有 | 目标73.27 | 止损65.08 | 买入区65.75~68.36 | 信号:观望",
"stop_loss": 65.08,
"entry_low": 65.75,
"entry_high": 68.36,
"tech_snapshot": "形态:锤子线/T字线/bullish 量价:主动卖盘占优 强撑:60.39 弱撑:66.18 弱压:67.75 强压:73.27",
"action": "盈利持有 | 目标73.08 | 止损64.51 | 买入区65.18~67.84 | 信号:观望",
"stop_loss": 64.51,
"entry_low": 65.18,
"entry_high": 67.84,
"tech_snapshot": "形态:倒T线/射击之星/bearish 量价:主动卖盘占优 强撑:60.2 弱撑:65.79 弱压:67.36 强压:73.08",
"timing_signal": "观望",
"rr_ratio": 3.07,
"rr_ratio": 3.28,
"status": "updated",
"note": "",
"timestamp": "2026-06-24 09:01",
@@ -4928,7 +4928,7 @@
"position_advice": "减仓或观望",
"time_horizon": "观望",
"created_at": "2026-06-18 17:15",
"take_profit": 73.27,
"take_profit": 73.08,
"updated_reason": "技术面重评: 止损65.78→64.82 | 形态:光头光脚阴线/bearish 量价:主动卖盘占优 强撑:61.61 弱撑:65.99 弱压:68.95 强压:73",
"changelog": [
{
@@ -5007,7 +5007,7 @@
{
"id": "300124_stop_loss",
"condition": {
"price": "<65.08"
"price": "<64.51"
},
"action": {
"type": "sell",
@@ -5024,18 +5024,18 @@
"id": "300124_buy_dip",
"condition": {
"scenario": "weak_consolidation",
"price": "<=68.36",
"price_lower": ">=65.75"
"price": "<=67.84",
"price_lower": ">=65.18"
},
"action": {
"type": "buy",
"amount": "normal",
"limit": 65.75,
"limit": 65.18,
"reason": "回调支撑买入"
},
"priority": 1,
"rationale": "价格回调到支撑区,弱势市场低吸",
"trigger_count": 7,
"trigger_count": 1,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -5043,7 +5043,7 @@
"id": "300124_breakout_chase",
"condition": {
"scenario": "bullish_recovery",
"price": ">=73.27"
"price": ">=73.08"
},
"action": {
"type": "buy",
@@ -5077,7 +5077,7 @@
{
"id": "300124_take_profit",
"condition": {
"price": ">=73.27"
"price": ">=73.08"
},
"action": {
"type": "sell",
@@ -5197,7 +5197,7 @@
},
"priority": 1,
"rationale": "价格回调到支撑区,弱势市场低吸",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -5401,7 +5401,7 @@
},
"priority": 1,
"rationale": "价格回调到支撑区,弱势市场低吸",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -5655,7 +5655,7 @@
},
"priority": 99,
"rationale": "没有分支匹配时的默认动作",
"trigger_count": 3,
"trigger_count": 4,
"success_rate": null,
"last_triggered": "2026-06-24"
}
@@ -5802,7 +5802,7 @@
},
"priority": 1,
"rationale": "价格回调到支撑区,弱势市场低吸",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -5978,7 +5978,7 @@
},
"priority": 1,
"rationale": "价格回调到支撑区,弱势市场低吸",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -6189,7 +6189,7 @@
},
"priority": 1,
"rationale": "价格回调到支撑区,弱势市场低吸",
"trigger_count": 1,
"trigger_count": 2,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -6351,7 +6351,7 @@
},
"priority": 1,
"rationale": "价格回调到支撑区,弱势市场低吸",
"trigger_count": 11,
"trigger_count": 12,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -6606,7 +6606,7 @@
},
"priority": 4,
"rationale": "达到目标价,减半仓锁定利润",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -6823,7 +6823,7 @@
},
"priority": 99,
"rationale": "没有分支匹配时的默认动作",
"trigger_count": 7,
"trigger_count": 8,
"success_rate": null,
"last_triggered": "2026-06-24"
}
@@ -6834,17 +6834,17 @@
{
"code": "601318",
"name": "中国平安",
"price": 49.07,
"price": 49.32,
"cost": 0,
"shares": 0,
"avg_price": 0,
"action": "盈利持有 | 目标53.59 | 止损47.6 | 买入区48.09~50.0 | 信号:观望",
"stop_loss": 47.6,
"entry_low": 48.09,
"entry_high": 50.0,
"tech_snapshot": "形态:光头光脚阴线/bearish 量价:主动卖盘占优 强撑:45.74 弱撑:48.45 弱压:50.4 强压:53.59",
"action": "盈利持有 | 目标53.69 | 止损47.84 | 买入区48.33~50.18 | 信号:观望",
"stop_loss": 47.84,
"entry_low": 48.33,
"entry_high": 50.18,
"tech_snapshot": "形态:光头光脚阴线/bearish 量价:主动卖盘占优 强撑:45.8 弱撑:48.61 弱压:50.46 强压:53.69",
"timing_signal": "观望",
"rr_ratio": 3.07,
"rr_ratio": 2.95,
"status": "updated",
"note": "",
"timestamp": "2026-06-24 09:01",
@@ -6856,7 +6856,7 @@
"position_advice": "减仓或观望",
"time_horizon": "观望",
"created_at": "2026-06-22 11:50",
"take_profit": 53.59,
"take_profit": 53.69,
"changelog": [
{
"date": "2026-06-22 12:01",
@@ -6885,7 +6885,7 @@
{
"id": "601318_stop_loss",
"condition": {
"price": "<47.6"
"price": "<47.84"
},
"action": {
"type": "sell",
@@ -6902,18 +6902,18 @@
"id": "601318_buy_dip",
"condition": {
"scenario": "weak_consolidation",
"price": "<=50.0",
"price_lower": ">=48.09"
"price": "<=50.18",
"price_lower": ">=48.33"
},
"action": {
"type": "buy",
"amount": "normal",
"limit": 48.09,
"limit": 48.33,
"reason": "回调支撑买入"
},
"priority": 1,
"rationale": "价格回调到支撑区,弱势市场低吸",
"trigger_count": 7,
"trigger_count": 1,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -6921,7 +6921,7 @@
"id": "601318_breakout_chase",
"condition": {
"scenario": "bullish_recovery",
"price": ">=53.59"
"price": ">=53.69"
},
"action": {
"type": "buy",
@@ -6955,7 +6955,7 @@
{
"id": "601318_take_profit",
"condition": {
"price": ">=53.59"
"price": ">=53.69"
},
"action": {
"type": "sell",
@@ -7117,7 +7117,7 @@
},
"priority": 1,
"rationale": "价格回调到支撑区,弱势市场低吸",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -7358,7 +7358,7 @@
},
"priority": 4,
"rationale": "达到目标价,减半仓锁定利润",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -7505,7 +7505,7 @@
},
"priority": 99,
"rationale": "没有分支匹配时的默认动作",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
}
@@ -7716,7 +7716,7 @@
},
"priority": 99,
"rationale": "没有分支匹配时的默认动作",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
}
@@ -7920,7 +7920,7 @@
},
"priority": 99,
"rationale": "没有分支匹配时的默认动作",
"trigger_count": 4,
"trigger_count": 5,
"success_rate": null,
"last_triggered": "2026-06-24"
}
@@ -7931,17 +7931,17 @@
{
"code": "688795",
"name": "摩尔线程-U",
"price": 684.0,
"price": 684.99,
"cost": 0,
"shares": 0,
"avg_price": 0,
"action": "盈利持有 | 目标818.65 | 止损663.48 | 买入区670.32~697.68 | 信号:观望",
"stop_loss": 663.48,
"entry_low": 670.32,
"entry_high": 697.68,
"tech_snapshot": "形态:锤子线/T字线/bullish 量价:主动卖盘占优 强撑:563.22 弱撑:669.0 弱压:704.03 强压:818.65",
"action": "盈利持有 | 目标818.98 | 止损664.44 | 买入区671.29~698.69 | 信号:观望",
"stop_loss": 664.44,
"entry_low": 671.29,
"entry_high": 698.69,
"tech_snapshot": "形态:锤子线/T字线/bullish 量价:主动卖盘占优 强撑:563.22 弱撑:669.66 弱压:704.03 强压:818.98",
"timing_signal": "观望",
"rr_ratio": 6.56,
"rr_ratio": 6.52,
"status": "updated",
"note": "",
"timestamp": "2026-06-24 09:01",
@@ -7953,7 +7953,7 @@
"position_advice": "正常配置",
"time_horizon": "数月~1年",
"created_at": "2026-06-18 17:15",
"take_profit": 818.65,
"take_profit": 818.98,
"updated_reason": "技术信号变化: 大盘中性,行业中性,高估值,放量下跌,等企稳再入: 止损683.91→660.96 | 形态:带上影阳线/neutral 量价:主动卖盘占优 强撑:568.43 弱撑:660.96 弱压:746.15 强压:",
"changelog": [
{
@@ -8032,7 +8032,7 @@
{
"id": "688795_stop_loss",
"condition": {
"price": "<663.48"
"price": "<664.44"
},
"action": {
"type": "sell",
@@ -8049,18 +8049,18 @@
"id": "688795_buy_dip",
"condition": {
"scenario": "weak_consolidation",
"price": "<=697.68",
"price_lower": ">=670.32"
"price": "<=698.69",
"price_lower": ">=671.29"
},
"action": {
"type": "buy",
"amount": "normal",
"limit": 670.32,
"limit": 671.29,
"reason": "回调支撑买入"
},
"priority": 1,
"rationale": "价格回调到支撑区,弱势市场低吸",
"trigger_count": 7,
"trigger_count": 1,
"success_rate": null,
"last_triggered": "2026-06-24"
},
@@ -8068,7 +8068,7 @@
"id": "688795_breakout_chase",
"condition": {
"scenario": "bullish_recovery",
"price": ">=818.65"
"price": ">=818.98"
},
"action": {
"type": "buy",
@@ -8102,7 +8102,7 @@
{
"id": "688795_take_profit",
"condition": {
"price": ">=818.65"
"price": ">=818.98"
},
"action": {
"type": "sell",
@@ -8328,7 +8328,7 @@
},
"priority": 99,
"rationale": "没有分支匹配时的默认动作",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
}
@@ -8518,7 +8518,7 @@
},
"priority": 99,
"rationale": "没有分支匹配时的默认动作",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
}
@@ -8653,7 +8653,7 @@
},
"priority": 99,
"rationale": "没有分支匹配时的默认动作",
"trigger_count": 8,
"trigger_count": 9,
"success_rate": null,
"last_triggered": "2026-06-24"
}
@@ -8662,5 +8662,5 @@
}
],
"total": 43,
"regenerated_at": "2026-06-24 10:31"
"regenerated_at": "2026-06-24 10:44"
}
+39 -39
View File
@@ -26,8 +26,8 @@
"action_note": "⚠️盈亏比偏低(1:1.2),不建议加仓",
"timing_signal": "大盘中性,行业偏弱,蓝筹,持有"
},
"price": 416.4,
"change_pct": 0.39
"price": 415.6,
"change_pct": 0.19
},
{
"code": "00981",
@@ -55,8 +55,8 @@
"action_note": "⚠️盈亏比偏低(1:1.3),不建议加仓",
"timing_signal": "大盘中性,行业中性,高估值,蓝筹,持有"
},
"price": 83.65,
"change_pct": 7.45
"price": 84.7,
"change_pct": 8.8
},
{
"code": "01088",
@@ -84,8 +84,8 @@
"action_note": "⚠️盈亏比偏低(1:1.2),不建议加仓",
"timing_signal": "大盘中性,行业中性,蓝筹,持有"
},
"price": 41.52,
"change_pct": -1.28
"price": 41.36,
"change_pct": -1.66
},
{
"code": "01211",
@@ -113,8 +113,8 @@
"action_note": "深套持有",
"timing_signal": "大盘中性,行业偏弱,蓝筹,持有"
},
"price": 74.95,
"change_pct": -1.19
"price": 74.8,
"change_pct": -1.32
},
{
"code": "01478",
@@ -142,8 +142,8 @@
"action_note": "深套持有",
"timing_signal": "大盘中性,行业中性,低估值,持有"
},
"price": 7.67,
"change_pct": -2.66
"price": 7.66,
"change_pct": -2.79
},
{
"code": "01888",
@@ -171,8 +171,8 @@
"action_note": "短炒强趋势持",
"timing_signal": "大盘中性,行业偏弱,高估值,强趋势持"
},
"price": 96.15,
"change_pct": 10.2
"price": 97.1,
"change_pct": 11.29
},
{
"code": "02202",
@@ -200,8 +200,8 @@
"action_note": "深套持有",
"timing_signal": "大盘中性,行业中性,高估值,持有"
},
"price": 2.34,
"change_pct": -2.92
"price": 2.32,
"change_pct": -3.33
},
{
"code": "02388",
@@ -229,8 +229,8 @@
"action_note": "",
"timing_signal": "大盘中性,行业偏强,低估值,蓝筹,持有"
},
"price": 46.32,
"change_pct": -1.45
"price": 46.26,
"change_pct": -1.57
},
{
"code": "09988",
@@ -258,8 +258,8 @@
"action_note": "深套持有",
"timing_signal": "大盘中性,行业偏弱,蓝筹,持有"
},
"price": 98.45,
"change_pct": -0.51
"price": 98.25,
"change_pct": -0.66
},
{
"code": "300035",
@@ -288,7 +288,7 @@
"timing_signal": "大盘中性,行业偏弱,持有"
},
"price": 16.17,
"change_pct": -0.98
"change_pct": -1.16
},
{
"code": "300548",
@@ -316,8 +316,8 @@
"action_note": "短炒强趋势持",
"timing_signal": "大盘中性,行业中性,高估值,强趋势持"
},
"price": 282.02,
"change_pct": -1.4
"price": 280.5,
"change_pct": -1.93
},
{
"code": "300690",
@@ -345,8 +345,8 @@
"action_note": "⚠️盈亏比偏低(1:1.5),不建议加仓",
"timing_signal": "大盘中性,行业偏弱,持有"
},
"price": 22.83,
"change_pct": -3.39
"price": 22.78,
"change_pct": -3.6
},
{
"code": "300750",
@@ -374,8 +374,8 @@
"action_note": "",
"timing_signal": "大盘中性,行业偏弱,蓝筹,持有"
},
"price": 392.25,
"change_pct": -0.07
"price": 391.74,
"change_pct": -0.2
},
{
"code": "518880",
@@ -403,8 +403,8 @@
"action_note": "深套持有",
"timing_signal": "大盘中性,行业偏弱,持有"
},
"price": 8.45,
"change_pct": -1.07
"price": 8.44,
"change_pct": -1.18
},
{
"code": "600036",
@@ -432,8 +432,8 @@
"action_note": "⚠️盈亏比偏低(1:1.2),不建议加仓",
"timing_signal": "大盘中性,行业偏强,低估值,蓝筹,弱势持有"
},
"price": 37.07,
"change_pct": -0.88
"price": 37.09,
"change_pct": -0.83
},
{
"code": "600563",
@@ -490,8 +490,8 @@
"action_note": "⚠️盈亏比偏低(1:1.2),不建议加仓",
"timing_signal": "大盘中性,行业偏强,持有"
},
"price": 10.47,
"change_pct": -1.69
"price": 10.45,
"change_pct": -1.88
},
{
"code": "601899",
@@ -519,8 +519,8 @@
"action_note": "深套持有",
"timing_signal": "大盘中性,行业偏弱,低估值,蓝筹,持有"
},
"price": 27.56,
"change_pct": -0.68
"price": 27.44,
"change_pct": -1.12
},
{
"code": "603259",
@@ -548,8 +548,8 @@
"action_note": "",
"timing_signal": "大盘中性,行业偏强,低估值,持有"
},
"price": 116.18,
"change_pct": 9.28
"price": 116.27,
"change_pct": 9.37
},
{
"code": "688411",
@@ -577,8 +577,8 @@
"action_note": "",
"timing_signal": "持有"
},
"price": 267.18,
"change_pct": -1.86
"price": 266.3,
"change_pct": -2.18
},
{
"code": "688981",
@@ -606,8 +606,8 @@
"action_note": "",
"timing_signal": "大盘中性,行业中性,高估值,蓝筹,持有"
},
"price": 151.24,
"change_pct": 6.73
"price": 150.0,
"change_pct": 5.86
}
]
}
+5 -5
View File
@@ -108,7 +108,7 @@
"date": "2026-06-24",
"high": 88.32,
"low": 83.0,
"close": 83.02
"close": 83.1
}
],
"00700": [
@@ -1284,7 +1284,7 @@
"date": "2026-06-24",
"high": 68.8,
"low": 65.92,
"close": 67.09
"close": 66.51
}
],
"300548": [
@@ -2316,7 +2316,7 @@
"date": "2026-06-24",
"high": 745.2,
"low": 660.01,
"close": 684.0
"close": 684.99
}
],
"688802": [
@@ -2609,8 +2609,8 @@
{
"date": "2026-06-24",
"high": 52.43,
"low": 49.05,
"close": 49.07
"low": 49.03,
"close": 49.32
}
],
"002171": [
+1 -1
View File
@@ -458,7 +458,7 @@ def main():
out = "\n".join(lines)
print(out)
push_to_xmpp(out)
return 1
return 0
if __name__ == "__main__":