Index of every page on this site: llms.txt
All skills
staskh avatar

/chart-ema-rsi

@b025c28
by staskhstaskh/trading_skills417 stars
89
Run it yourself

Renders a JPG chart of a ticker's daily candles with EMA 9/20 lines, their golden/death crossovers marked, and an RSI 14 panel with 70/30 bands. Use when the user asks for a chart, candle plot, EMA crossover chart or RSI chart of a stock.

Use this Skill: https://skilld.dev/gh/staskh/trading_skills/chart-ema-rsi

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈63 tokens for metadata: the name and description. ≈302 when used: this file.

Description uses 3.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈254 characters, or 3.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Chart: EMA crossover and RSI

Daily candles from Yahoo with EMA(fast) and EMA(slow) over the price, a green ▲ under the candle of each golden cross (fast crosses above slow) and a red ▼ over each death cross, and RSI in a lower panel with 70/30 lines. Extra history is downloaded before the window, so the lines are settled from the first plotted bar.

Instructions

uv run python scripts/chart.py SYMBOL [--period 6mo] [--fast 9] [--slow 20] [--rsi 14] [--output PATH]

Show the user the image after it's written.

Arguments

  • SYMBOL - Ticker
  • --period - Plotted window: 1mo, 3mo, 6mo (default), 1y, 2y
  • --fast / --slow - EMA lengths (default 9 / 20); fast must be shorter
  • --rsi - RSI length (default 14)
  • --output - JPG path (default sandbox/<SYMBOL>_ema_rsi_YYYY-MM-DD_HHmm.jpg)

Output

JSON: symbol, path, period, last_date, close, ema_fast_length, ema_slow_length, ema_fast, ema_slow, trend (bullish when fast is above slow), rsi, crossovers (date, type golden/death, ema_fast at the cross) inside the window, generated_at, data_delay; or error.

During market hours the last candle is today's partial bar.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts12d3 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    The skill is a specialized utility for generating stock market charts with technical indicators (EMA and RSI). It uses a Python script to interface with a helper library to fetch data and render a JPG image. No security risks or malicious patterns were identified during the analysis.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: LOW · No issues

Signed by skilld at b025c28. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 6 days ago.

Activeupdated 2 weeks ago
dependencies
[
  "trading-skills"
]

README badge

README badge for staskh/trading_skills/chart-ema-rsi