diff --git a/notifications/telegram.py b/notifications/telegram.py index b35e91b..24ec785 100644 --- a/notifications/telegram.py +++ b/notifications/telegram.py @@ -75,8 +75,8 @@ "market_status_blend_gate_defensive": "🛡️ 降杠杆({asset})", "signal_blend_gate_risk_on": "{trend_symbol} 站上 {window} 日门槛线,持有 SOXL {soxl_ratio} + SOXX {soxx_ratio}", "signal_blend_gate_defensive": "{trend_symbol} 跌破门槛线,防守持有 SOXX {soxx_ratio}", - "market_status_blend_gate_overlay_capped": "🧯 过热降档({asset})", - "signal_blend_gate_overlay_capped": "{trend_symbol} 仍在 {window} 日门槛线上方,但触发过热降档({reasons}),目标仓位 {allocation_text}", + "market_status_blend_gate_overlay_capped": "🧯 风控降档({asset})", + "signal_blend_gate_overlay_capped": "{trend_symbol} 仍在 {window} 日门槛线上方,但触发风控降档({reasons}),目标仓位 {allocation_text}", "blend_gate_reason_rsi_cap": "RSI 超阈值", "blend_gate_reason_bollinger_cap": "突破布林上轨", "blend_gate_reason_volatility_delever": "{symbol} {window} 日年化波动率 {volatility} 高于 {threshold},SOXL 转向 {redirect_symbol}", @@ -216,8 +216,8 @@ "market_status_blend_gate_defensive": "🛡️ DE-LEVER ({asset})", "signal_blend_gate_risk_on": "{trend_symbol} above {window}d gated entry, hold SOXL {soxl_ratio} + SOXX {soxx_ratio}", "signal_blend_gate_defensive": "{trend_symbol} below gated entry, hold defensive SOXX {soxx_ratio}", - "market_status_blend_gate_overlay_capped": "🧯 HEAT-CAP ({asset})", - "signal_blend_gate_overlay_capped": "{trend_symbol} stays above the {window}d gate, but overlay cap ({reasons}) cuts exposure to {allocation_text}", + "market_status_blend_gate_overlay_capped": "🧯 RISK-CAP ({asset})", + "signal_blend_gate_overlay_capped": "{trend_symbol} stays above the {window}d gate, but risk cap ({reasons}) cuts exposure to {allocation_text}", "blend_gate_reason_rsi_cap": "RSI over threshold", "blend_gate_reason_bollinger_cap": "price above upper band", "blend_gate_reason_volatility_delever": "{symbol} {window}d annualized volatility {volatility} is above {threshold}; redirect SOXL to {redirect_symbol}", diff --git a/tests/test_notifications.py b/tests/test_notifications.py index 70cb73e..91b1393 100644 --- a/tests/test_notifications.py +++ b/tests/test_notifications.py @@ -14,7 +14,7 @@ def test_build_translator_supports_chinese(): assert translate("paper_liquidation_only") == "IBKR 模拟账户清仓模式" assert translate("paper_liquidation_positions_seen", count=4) == "识别持仓=4" assert translate("market_status_blend_gate_risk_on", asset="SOXX+SOXL") == "🚀 风险开启(SOXX+SOXL)" - assert translate("market_status_blend_gate_overlay_capped", asset="SOXX") == "🧯 过热降档(SOXX)" + assert translate("market_status_blend_gate_overlay_capped", asset="SOXX") == "🧯 风控降档(SOXX)" assert ( translate( "signal_blend_gate_risk_on",