luxalgo/pinets-cli/openai-codex
Claude Code and agent skill by luxalgo/pinets-cli
- community
Checking that the SKILL.md file is still in the repository.
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, Bollinger Bands, etc.), 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
npx vskill@latest install luxalgo/pinets-cli/openai-codexSKILL.md
pinets-cli — Run Pine Script Indicators from the Terminal
You have access to pinets, a CLI tool that executes TradingView Pine Script indicators via the PineTS runtime. It outputs structured JSON with calculated indicator values.
Installation check
Before using, verify pinets is available:
If not installed, install it globally or use npx to run without installing:
When using npx, replace pinets with npx pinets-cli in all examples below.
Core command
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
Run with warmup (important for long-period indicators)
Pipe Pine Script from stdin
Run with custom JSON data
Save output to file
Get full execution context
Filter signals with --clean (for signal-based indicators)
Select specific plots with --plots
Output structure
default format
full format
Adds result (raw return values per bar) and marketData (OHLCV candles) to the default output.
JSON data format (for --data)
Required fields: open, high, low, close, volume. Recommended: openTime, closeTime.
Pine Script quick reference
pinets-cli accepts standard TradingView Pine Script v5+:
Important notes
- Always use `-q` when parsing JSON output programmatically.
- Warmup matters: Indicators with long lookback periods (SMA 200, EMA 200) produce
NaNfor the first N bars. Use--warmupto pre-feed the indicator. - `time` values are Unix timestamps in milliseconds.
- Errors go to stderr with exit code 1.
- The tool bundles PineTS internally — no additional npm packages are needed at runtime.
Warmup recommendations
| Indicator | Minimum warmup | |
|---|---|---|
| SMA(N) / EMA(N) | N | |
| RSI(14) | 30 | |
| MACD(12,26,9) | 50 | |
| Bollinger Bands(20) | 30 | |
| SMA(200) | 200+ |
Rule of thumb: set warmup to 1.5x-2x the longest lookback period.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSKILL.md/openai-codex/SKILL.md
Popularity
- Repository stars
- 66
- Repository forks
- 23
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/luxalgo/pinets-cli/openai-codex)