PineForge is a free, open-source backtesting engine for traders and developers who write strategies in PineScript v6 and want to test them on their own computer. Its core is written in C++17, and it aims to reproduce how TradingView runs the same script, so local results can be checked against what the charting platform shows. The project is released under the Apache-2.0 license, and the latest version is v1.9.1.
The engine runs locally, so you can work through long test runs without depending on a browser session. A bundled MCP server also lets AI assistants drive backtests, which makes PineForge a practical choice for people who want to automate research. The code was updated recently, so the project appears active, but it is developer-oriented software rather than a polished consumer app.
What Is PineForge and Who Is It For?
PineForge takes a strategy written in PineScript v6 and runs it against historical market data on your own computer. Instead of replaying charts by hand, you get a complete list of simulated trades, with entries, exits and results, that you can analyze or compare.
The people who benefit most are Pine script authors who want to test ideas over longer periods than a chart replay allows, and developers who need a dependable execution core for their own tools. Quant hobbyists who like scripted experiments will also find it useful.
A typical scenario: you have a moving-average crossover strategy that looks promising on a few months of charts. You want to see how it behaved across several years and across different parameter settings. Running those tests locally lets you change one variable at a time without rebuilding the analysis by hand.
PineForge is not a charting platform or a live dashboard. It concentrates on execution logic, so you will typically pair it with your own data preparation and reporting.
Deterministic Results and Reproducible Research
Deterministic means the same inputs always produce the same output. With PineForge, two runs with identical scripts, data and settings generate identical trade lists. That sounds obvious, but many backtesting setups drift between runs because of timing, randomness or changing configuration, which makes it hard to tell whether a result changed because of your idea or because of the tool.
Reproducibility matters most when you compare variants. Suppose you test three stop-loss values. If each run is repeatable, any difference in profit or drawdown comes from the stop-loss value itself. Keep a record of the script version, the date range and the parameters for each run, so you can recreate any result later.
A few habits help. Store each strategy version in its own file, avoid editing the data between runs, and write down the settings you used. These steps cost little and protect you from fooling yourself with a lucky run.
Determinism does not make a strategy profitable. It makes your measurements trustworthy, which is a prerequisite for sound decisions.
Can AI Agents Automate Strategy Research?
PineForge includes an MCP server, a standard way for AI assistants to call external tools. Through it, an agent can start the engine, pass in a script and read back results. That opens the door to workflows where an assistant runs a series of tests, summarizes what changed and suggests the next experiment.
Automation is useful for repetitive work: testing many parameter combinations, checking how a script behaves on different date ranges, or organizing output tables. An agent handles these tasks faster than a person clicking through options, and it does not tire of the routine.
Automation has limits. An assistant can misread results or propose changes that look good only because of noise in the sample. Treat each suggestion as a hypothesis, check the trade list yourself and rerun the test on fresh periods before you trust it.
If you are new to agents, start with a small task such as a single parameter sweep, and expand only after you are comfortable with how the tool reports results.
Key features
Trade-for-Trade Parity with TradingView
Repeatable Results
Local Execution with Docker
Built for AI Agents
Embeddable C ABI
Supported coins
The project documentation mentions Bitcoin (BTC), Ethereum (ETH) and USDT as example assets. Because PineForge works on historical data you supply, you can test strategies on these markets as long as your data files cover them.
How to install PineForge on Windows
- 1
Get the official files
Download only from the official website or the project's GitHub Releases page at github.com/pineforge-4pass/pineforge-engine. The latest version listed there is v1.9.1. Avoid mirrors and file-sharing links, even if they look identical.
- 2
Verify the download
Calculate the SHA-256 checksum of the file on your computer and compare it with the value published with the release. If the project also provides a signature, verify that as well before you run anything.
- 3
Choose your run method
If a Windows build is provided for your release, extract it into a folder of your choice. If not, install Docker Desktop and follow the run instructions in the repository's README to build and start the container.
-
Confirm the engine starts
Run a short PineScript v6 test of your own to confirm the engine starts and writes a trade list. Keep this first test simple so that any setup problem is easy to spot.
How to use PineForge
Running a backtest in PineForge is straightforward once the engine is installed. The steps below describe the general flow; the exact command or configuration depends on your build and the project's documentation.
- Prepare your strategy. Save the PineScript v6 code under a clear file name that includes a version number, so you can trace later results back to it.
- Gather the market data. Use historical price data for the asset and timeframe you want to test, and keep the file unchanged for the whole comparison.
- Set the parameters. Write down each input value before the run, and change only one variable at a time when you explore alternatives.
- Start the engine. Launch PineForge, either from the Windows build or inside the Docker container, and point it at your script and data.
- Review the trade list. Check the number of trades, entry and exit times, and results. Scan a few trades by hand to confirm they make sense.
- Save the output. Store the trade list and the settings together so you can repeat the run later.
- Repeat on a fresh period. Test the same logic on data it has not seen before to see whether the behavior holds.
Run the same test twice early on. Identical trade lists confirm that your setup is stable before you start comparing strategies.
Pros & cons
- Free and open source under the Apache-2.0 license
- Strict trade-for-trade matching with TradingView in the published validation
- Deterministic: identical inputs give identical trade lists
- Runs locally, including through Docker
- Bundled MCP server for AI agent workflows
- Embeddable C ABI for developers
- Developer-oriented, so expect a command-line and configuration workflow
- Windows support is described as likely rather than confirmed, so check the releases page
- Focused on backtesting and execution semantics rather than charting or screeners
- One validation case out of 246 did not match, so edge cases still deserve a manual check
Is PineForge safe?
Download PineForge only from the official website or the GitHub repository at github.com/pineforge-4pass/pineforge-engine. Before running any file, verify its SHA-256 checksum, or its signature if one is published. Check the latest version on the official website before installing, because older builds may lack fixes. The code is open source under Apache-2.0, so you can review it or ask others to. Antivirus tools sometimes flag new or unsigned binaries. If that happens, confirm the checksum and source rather than disabling protection. Never enter a seed phrase or private key into a third-party website that claims to offer PineForge. A backtesting engine has no reason to ask for one.
- Official source only. Download from github.com/pineforge-4pass/pineforge-engine. Ignore ads and lookalike domains.
- Check the SHA-256. Compare the installer hash with the value the developer publishes before running it.
- Never share your seed phrase. No developer, support agent or website — including CryptApps — will ever ask for it.
Alternatives
PineForge is narrower than many trading platforms. Its main strength is faithful PineScript v6 execution with repeatable results. Quantify offers a Binance-style trading terminal with multi-strategy backtesting and a signal-only decision desk, so it suits people who want a full workspace. Tradingview MCP is also built for AI assistants, but it centers on screeners and walk-forward analysis rather than Pine execution parity. Hummingbot targets market making and arbitrage, and OctoBot is a trading bot with a web interface, both oriented toward live trading. Gekko is listed as an archived project.
Specifications
- Price
- Free
- Type
- Open source
- License
- Apache-2.0
- Latest version
- v1.9.1
- Last update
- 31 Oct 2026
- Windows support
- Likely (builds for Windows; check releases)
- Source code
- github.com/pineforge-4pass/pineforge-engine
Frequently asked questions
Yes. PineForge is listed as free and released as open source under the Apache-2.0 license. That license allows you to use, study and modify the code, subject to its terms. Read the license file in the repository for the full conditions.
The project describes Windows support as likely because it builds for Windows, so it may run on your PC. Check the releases page for a build that matches your system. If no Windows build is offered for your version, running the engine through Docker is the other route.
It is open source, so its code can be reviewed. A backtesting engine also has no need for your seed phrase. Follow the checksum and source steps described above, and keep your security software running. These precautions lower the risk considerably.
The project reports that 245 of 246 validation cases matched TradingView trade for trade under strict comparison, with zero engine bugs recorded. That is a strong result, but it does not guarantee a match for every script. Compare a few trades manually before you trust a new strategy.
Yes. The package includes an MCP server that lets AI assistants drive the engine. This can speed up repetitive testing. Review each change the agent proposes and check the results yourself before acting on them.
The engine covers backtesting and forward execution, so it is not limited to historical tests. Any tool that touches live trading carries financial risk. Start with small, carefully observed tests, and never trade money you cannot afford to lose.
Verdict
PineForge suits developers and experienced Pine users who want local, repeatable backtests that closely follow TradingView behavior. It is free, open source and scriptable with AI agents. Beginners who expect a graphical interface with charts should look at other options first. Start with a strategy you already understand, verify your download, and compare a few trades by hand before drawing conclusions.