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

calculate_macd

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

Computes all three MACD components: the MACD line (fast EMA − slow EMA), the signal line (EMA of MACD line), and implicitly the histogram (MACD line − signal line). Returns the MACD line and signal line arrays as separate lists with matching indices.

Default parameters (12, 26, 9) match the MACD settings used in TradingView by default, ensuring that Claude's computed values align with what the trader sees on the chart. Changing the fast period to 8 produces a more sensitive MACD for volatile crypto assets; increasing the slow period to 30 smooths out the signal for swing trading on weekly charts.

[ USAGE EXAMPLE ]
example.py
macd_line, signal_line = calc_macd(close, fast=12, slow=26, sig=9)
hist = macd_line[-1] - signal_line[-1]
print("Positive" if hist > 0 else "Negative")
[ FULL CODE ]
calculate_macd.py
def calc_macd(close, fast=12, slow=26, sig=9): ema_f = calc_ema(close, fast) ema_s = calc_ema(close, slow) macd_line = [f-s for f,s in zip(ema_f,ema_s)] signal = calc_ema(macd_line, sig) return macd_line, signal
[ METADATA ]
CategoryIndicators
ComplexityBeginner
LanguagePython 3.10+
TagsMACD, Indicator
[ ASK CLAUDE ]

Ask AI about this skill before installing it.

[ RELATED SKILLS ]