PyneCore reproduces the Pine Script reference output with 99.999%+ numeric match. This is not aspirational — it is the explicit acceptance criterion built into the test suite. Every Pine function is verified against TradingView reference values, with floating-point comparison under strict numerical tolerance.
The test infrastructure is unusual: tests are themselves Pyne scripts. Each test file is both a runnable Pyne program and a pytest case, executed by the same runtime that ships to users. This catches behavioral drift that traditional unit tests miss — if a test passes, the production runtime passes too.
CSV reference data for indicators and strategies is exported directly from TradingView and committed to the repository. New Pine features are tested against actual reference output, not against a separate specification.
PyneCore is a from-scratch Python runtime, not a wrapper or interpreter. Pine-like semantics — Persistent variables, Series, function isolation, NA handling — are produced by AST transformations that rewrite Python code at import time. The output is regular Python that runs on any standard interpreter.
The runtime has zero external dependencies. The full PyneCore package depends only on the Python standard library. This is a deliberate constraint, not a coincidence: zero dependencies makes the runtime portable to constrained environments — most importantly, the browser via WebAssembly.
The architecture splits into two parts. PyneCore — the open-source runtime — executes Pyne scripts. PyneComp — the closed-source compiler — translates Pine Script source into Pyne. The split is intentional. See the open source vs commercial section below.
Three integration patterns, in order of increasing depth.
API today. REST API at api.pynesys.io with pre-paid credit packages from $500. Submit Pine Script source, receive Pyne output. Suitable for indie projects, prototypes, and back-office automation.
Browser execution (Q4 2026). Full PyneCore loaded into the browser via Pyodide WebAssembly. Strategies execute on the user’s machine with no server-side compute. Suitable for embedded backtesting and live execution within partner platforms.
Embeddable SDK (Q1 2027). Drop-in JavaScript SDK that bundles the WASM runtime, charting, and execution UI. White-label by configuration. Designed for brokers, exchanges, and fintech apps that want Pine-compatible execution branded as their own feature.
All three patterns share the same runtime. The only difference is deployment.
Pine Script v5 is the supported version. Indicator coverage is substantial — ta.*, math.*, str.*, array.*, line.*, label.*, plot, hline, fill, table, and the full set of plotting and drawing primitives.
Strategy support includes the harder cases: bar magnifier for intra-bar precision, varip semantics, calc_after_order_fill, and multi-timeframe access via request.security. The strategy execution model mirrors TradingView’s, including order fill timing and equity calculation.
Areas under active expansion: less common Pine functions, edge cases in commission and slippage models, and additional drawing primitives. The full compatibility matrix lives in the pynecore.org documentation and is updated with each release.
CPython execution closely matches Pine Script performance for typical scripts. The runtime is implemented in pure Python without C extensions, which simplifies portability without sacrificing speed.
PyPy is validated and yields a 5x speedup with zero code changes — a direct consequence of the zero-dependency architecture. There is nothing for PyPy to fall back from.
WebAssembly execution via Pyodide runs at approximately one-third of CPython speed. For live trading at one bar per minute, this is more than sufficient. For limited-bar backtests in the browser, the latency is imperceptible.
Heavy backtests on long histories should run server-side or under PyPy on the user’s machine. The choice is per-use-case, not per-runtime.
PyneCore is licensed under Apache 2.0. The full source, test suite, and documentation are public on GitHub. Community contributions are welcomed via standard pull request flow. Commercial use is permitted under standard Apache 2.0 terms, including embedding in proprietary products, with attribution per the project’s NOTICE file.
PyneComp — the Pine Script to Pyne compiler — is closed source and offered as a SaaS service. This split is deliberate. The runtime is the foundation; making it open ensures portability, transparency, and ecosystem trust. The compiler is the engineering investment that translates a closed scripting language into the open runtime, and keeping it commercial is what funds the work.
The result is an ecosystem where the integration surface — PyneCore — is permanently free to use, and the value-added service — PyneComp — sustains the project. Partners integrating PyneCore are not building into a vendor trap.
This Privacy Policy describes how PyNE Systems (“we,” “our,” or “us”) collects, uses, and discloses your personal information when you visit our website, www.pynesys.com (“Website”), use our services, or otherwise interact with us.
We respect your privacy and are committed to protecting your personal information. This Privacy Policy explains what information we collect, how we use it, and the choices you have regarding your information.
We collect information that you voluntarily provide to us, including:
When you visit our Website, we automatically collect certain information about your device and your interaction with our Website:
We use the information we collect for various purposes, including:
We may share your personal information with the following categories of third parties:
We do not sell your personal information to third parties.
Our website uses Google reCAPTCHA to protect our forms from spam and abuse. When you use forms on our website that are protected by reCAPTCHA, Google collects certain information about you and your device to determine whether you are a human or an automated bot.
The information collected by reCAPTCHA may include:
This information is collected and used according to Google’s Privacy Policy. By using our website and our forms, you acknowledge and agree to Google’s data collection as part of the reCAPTCHA service.
For more information about Google reCAPTCHA, please visit: https://www.google.com/recaptcha/about/
We use cookies and similar tracking technologies to collect information about your browsing activities. Cookies are small text files that are stored on your device when you visit our Website.
We use the following types of cookies:
You can control cookies through your browser settings. However, if you block certain cookies, you may not be able to use all the features of our Website.
We retain your personal information for as long as necessary to fulfill the purposes outlined in this Privacy Policy, unless a longer retention period is required or permitted by law.
We implement appropriate technical and organizational measures to protect your personal information against unauthorized access, alteration, disclosure, or destruction. However, no method of transmission over the Internet or method of electronic storage is 100% secure, and we cannot guarantee absolute security.
Depending on your location, you may have certain rights regarding your personal information, which may include:
To exercise any of these rights, please contact us using the contact information provided at the end of this Privacy Policy.
Your personal information may be transferred to, and processed in, countries other than the country in which you reside. These countries may have data protection laws that are different from the laws of your country.
We may update this Privacy Policy from time to time to reflect changes in our practices or for other operational, legal, or regulatory reasons. We will notify you of any material changes by posting the updated Privacy Policy on our Website or by other appropriate means.
If you have any questions or concerns about this Privacy Policy, please contact us at:
PyNE Systems Email: [email protected]
By using our Website, you acknowledge that you have read and understood this Privacy Policy.
These Terms of Use (“Terms”) govern your access to and use of www.pynesys.com (“Website”), operated by PyNE Systems (“we,” “our,” or “us”). By accessing or using our Website, you agree to be bound by these Terms. If you do not agree to these Terms, please do not use the Website.
You must be at least 18 years old to use this Website. By using this Website, you represent and warrant that you are at least 18 years old and have the legal capacity to enter into these Terms.
If you create an account on our Website, you are responsible for maintaining the confidentiality of your account credentials and for all activities that occur under your account. You agree to notify us immediately of any unauthorized use of your account.
When using our Website, you agree not to:
The Website and all its content, features, and functionality, including but not limited to text, graphics, logos, images, software, and audio/video materials, are owned by PyNE Systems or its licensors and are protected by copyright, trademark, and other intellectual property laws.
Subject to these Terms, we grant you a limited, non-exclusive, non-transferable license to access and use the Website for your personal, non-commercial purposes. This license does not include the right to:
If you submit, post, or share any content on our Website, you grant us a non-exclusive, royalty-free, perpetual, irrevocable, and fully sublicensable right to use, reproduce, modify, adapt, publish, translate, create derivative works from, distribute, and display such content throughout the world in any media.
You represent and warrant that you own or have the necessary rights to submit any content you post on the Website, and that such content does not violate the rights of any third party or any applicable laws.
We have the right, but not the obligation, to monitor, edit, or remove any content submitted to the Website. We may remove any content that we determine, in our sole discretion, violates these Terms or is otherwise objectionable.
Our Website may contain links to third-party websites, services, or content that are not owned or controlled by us. We do not endorse or assume any responsibility for any third-party websites, services, or content. You access third-party websites at your own risk.
The Website is provided on an “as is” and “as available” basis, without any warranties of any kind, either express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, or non-infringement.
We do not warrant that the Website will be uninterrupted, secure, or error-free, that defects will be corrected, or that the Website or the servers that make it available are free of viruses or other harmful components.
To the fullest extent permitted by applicable law, in no event shall PyNE Systems, its officers, directors, employees, agents, or affiliates be liable for any indirect, incidental, special, consequential, or punitive damages, including but not limited to loss of profits, data, use, goodwill, or other intangible losses, resulting from:
The total liability of PyNE Systems for any claim arising out of or relating to these Terms or the Website shall not exceed one hundred dollars ($100).
You agree to defend, indemnify, and hold harmless PyNE Systems, its officers, directors, employees, agents, and affiliates from and against any and all claims, damages, obligations, losses, liabilities, costs, or debt, and expenses (including but not limited to attorney’s fees) arising from:
Our Website uses Google reCAPTCHA on certain forms to protect against spam and automated abuse. By using these forms, you acknowledge and agree that you are subject to Google’s Privacy Policy and Terms of Service, and that your use of Google reCAPTCHA is subject to those terms.
We reserve the right to modify or replace these Terms at any time. We will provide notice of any material changes by posting the updated Terms on the Website. Your continued use of the Website after any such changes constitutes your acceptance of the new Terms.
These Terms shall be governed by and construed in accordance with the laws of the state/country where PyNE Systems is established, without regard to its conflict of law provisions. You agree to submit to the personal and exclusive jurisdiction of the courts located within this jurisdiction.
We may terminate or suspend your access to the Website immediately, without prior notice or liability, for any reason, including without limitation if you breach these Terms. Upon termination, your right to use the Website will immediately cease.
These Terms constitute the entire agreement between you and PyNE Systems regarding your use of the Website and supersede any prior agreements.
The failure of PyNE Systems to enforce any right or provision of these Terms shall not be deemed a waiver of such right or provision.
If any provision of these Terms is held to be invalid or unenforceable, such provision shall be struck and the remaining provisions shall be enforced.
If you have any questions about these Terms, please contact us at: https://pynesys.com/contact
By using our Website, you acknowledge that you have read and understood these Terms.