Skip to content

Commit d03fa24

Browse files
authored
Clarify SOXL risk-cap notification copy
1 parent c754272 commit d03fa24

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

notifications/telegram.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
"market_status_blend_gate_defensive": "🛡️ 降杠杆({asset})",
7676
"signal_blend_gate_risk_on": "{trend_symbol} 站上 {window} 日门槛线,持有 SOXL {soxl_ratio} + SOXX {soxx_ratio}",
7777
"signal_blend_gate_defensive": "{trend_symbol} 跌破门槛线,防守持有 SOXX {soxx_ratio}",
78-
"market_status_blend_gate_overlay_capped": "🧯 过热降档({asset})",
79-
"signal_blend_gate_overlay_capped": "{trend_symbol} 仍在 {window} 日门槛线上方,但触发过热降档({reasons}),目标仓位 {allocation_text}",
78+
"market_status_blend_gate_overlay_capped": "🧯 风控降档({asset})",
79+
"signal_blend_gate_overlay_capped": "{trend_symbol} 仍在 {window} 日门槛线上方,但触发风控降档({reasons}),目标仓位 {allocation_text}",
8080
"blend_gate_reason_rsi_cap": "RSI 超阈值",
8181
"blend_gate_reason_bollinger_cap": "突破布林上轨",
8282
"blend_gate_reason_volatility_delever": "{symbol} {window} 日年化波动率 {volatility} 高于 {threshold},SOXL 转向 {redirect_symbol}",
@@ -216,8 +216,8 @@
216216
"market_status_blend_gate_defensive": "🛡️ DE-LEVER ({asset})",
217217
"signal_blend_gate_risk_on": "{trend_symbol} above {window}d gated entry, hold SOXL {soxl_ratio} + SOXX {soxx_ratio}",
218218
"signal_blend_gate_defensive": "{trend_symbol} below gated entry, hold defensive SOXX {soxx_ratio}",
219-
"market_status_blend_gate_overlay_capped": "🧯 HEAT-CAP ({asset})",
220-
"signal_blend_gate_overlay_capped": "{trend_symbol} stays above the {window}d gate, but overlay cap ({reasons}) cuts exposure to {allocation_text}",
219+
"market_status_blend_gate_overlay_capped": "🧯 RISK-CAP ({asset})",
220+
"signal_blend_gate_overlay_capped": "{trend_symbol} stays above the {window}d gate, but risk cap ({reasons}) cuts exposure to {allocation_text}",
221221
"blend_gate_reason_rsi_cap": "RSI over threshold",
222222
"blend_gate_reason_bollinger_cap": "price above upper band",
223223
"blend_gate_reason_volatility_delever": "{symbol} {window}d annualized volatility {volatility} is above {threshold}; redirect SOXL to {redirect_symbol}",

tests/test_notifications.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_build_translator_supports_chinese():
1414
assert translate("paper_liquidation_only") == "IBKR 模拟账户清仓模式"
1515
assert translate("paper_liquidation_positions_seen", count=4) == "识别持仓=4"
1616
assert translate("market_status_blend_gate_risk_on", asset="SOXX+SOXL") == "🚀 风险开启(SOXX+SOXL)"
17-
assert translate("market_status_blend_gate_overlay_capped", asset="SOXX") == "🧯 过热降档(SOXX)"
17+
assert translate("market_status_blend_gate_overlay_capped", asset="SOXX") == "🧯 风控降档(SOXX)"
1818
assert (
1919
translate(
2020
"signal_blend_gate_risk_on",

0 commit comments

Comments
 (0)