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

identify_trend_direction

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

Classifies the current market trend by computing the percentage spread between a fast EMA (default 20) and a slow EMA (default 50) at the most recent bar. A spread greater than +1.5% is classified as Bullish; below -1.5% as Bearish; between those bounds as Sideways.

The threshold values are calibrated for daily crypto charts where EMA spreads are wider than in equity markets due to higher volatility. The function intentionally returns a string label rather than a numeric score to make it directly usable as a filter condition in scan loops and Claude prompt templates.

[ USAGE EXAMPLE ]
example.py
close = data["close"]
trend = identify_trend(close, fast=20, slow=50)
print(trend)  # "Bullish" | "Bearish" | "Sideways"
[ FULL CODE ]
identify_trend_direction.py
def identify_trend(close, fast=20, slow=50): ema_f = calc_ema(close, fast) ema_s = calc_ema(close, slow) diff = (ema_f[-1] - ema_s[-1]) / ema_s[-1] * 100 if diff > 1.5: return "Bullish" elif diff < -1.5: return "Bearish" else: return "Sideways"
[ METADATA ]
CategoryChart Analysis
ComplexityBeginner
LanguagePython 3.10+
TagsAnalysis, Trend
[ ASK CLAUDE ]

Ask AI about this skill before installing it.

[ RELATED SKILLS ]