★ ★ ★LIVE97 COINS ANALYZED BY CLAUDE MCP·VIEW SKILLS →★ ★ ★
MCP
claude.analyze("BTCUSDT")→ [buy] signal detectedmcp.draw_levels(resistance=98000)→ [drawn] on chartclaude.scan_watchlist(coins=100)→ [42] buy signals foundmcp.connect("tradingview")→ [connected] daily TFclaude.detect_sr("SOLUSDT")→ [S: $165] [R: $185]claude.analyze("ETHUSDT")→ [neutral] consolidatingmcp.screenshot_chart("BNBUSDT")→ [captured] analyzing...claude.score_quality("XRPUSDT")→ score: 78/100mcp.set_timeframe("1D")→ [ok] chart updatedclaude.analyze("BTCUSDT")→ [buy] signal detectedmcp.draw_levels(resistance=98000)→ [drawn] on chartclaude.scan_watchlist(coins=100)→ [42] buy signals foundmcp.connect("tradingview")→ [connected] daily TFclaude.detect_sr("SOLUSDT")→ [S: $165] [R: $185]claude.analyze("ETHUSDT")→ [neutral] consolidatingmcp.screenshot_chart("BNBUSDT")→ [captured] analyzing...claude.score_quality("XRPUSDT")→ score: 78/100mcp.set_timeframe("1D")→ [ok] chart updated
BACK TO CLAUDE SKILLS

generate_market_narrative

Claude AIClaude APINarrative
INSTALLATION
$python -c "exec(open('generate_market_narrative.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]

Calls the Claude API (`claude-sonnet-4-5`) with a structured prompt containing the coin name, RSI value, and trend classification, requesting a 2-sentence market analysis narrative. The `max_tokens=300` limit is sufficient for the target output length while preventing runaway token consumption in batch runs.

The prompt requests Indonesian language output to match the MCPTrade target audience, but this is trivially changed by modifying the prompt string. For multi-language deployments, parameterize the language instruction and pass it alongside the analysis data. Narrative quality improves significantly when more indicator context is included in the prompt — add MACD state, EMA cross condition, and key S/R levels for richer output.

[ USAGE EXAMPLE ]
example.py
analysis = {"rsi": 62.4, "trend": "Bullish", "signal": "buy"}
text = generate_narrative("Bitcoin", analysis)
# → "Bitcoin menunjukkan momentum bullish yang kuat..."
[ FULL CODE ]
generate_market_narrative.py
def generate_narrative(coin, analysis): client = anthropic.Anthropic() msg = client.messages.create(model="claude-sonnet-4-5", max_tokens=300, messages=[{"role":"user","content":f"Write 2-sentence analysis for {coin} in Indonesian. RSI: {analysis['rsi']}, trend: {analysis['trend']}"}]) return msg.content[0].text
[ METADATA ]
CategoryClaude AI
ComplexityBeginner
LanguagePython 3.10+
TagsClaude API, Narrative
[ ASK CLAUDE ]

Ask AI about this skill before installing it.

[ RELATED SKILLS ]