PineForge Backtest

•
11
•

Transpile and backtest PineScript v6 strategies locally with high-fidelity, TradingView-parity results.

PineForge Backtest provides a self-contained, offline MCP server that leverages an AI agent to transpile PineScript v6 to C++ and execute deterministic backtests against historical market data. It runs entirely within a single Docker container, ensuring data privacy and local execution without the need for API keys or external services. The tool guarantees near-perfect TradingView parity for backtest results, enabling quantitative analysts and traders to validate strategies with confidence, including grid sweeps for parameter optimization.

Key Features

01Offline PineScript v6 to C++ transpilation and backtesting
02Direct fetching of Binance spot and USDT-perp OHLCV market data
03Deterministic TradingView-parity backtests (245/246 strict match, 0 engine bugs)
044 GitHub stars
05Cartesian grid backtesting for comprehensive parameter sweeps
06Self-contained Docker container for local execution, no API key required

Use Cases

01Reproduce and verify TradingView strategy results with high fidelity against local or fetched market data
02Perform accurate quantitative analysis and validation of PineScript v6 trading strategies
03Optimize PineScript strategy parameters by running exhaustive grid sweeps locally