pinescript-quant-analysis
Build professional-grade technical indicators with Pine Script, execute them anywhere using PineTS, and visualize results with QFChart. A complete indicator-to-chart pipeline for AI agents and developers.
Best use case
pinescript-quant-analysis is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Build professional-grade technical indicators with Pine Script, execute them anywhere using PineTS, and visualize results with QFChart. A complete indicator-to-chart pipeline for AI agents and developers.
Teams using pinescript-quant-analysis should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/pinescript-quant-analysis/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How pinescript-quant-analysis Compares
| Feature / Agent | pinescript-quant-analysis | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Build professional-grade technical indicators with Pine Script, execute them anywhere using PineTS, and visualize results with QFChart. A complete indicator-to-chart pipeline for AI agents and developers.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Pine Quant Analysis Skill
**Create, run, and visualize technical indicators anywhere Using Pine Script.**
This skill teaches LLM agents and developers how to:
- Write **native Pine Script indicators**
- Execute them on historical or live data using **PineTS**
- Extract computed indicator values programmatically
- Visualize price action and indicators with **QFChart**
Designed for research agents, trading bots, dashboards, and quantitative systems.
---
## What This Skill Unlocks
- Run Pine Script logic in **Node.js, browsers, Deno, Bun**
- Compute indicators on **any OHLCV data source**
- Separate **indicator logic** from **visualization**
- Automate backtests, analytics, alerts, and charts
---
## Prerequisites
- JavaScript or TypeScript runtime
- OHLCV market data (exchange API, CSV, database, or stream)
- PineTS and QFChart libraries
```bash
npm install pinets @qfo/qfchart
```
---
## Step 1 - Define a Technical Indicator (Pine Script)
PineTS executes **real Pine Script (v6)** exactly as written.
### Example: EMA Crossover Indicator
```js
const indicatorScript = `
//@version=5
indicator("EMA Cross", overlay=true)
fast = ta.ema(close, 9)
slow = ta.ema(close, 21)
plot(fast, "Fast EMA")
plot(slow, "Slow EMA")
`;
```
This indicator computes two exponential moving averages and plots them on price.
---
## Step 2 - Run the Indicator with PineTS
Create a PineTS engine, attach a data provider, and execute the script.
```js
import { PineTS, Provider } from 'pinets';
const engine = new PineTS(
Provider.Binance,
"BTCUSDT",
"1h",
200
);
const { marketData, plots } = await engine.run(indicatorScript);
```
### What You Get
- `marketData` → OHLCV time series
- `plots` → indicator outputs indexed by plot name
```js
plots["Fast EMA"].data;
plots["Slow EMA"].data;
```
Each plot is a time-aligned numeric series ready for analysis or visualization.
---
## Step 3 - Use Indicator Data Programmatically
Indicator outputs can power:
- Signal generation
- Backtesting logic
- Alerts & notifications
- Machine learning pipelines
```js
const fast = plots["Fast EMA"].data;
const slow = plots["Slow EMA"].data;
const crossover = fast.at(-1) > slow.at(-1);
```
No charts required - indicators are just data.
---
## Step 4 - Visualize with QFChart (Optional)
QFChart renders high-performance financial charts with multiple panes and overlays.
### Format Market Data
```js
const candles = marketData.map(d => ({
time: d.time,
open: d.open,
high: d.high,
low: d.low,
close: d.close,
volume: d.volume
}));
```
---
### Render Price + Indicators
```js
const chart = new QFChart.QFChart(document.getElementById("chart"), {
title: "BTC/USDT - EMA Crossover",
height: "600px"
});
chart.setMarketData(candles);
chart.addIndicator("Fast EMA", plots["Fast EMA"].data, { isOverlay: true });
chart.addIndicator("Slow EMA", plots["Slow EMA"].data, { isOverlay: true });
```
- Overlay indicators on price
- Or render them in separate panes (RSI, MACD, etc.)
---
## Step 5 - Real-Time & Streaming Updates
Both PineTS and QFChart support incremental updates.
```js
chart.updateIndicator("Fast EMA", newFastValues);
```
Use this for live dashboards, bots, or monitoring agents.
---
## Common Indicator Patterns
- Trend indicators: EMA, SMA, VWAP
- Momentum: RSI, Stochastic, MACD
- Volatility: Bollinger Bands, ATR
- Custom signals using full Pine Script logic
PineTS supports 60+ built-in Pine Script TA functions.
---
## Best Practices for Agents
- Treat Pine Script as **pure computation**
- Keep visualization optional
- Cache indicator outputs for reuse
- Run multiple timeframes via multiple engines
This enables scalable, composable quantitative systems.
---
## Quick Reference
```bash
# Execute indicator
engine.run(pineScript)
# Access indicator values
plots["RSI"].data
# Visualize (optional)
chart.addIndicator(...)
```
---
## Learn More
- PineTS - Pine Script runtime & engine
- QFChart - Financial charting library
- QuantForge - Quantitative tooling ecosystem
---
> Don't forget to star PineTS and QFChart projects if you like them : https://github.com/QuantForgeOrg/PineTS , https://github.com/QuantForgeOrg/QFChartRelated Skills
powerdrill-data-analysis-skill
This skill should be used when the user wants to analyze, explore, visualize, or query data using Powerdrill.
polymarket-analysis
Analyze Polymarket prediction markets for trading edges. Pair Cost arbitrage, whale tracking, sentiment analysis, momentum signals, user profile tracking. No execution.
garmin-health-analysis
Talk to your Garmin data naturally - "what was my fastest speed snowboarding?", "how did I sleep last night?", "what was my heart rate at 3pm?". Access 20+ metrics (sleep stages, Body Battery, HRV, VO2 max, training readiness, body composition, SPO2), download FIT/GPX files for route analysis, query elevation/pace at any point, and generate interactive health dashboards. From casual "show me this week's workouts" to deep "analyze my recovery vs training load".
youtube-notification-analysis
Analyze YouTube notifications for investment and trading insights.
cybercentry-quantum-cryptography-verification
Cybercentry Quantum Cryptography Verification on ACP - Quantum-resistant AES-256-GCM encryption for sensitive data.
月经周期跟踪与分析技能 (Menstrual Cycle Tracking and Analysis Skill)
## 技能概述
a-stock-analysis
A股实时行情与分时量能分析。获取沪深股票实时价格、涨跌、成交量,分析分时量能分布(早盘/尾盘放量)、主力动向(抢筹/出货信号)、涨停封单。支持持仓管理和盈亏分析。Use when: (1) 查询A股实时行情, (2) 分析主力资金动向, (3) 查看分时成交量分布, (4) 管理股票持仓, (5) 分析持仓盈亏。
quantum-lab
Run the /home/bram/work/quantum_lab Python scripts and demos inside the existing venv ~/.venvs/qiskit. Use when asked (e.g., via Telegram/OpenClaw) to run quant_math_lab.py, qcqi_pure_math_playground.py, quantum_app.py subcommands, quantumapp.server, or notebooks under the repo.
jquants-mcp
Access JPX stock market data via J-Quants API — search stocks, get daily OHLCV prices, financial summaries.
serp-analysis
Use when the user asks to "analyze search results", "SERP analysis", "what ranks for", "SERP features", "why.
content-gap-analysis
Use when the user asks to "find content gaps", "what am I missing", "topics to cover", "content opportunities".
competitor-analysis
Use when the user asks to "analyze competitors", "competitor SEO", "who ranks for", "competitive analysis", "what.