pineforge codegen · playground MCP
PineScript v6
0 B
Generated C++ · emitted by codegen
0 B
1Pull the runtime image
# multi-arch: linux/amd64 + linux/arm64
docker pull ghcr.io/fullpass-4pass/pineforge-engine:latest
2Prepare OHLCV data
CSV header required
Header: timestamp,open,high,low,close,volume
timestamp = UNIX milliseconds (UTC). Bars must be sorted ascending. No gaps required, but session boundaries affect session.* built-ins. Save as ohlcv.csv next to the downloaded strategy.cpp.
3Run the backtest
docker run --rm \
  -v "$(pwd)/strategy.cpp:/in/strategy.cpp:ro" \
  -v "$(pwd)/ohlcv.csv:/in/ohlcv.csv:ro" \
  ghcr.io/fullpass-4pass/pineforge-engine:latest \
  > report.json
# build noise on stderr; JSON report on stdout
jq .summary report.json
4Output schema
{
  "engine": "pineforge",
  "input":   { "bars": 672, "first_ts": 1745182800000, ... },
  "elapsed_seconds": 0.0042,
  "summary": {
    "total_trades":  49,
    "wins":          16,
    "losses":        33,
    "win_rate_pct":  32.65,
    "net_pnl":       -190.85,
    "max_drawdown":  -4045.15,
    "bars_processed": 672
  },
  "trades": [ { "side": "long", "pnl": 111.50, ... } ]
}
Install as a remote MCP server
tools: transpile_pine · get_quota
http
Paste your pf_… key in the API key field at the top first — install actions embed the key into the client config. Endpoint: /mcp · Protocol: 2025-03-26 · Streamable HTTP · CORS open.
Exit codes: 0 success · 2 missing mount · 3 compile failure · 4 runtime abort. Image source: pineforge-engine/docker.