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

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

Computes the Stochastic %K line by comparing each closing price to the high-low range of the preceding `k` bars, then derives the %D smoothing line by applying a simple moving average of period `d` to the %K series. Returns both series as lists for further filtering or chart plotting.

The Stochastic oscillator is particularly effective at identifying overbought and oversold conditions in ranging markets. Readings above 80 indicate overbought; below 20 indicate oversold. Unlike RSI, Stochastic uses the price range rather than price momentum, making it more sensitive to short-term reversals at structural highs and lows.

[ USAGE EXAMPLE ]
example.py
k_vals, d_vals = stochastic(high, low, close, k=14, d=3)
print(f"%K={k_vals[-1]:.1f}  %D={d_vals[-1]:.1f}")
[ FULL CODE ]
calculate_stochastic.py
def stochastic(high, low, close, k=14, d=3): k_values = [(close[i]-min(low[i-k+1:i+1]))/(max(high[i-k+1:i+1])-min(low[i-k+1:i+1]))*100 for i in range(k-1,len(close))] return k_values, calc_sma(k_values, d)
[ METADATA ]
CategoryIndicators
ComplexityBeginner
LanguagePython 3.10+
TagsStoch, Indicator
[ ASK CLAUDE ]

Ask AI about this skill before installing it.

[ RELATED SKILLS ]