★ ★ ★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_trade_plan

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

Constructs a prompt containing the coin name, signal direction, and support/resistance level data, then asks Claude to generate a complete trade plan in JSON format with entry price, stop loss, take profit 1 (TP1), and take profit 2 (TP2) fields. The JSON format request ensures structured output that can be parsed without brittle string matching.

Trade plans generated by Claude are based on common risk management heuristics: stop loss below nearest support for longs, TP1 at the nearest resistance, TP2 at the next major resistance. For production use, validate the JSON output with `json.loads()` and add error handling for cases where Claude returns explanatory text instead of pure JSON.

[ USAGE EXAMPLE ]
example.py
sr = {"support": [94000, 91500], "resistance": [98000, 101500]}
plan = generate_trade_plan("Bitcoin", sr, "buy")
# → '{"entry": 94500, "sl": 91000, "tp1": 98000, "tp2": 101500}'
[ FULL CODE ]
generate_trade_plan.py
def generate_trade_plan(coin, sr, signal): msg = client.messages.create(model="claude-sonnet-4-5", max_tokens=400, messages=[{"role":"user","content":f"Create trade plan for {coin}. Signal: {signal}. S: {sr['support']}. R: {sr['resistance']}. Entry, SL, TP1, TP2. JSON format."}]) return msg.content[0].text
[ METADATA ]
CategoryClaude AI
ComplexityBeginner
LanguagePython 3.10+
TagsClaude API, Trade
[ ASK CLAUDE ]

Ask AI about this skill before installing it.

[ RELATED SKILLS ]