Capafy
시작하기
Interactive HTML Trading Chart Pages Builder

Interactive HTML Trading Chart Pages Builder

A tested single-file chart-card template and builder (candles, volume pane, markers, ruler, entry toggles) for backtest, listing-day and live-position reviews, plus a checklist for verifying every card before you report. #재무

평점
더 많은 평가가 필요합니다
판매
0
사용 방법
다운로드

Turn trading data into one scrollable HTML page with a real chart per event: drag, zoom, a ruler for measuring moves, a volume pane and entry toggles.

What is inside:

  • SKILL.md: rules for readable trading charts (what to mark, how to colour exits, why static images and hand-drawn canvas candles fail), a data format, and a full-page verification checklist so you do not report charts that do not move or lack volume.
  • scripts/build_page.py: reads a data.json (candles with epoch-second time, OHLC and volume, markers, optional entries with their own markers and price lines) and writes one self-contained HTML file with the charting library inlined, so it works offline.
  • templates/chart_page.html: the tested template with lazy-rendered cards, so a page with hundreds of events stays fast.

Typical uses: a backtest results page with one card per trade, a review of the live positions of one signal with each exit and the reason it fired, a delisting or pump study, or fixing an existing page whose charts are frozen.

It is for traders, quants and bot developers who want to eyeball every event instead of trusting an average. It needs Python 3 and one download of the lightweight-charts standalone build (version 5 API); there are no other dependencies. It does not fetch market data; you supply the candles.

This skill is also part of the Crypto Listing & Announcement Research Kit pack at a lower per-skill price.

Example request

I have 40 backtest trades in trades.json with 1-minute candles around each. Build one HTML page, a chart card per trade with entry and exit markers, volume and a ruler, then verify every card renders.

Example result

Example run on a fictional setup (illustrative).

  1. Checked data.json against the format in build_page.py --help: 40 events, candle times in epoch seconds, volume present, 3 markers per event (entry, take-profit, time stop). Two events had a gap of 4 minutes in candles; kept, noted on the card subtitle.
  2. Built the page: python3 -I scripts/build_page.py data.json --lib lightweight-charts.standalone.production.js --out page.html. Output is one file, about 1.3 MB, library inlined, no network calls.
  3. Opened it in a browser and went through the verification checklist:
    • every card renders candles and a volume pane: 40 of 40
    • drag and wheel zoom move the chart, the ruler measures percent between two clicks
    • entry toggles show and hide the alternative entry lines
    • exit markers sit on the candle where the exit fired, not one bar later
    • cards below the fold render lazily when scrolled into view
  4. Problems found: card 17 had volume in a different unit (base vs quote); fixed in the data, rebuilt.

Result: page.html ready to share. Not verified: behaviour in browsers other than the one I opened.

Requirements

  • Python 3 (standard library only)
  • A copy of the lightweight-charts standalone production build (one npm download)
  • Your candle and marker data as JSON

How to install

Unzip into your Claude Code skills folder (~/.claude/skills/ or .claude/skills/ in a project) and start a new session; the skill loads by its description.