Agent♥︎Age
Catalog

PineForge — offline PineScript v6 backtest MCP

Official

by pineforge-4pass · TypeScript

Offline PineScript v6 → C++ backtests at deterministic TradingView parity, run locally via MCP.

pineforge-backtest-mcp (Model Context Protocol Server)

This MCP server is an offline PineScript v6 → C++ backtesting runner that executes at deterministic TradingView parity. It operates as a self-contained stdio MCP server where an AI agent writes PineScript v6, which is transpiled to C++ and backtested against Binance market data, all in one container and in-process.

🛠️ Key Features

  • Self-contained stdio MCP server
  • PineScript v6 generated by an AI agent
  • Transpiles to C++ and runs backtests at deterministic TradingView parity
  • Uses bundled pineforge-codegen (via the pineforge-release image)
  • Fully local execution (no host Docker daemon required)
  • No API key; nothing leaves the box

🚀 Use Cases

  • Offline backtesting workflows for algorithmic trading
  • Quantitative finance experimentation with PineScript v6 and C++
  • Deterministic backtest comparisons aligned to TradingView behavior

⚡ Developer Benefits

  • In-process container execution
  • Includes the pineforge-codegen transpiler for Pine → C++ → backtest

⚠️ Limitations

  • Backtests are described as running against Binance market data
  • Focus is specifically on PineScript v6 to C++ transpilation and backtesting

Topics

ai-agentsalgorithmic-tradingalgotradingbacktestingcppdeterministicdockermcpmcp-servermodel-context-protocolpine-scriptpinescriptquantquantitative-financetradingview