§ 01
Against TradingView's own output
The strongest evidence: a script is run on TradingView, its trade list, plotted values or logs are exported, and the engine has to reproduce them on the same bars. A trade matches when its entry and exit bar, price, size and profit all match.
| What is compared | Matched | |
|---|---|---|
| Strategy trades, against TradingView trade lists | 14,867 of 14,867 trades | all |
| Strategy statistics per bar, against TradingView exports | 1,120 of 1,120 bars | all |
| Indicator values per bar, against TradingView exports | 46,350 of 46,350 bars | all |
| Logged values, against TradingView logs | 132 of 132 log lines | all |
| Head-to-head cases (values, logs and trades of 97 scripts) | 333,936 of 333,936 records | all |
The exports were collected by the PyneCore project for its own test suite; the harness replays them. Two trades of one export are left out of the count because that export predates a change TradingView made to its rolling sum (dispute D13 below).
§ 02
Against a reference engine
TradingView exports cannot cover every combination of orders, so the harness also generates scenarios at random and compares the engine with PyneCore, an independent implementation that tests itself against TradingView exports. Two engines written separately agreeing on a random scenario is weaker evidence than an export, and is listed separately for that reason.
| What is compared | Matched | |
|---|---|---|
| Generated strategy scenarios, trade for trade against the reference engine | 3,600 of 3,600 scenarios | all |
| Generated indicator scenarios, bar for bar against the reference engine | 789 of 800 scenarios | 11 differ |
| Generated language scenarios against the reference engine | 600 of 600 scenarios | all |
| Hand-written probes of single rules | 118 of 118 probes | all |
§ 03
On scripts people actually wrote
Valid Pine v5 and v6 scripts collected from public repositories. This row says the engine accepts and runs them; it does not say their values are right, because nobody has TradingView’s output for them. A script the engine cannot convert is refused with a reason, never run approximately.
| What is counted | Result | |
|---|---|---|
| Public scripts that compile (valid Pine v5/v6 from public repositories) | 2,965 of 2,974 scripts | 9 differ |
| Public scripts that also run to the last bar | 2,959 of 2,974 scripts | 15 differ |
§ 04
Where it falls short
3 of the 11 rows above are not full. There are also 3 rules where the available sources disagree and no TradingView measurement has settled them yet. Until one does, the engine follows the written Pine reference, and the affected cases stay counted as differences.
| Open question | Rule |
|---|---|
| D2 | strategy() defaults under v6 |
| D8 | hlcc4: (high + low + close + close)/4 or (high + low + 2 * close)/4 |
| D13 | a TradingView export recorded before TradingView changed its rolling sum |
10 earlier disagreements were settled, each by a TradingView export or by the reference manual. What none of this covers: broker-specific fills, live data feeds, and anything a script does that TradingView itself does not document. A matching backtest is a statement about arithmetic, not about future returns.
§ 05
Check it yourself
The engine and the harness are public. The harness prints this scoreboard from a clean checkout, and its ledger refuses a change that lowers any row.
| Repository | What it is |
|---|---|
| github.com/nullarch/resin | The engine: Pine Script to JavaScript, and the runtime |
| github.com/nullarch/resin-harness | The scenarios, the exports, the scoreboard and the open disputes |
How a strategy is then graded is a separate question: the scoring methodology.