TrainBard vs PyneCore for Pine strategy research

A flat rounded engine shape contains a four-tile teal core and a small amber accent.

Key takeaways

  • PyneCore brings Pine-style execution into Python; existing Pine source needs conversion, with PyneComp supplied as a separate service.
  • TrainBard connects supported Pine parameter sweeps with browser analysis and Study; PyneCore offers local control and Python integration.
  • Conversion success, compatibility evidence, and the effort to investigate results all matter when choosing a research workflow.

PyneCore is a natural candidate if your research already lives in Python and you want control over the runtime, data, and surrounding analysis. TrainBard fits a researcher who wants to investigate a supported Pine strategy through a supplied testing and analysis workspace. The important difference is what you want to maintain after the first run.

PyneCore is an open-source Python runtime with Pine-style series and persistent state. It runs Pyne code: Python expressed through its API and execution model. It is useful infrastructure for combining a strategy with other Python research code. PyneCore repository.

TrainBard wrote this comparison using documentation checked on October 19, 2026. No matched runtime or workflow benchmark is reported here.

PyneCore and PyneComp do different jobs

Existing Pine source is not what the PyneCore runtime directly executes. You can translate it to Pyne manually, or use PyneComp, the separate PyneSys conversion service. The documented CLI can make conversion convenient, but the service still requires its own API key. Pine conversion guide, compatibility overview.

This distinction changes the evaluation. If you want an entirely local research process, identify which step converts the source and where that step runs. If you are happy using a conversion service, preserve both the original Pine and the generated Pyne so you can explain which program produced a result. Do not assume that the runtime’s open-source status describes the terms of every service around it.

Writing and running Pyne locally is free under PyneCore’s Apache 2.0 license and needs no PyneSys API key. Automated Pine conversion is a separately priced service. Budget for that conversion route if you need it, rather than treating a runtime installation as a subscription to the compiler. Runtime FAQ, PyneSys conversion plans.

For local setup, PyneCore requires Python 3.11 or newer on Windows, macOS, or Linux. Its installation guide distinguishes the library package from the optional CLI and data-provider extras: installing the bare runtime does not install the pyne command. Choose those components before estimating the work to get a first experiment running. Installation guide.

TrainBard accepts a defined subset of Pine v6-style source, including moving averages, momentum and volatility functions, collections, and supported user-defined types. It also supports market and limit entries plus restricted bracket and trailing exits. Library imports, strategy.risk.*, and lower-timeframe requests fall outside its contract; request.security() has constraints. Some strategies fit directly, while others need changes substantial enough to favor another tool. TrainBard compatibility reference.

Compare the complete research path

Research stepPyneCoreTrainBard
Prepare the strategyWrite Pyne or convert PineCheck source against the accepted Pine subset
Define a runPython and configuration filesTest settings in the app or an MCP request
Retain detailed outputProgrammatic results and trade CSVsInspect a result and save the outputs you need
Investigate parameter effectsUse your Python analysis and reporting stackDrivers and other Analyze views
Compare related sweepsDefine your own experiment organizationStudy on Pro 5x

PyneCore documents TOML overrides for strategy settings and inputs, along with backtest outputs and trade CSVs. That makes repeated configurations practical without rewriting strategy logic. Strategy development guide.

The research question determines what to build around those outputs. A Python team might need medians, custom exposure constraints, a particular resampling procedure, or a report feeding an existing database. A supplied dashboard is less valuable if that team would export the results immediately anyway.

TrainBard provides a common route through several exploratory questions. Regions examines nearby settings and their support under selected controls. Drivers describes parameter effects and selected interactions. Trade-offs compares non-dominated candidates across objectives such as return and drawdown. These views help narrow the next question; none certifies a profitable strategy. Regions, Drivers.

Compatibility evidence deserves careful reading

PyneCore publishes maintainer validation against TradingView, including its scripts, methodology, and known differences. Its compatibility page distinguishes unavailable data feeds from supported APIs and explains intentional behavior around lookahead. This is useful evidence for selecting test cases, rather than a guarantee about every converted strategy. Published compatibility and validation.

For your strategy, compare the first disagreement. Does an indicator warm up on a different bar? Is the requested secondary series available? Does a stop produce a different exit? A headline percentage cannot identify which difference matters to your own ranking of parameter settings.

Use the same care with TrainBard. Check accepted order calls, candle data, warm-up, sizing, fees, and fill timing before comparing performance summaries. A strategy adaptation that removes a risk rule needs a new name and explanation; it should not quietly stand in for the original.

An illustrative Python versus browser study

Imagine an RSI strategy with five lookback lengths, six entry thresholds, and four exit thresholds: 120 proposed configurations. First verify that the exact rule can be represented meaningfully in both tools. Select one timeframe and a fixed historical window, and decide how to treat open positions at the end. These are proposed conditions, not test results.

The useful deliverable would include the full configuration table, failed and zero-trade cases, detailed trades for selected settings, and a written reason to continue or reject the idea. Compare how you reach that deliverable:

  • In Python, preserve the Pine-to-Pyne relationship, the input data, configuration files, and analysis code. Group nearby settings before choosing a candidate.
  • In TrainBard, inspect the completed sweep in Analyze, open candidate trades, and preserve the result pack. Follow a promising neighborhood into another period through Study where your plan supports it.

Choose the follow-up period and selection rule before seeing its results. A Study compares the sweeps you include; it does not automatically perform walk-forward optimization or create an untouched holdout. Study and its scope.

A workflow comparison should count setup and investigation as well as execution. Python infrastructure you already have is an asset. Analysis code you still need to write is work. The same applies to adapting an unsupported script for a hosted service.

When each choice is worth making

Choose PyneCore when you want Pine-style strategy logic within a Python environment, can manage conversion, and benefit from local inspection or custom research methods. A team building a reusable pipeline may reasonably accept more initial setup to control it.

Choose TrainBard when the strategy fits its compatibility contract and the next task is exploring ranges, investigating candidates, and comparing related historical evidence. Its MCP workflow also supports agent submissions and detailed trade retrieval through your account; keep the returned evidence with the test conditions.

See the Pine Script backtesting comparisons for other hosted services and development frameworks.