中文译文
{{val:symbol=SOLUSDT}} {{val:rsi_ob=70}} {{val:rsi_os=30}} {{val:max_repeat=3}}
交易对:{{symbol}} | 时间:{{current_time}} 最新信号:{{last_trigger_action}} @ {{last_trigger_price}} | 已执行:{{last_trigger_at}}
完整信号历史: {{trigger_history}}
{{comment: External sentiment — Fear & Greed}} 恐惧与贪婪指数: {{get:https://api.alternative.me/fng/?limit=1&format=json}}
{{comment: Strategy master config in Toon format}} 主配置: {{toon:{"name":"full_strategy","symbol":"SOLUSDT","bias_source":"fear_greed","technicals":["RSI","MACD"],"rsi":{"overbought":70,"oversold":30},"macd":{"signal":"histogram_cross"},"position_rules":{"max_open":1,"allow_same_direction_repeat":false},"safety":{"max_consecutive_non_exit":3}}}}
策略逻辑:
第 1 步 — 情绪偏向(来自恐惧与贪婪指数获取):
- 0–30:仅偏向做多
- 31–50:倾向做多,允许中性
- 51–74:倾向做空,允许中性
- 75–100:仅偏向做空
第 2 步 — 技术面确认(来自图表):
- 做多确认:RSI < {{rsi_os}} 且转向上 + MACD 正向交叉
- 做空确认:RSI > {{rsi_ob}} 且转向下 + MACD 负向交叉
第 3 步 — 持仓检查(来自 trigger_history):
- 如果上一个动作是做多或做空 → 必须先平仓才能新开仓
- 如果 {{trigger_history}} 显示 {{max_repeat}} 个或更多信号且没有平仓 → 持有
第 4 步 — 决策:
- 情绪与技术面一致 → 采纳信号
- 情绪与技术面不一致 → 持有
- 有持仓且有平仓信号 → 平仓
- 有持仓且无平仓信号 → 持有
- 无持仓且无明确信号 → 持有
{{comment: max_repeat val used above as a safety cap on consecutive non-exit signals}}
English original
{{val:symbol=SOLUSDT}} {{val:rsi_ob=70}} {{val:rsi_os=30}} {{val:max_repeat=3}}
Symbol: {{symbol}} | Time: {{current_time}} Last signal: {{last_trigger_action}} @ {{last_trigger_price}} | Executed: {{last_trigger_at}}
Full signal history: {{trigger_history}}
{{comment: External sentiment — Fear & Greed}} Fear & Greed Index: {{get:https://api.alternative.me/fng/?limit=1&format=json}}
{{comment: Strategy master config in Toon format}} Master config: {{toon:{"name":"full_strategy","symbol":"SOLUSDT","bias_source":"fear_greed","technicals":["RSI","MACD"],"rsi":{"overbought":70,"oversold":30},"macd":{"signal":"histogram_cross"},"position_rules":{"max_open":1,"allow_same_direction_repeat":false},"safety":{"max_consecutive_non_exit":3}}}}
STRATEGY LOGIC:
Step 1 — Sentiment Bias (from Fear & Greed fetch):
- 0–30: Favor LONG only
- 31–50: Lean LONG, allow neutral
- 51–74: Lean SHORT, allow neutral
- 75–100: Favor SHORT only
Step 2 — Technical Confirmation (from chart):
- LONG confirmed: RSI < {{rsi_os}} turning up + MACD positive cross
- SHORT confirmed: RSI > {{rsi_ob}} turning down + MACD negative cross
Step 3 — Position Check (from trigger_history):
- If last action was LONG or SHORT → must EXIT before new entry
- If {{trigger_history}} shows {{max_repeat}} or more signals without EXIT → HOLD
Step 4 — Decision:
- Sentiment and technicals agree → take signal
- Sentiment and technicals disagree → HOLD
- Open position with exit signal → EXIT
- Open position without exit signal → HOLD
- No position and no clear signal → HOLD
{{comment: max_repeat val used above as a safety cap on consecutive non-exit signals}}