Skip to content
TickLogits

Developers · Ultra API

Give your coding agent a TradingView strategy lab.

PineTune Developer exposes a loopback API and an Agent Skill. Your agent reads the strategy, rewrites the Pine code, launches runs, waits on an event stream and applies the best candidate, right in your own browser.

How the bridge works

A Chrome MV3 extension cannot listen on a TCP port, so PineTune connects out to a tiny dependency-free Node bridge bound to 127.0.0.1. Your agent talks plain HTTP to the bridge.

  1. Your agent

    Claude Code, Codex, Devin, Cursor, a Python script…

  2. Ultra bridge

    127.0.0.1:5678 · POST /api · GET /events

  3. PineTune extension

    Licence check, routing to the chart tab

  4. Your TradingView chart

    Inputs, Pine Editor, Strategy Tester

Quick start

  1. 1Activate a Developer licence in the PineTune popup.
  2. 2Popup → Agent: enable “Agent API”, port 5678.
  3. 3Open a TradingView chart with your strategy and the Strategy Tester.
  4. 4Run the one-line installer: it downloads the kit, installs the Agent Skill into your coding agent and wakes the extension.
# install the agent kit + skill (one command, needs Node.js 18+)
curl -fsSL https://ticklogits.com/pinetune/agent/install.sh | sh
# Windows PowerShell instead:
# & ([scriptblock]::Create((iwr 'https://ticklogits.com/pinetune/agent/install.ps1').Content))

# health check (bridge on loopback only)
curl http://127.0.0.1:5678/health

# full picture: strategy, inputs, Pine source, recent results
node "$HOME/pinetune-agent/ultra-client.js" snapshot --inputs --pine --result-limit 20

# start a run with the saved config, then block until it finishes
node "$HOME/pinetune-agent/ultra-client.js" call --method start
node "$HOME/pinetune-agent/ultra-client.js" waitDone --timeout 600000

# apply the top passing result and wait for the tester to settle
node "$HOME/pinetune-agent/ultra-client.js" call --method applyBest
POST http://127.0.0.1:5678/api
{ "action": "call", "method": "readMetrics", "tabId": 123 }

→ { "ok": true,
    "data": { "ok": true, "metrics": { "netProfitPct": 48.2, "profitFactor": 1.92, ... } } }

What your agent can do

Inspect

snapshot · inspect · readMetrics · detect: strategy, inputs, metrics, symbol, timeframe, saved results.

Edit Pine

getPineSource · checkPineSource · updatePineSource · getPineErrors: full-source replace, compile check, hash-verified save.

Tune

setConfig · start · pause · resume · stop · waitDone: grid, random, coarse-to-fine with filters.

Apply

applyBest · applyResult · applyParams: write candidates back and wait for the tester to settle.

Market context

setSymbol · setTimeframe · readWatchlist · loadStudy: move across symbols and timeframes.

Observe

GET /events (SSE / WebSocket) streams every state change; no blind sleeping.

Security by design

  • The bridge binds to the loopback interface only, never to your LAN or the internet.
  • The first connecting extension ID is pinned after its WebSocket origin and hello ID match.
  • API responses never echo your full licence key or third-party API keys.
  • Read-only or protected Pine scripts are never edited around their restrictions.

Ships with an Agent Skill

A ready-to-use SKILL.md describes the closed loop (inspect, edit, tune, analyse, refine, apply) plus the API reference and pitfalls. The installer drops it into Claude Code, Cursor, Windsurf, Devin, Codex, DSH or Pi automatically, so agents that support skills work well from the first prompt.

Developer plan

Everything in Pro plus the Ultra API and Agent Skill, $349/year.

Agents act on your own TradingView session. Review what you ask them to do; backtests are not investment advice.

See plans