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

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

Pure Python implementation of Wilder's Relative Strength Index using a 14-period window by default. Computes average gain and average loss over the initial period, then applies the standard RS = avg_gain / avg_loss formula to derive the RSI. The function returns the RSI value for the final bar in the input series.

Written without NumPy or pandas dependencies so it runs directly in a Claude Code terminal session without a virtual environment. For production pipelines processing thousands of coins, the function would benefit from Wilder's smoothing method (EMA-based) applied to the gain/loss series rather than simple averaging — the current implementation gives identical results for periods ≥ 14 but diverges slightly for shorter windows.

[ USAGE EXAMPLE ]
example.py
close = [100, 102, 101, 104, 103, 106, 108, 107, 110, 109,
         112, 111, 113, 115, 114]
rsi = calc_rsi(close, period=14)
print(rsi)  # 68.42
[ FULL CODE ]
calculate_rsi.py
def calc_rsi(close, period=14): deltas = [close[i]-close[i-1] for i in range(1,len(close))] avg_g = sum([max(d,0) for d in deltas[:period]])/period avg_l = sum([abs(min(d,0)) for d in deltas[:period]])/period rs = avg_g/avg_l if avg_l else 100 return round(100 - (100/(1+rs)), 2)
[ METADATA ]
CategoryIndicators
ComplexityBeginner
LanguagePython 3.10+
TagsRSI, Indicator
[ ASK CLAUDE ]

Ask AI about this skill before installing it.

[ RELATED SKILLS ]