Technical Indicators

Calculate trading indicators (RSI, SMA, EMA) from price data.

XSpoonAi 6b48527 3 files · 5.1 KB Updated

File contents

Technical Indicators

Gives SpoonOS agents the ability to perform Technical Analysis (TA). It takes raw price arrays (which can be fetched via other skills) and computes standard indicators like Relative Strength Index (RSI) and Moving Averages.

Quick Start

# Calculate RSI for a price history
indicators = await agent.run_tool(
    "calc_indicators",
    prices=[100, 102, 101, 105, 110, ...]
)
print(f"RSI: {indicators['rsi']}")

Scripts

Script Purpose
indicators.py Math engine for trading signals

Best Practices

  1. Use consistent timeframes (e.g., all 1-hour candle closes) for the input list.
  2. Combine multiple indicators (e.g., RSI < 30 AND Price > SMA) for stronger signals.

XSpoonAi/spoon-awesome-skill/tree/main/web3-data-intelligence/technical-indicators commit 6b48527fd0

Frequently asked questions

npx skillmds@latest add xspoonai/technical-indicators