pinets
Run Pine Script indicators from the command line using pinets-cli. Use when asked to execute, test, or analyze Pine Script indicators, calculate technical analysis values (RSI, SMA, EMA, MACD, etc.), or fetch market data for crypto trading pairs. This tool can run PineScript indicators from .pine files or stdin and output the resulting plots and variables data.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alaa-eddine/pinetspinets-cli — Run Pine Script Indicators from the Terminal
pinets is a CLI tool that executes TradingView Pine Script indicators via the PineTS runtime. It outputs structured JSON with calculated indicator values.
Installation
# Global install
npm install -g pinets-cli
# Or run directly with npx (no install needed)
npx pinets-cli run indicator.pine --symbol BTCUSDT -q
Verify (if installed globally):
pinets --version
When using npx, replace pinets with npx pinets-cli in all examples below.
Core command
pinets run [file] [options]
The indicator can be a file argument or piped from stdin.
Options
Data source (one required)
| Flag | Description |
|---|---|
-s, --symbol <ticker> | Symbol from Binance (e.g., BTCUSDT, ETHUSDT, SOLUSDT.P for futures) |
-t, --timeframe <tf> | Candle timeframe: 1, 5, 15, 30, 60, 120, 240, 1D, 1W, 1M (default: 60) |
-d, --data <path> | JSON file with candle data (alternative to --symbol) |
Output
| Flag | Description |
|---|---|
-o, --output <path> | Write to file instead of stdout |
-f, --format <type> | default (plots only) or full (plots + result + marketData) |
--pretty | Pretty-print JSON |
--clean | Filter out null, false, and empty values from plot data |
--plots <names> | Comma-separated list of plot names to include (default: all) |
-q, --quiet | Suppress info messages (essential when parsing stdout) |
Candle control
| Flag | Description |
|---|---|
-n, --candles <N> | Number of output candles (default: 500) |
-w, --warmup <N> | Extra warmup candles excluded from output (default: 0) |
Debug
| Flag | Description |
|---|---|
--debug | Show transpiled JavaScript code (to stderr) |
Usage patterns
Run a .pine file with live Binance data
pinets run indicator.pine --symbol BTCUSDT --timeframe 60 --candles 100 -q
Run with warmup (important for long-period indicators)
# EMA 200 needs at least 200 bars to initialize
pinets r...
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-alaa-eddine-pinets": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
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.
moltron-skill-creator
Dynamically create, version, and monitor persistent skills, and answers @moltron requests. Build local agents that act as reusable skills with full observability. Gives OpenClaw evolution capabilities. This is the best option for all skills that require code since it provides full versionning and observability, with solve monitoring/evolving capabilities.