# Vela Docs > Developer documentation for the open-source core of Vela by LuxAlgo (https://vela.dev), Vela Pro (its commercial extensions), and PineTS (our open-source Pine Script® runtime). - Vela's open-source core: https://vela.dev/docs/vela (Apache-2.0, https://github.com/LuxAlgo/Vela) - Vela Pro: https://vela.dev/docs/pro (commercial extensions, https://github.com/LuxAlgo/Vela-pro) - PineTS: https://vela.dev/docs/pinets (AGPL-3.0, https://github.com/LuxAlgo/PineTS) - LuxAlgo platform documentation: https://docs.luxalgo.com/platform (https://docs.luxalgo.com/llms.txt) # Vela for Developers > The open-source core of Vela by LuxAlgo - [Vela for Developers](https://vela.dev/docs/vela): Fast, extensible financial charts for the web — a headless core, native WebGL2 renderer, batteries-included workspace, and plugin SDK. - User - [Quickstart](https://vela.dev/docs/vela/user/quickstart): Get a candlestick chart on screen, then add a scripting engine and an indicator. - [Installation](https://vela.dev/docs/vela/user/installation): Install @luxalgo/vela from npm, or load the self-contained browser bundle. - [The workspace](https://vela.dev/docs/vela/user/workspace): The batteries-included chart app: one chart or a multi-chart grid with shared chrome. - [Options](https://vela.dev/docs/vela/user/options): Market, display, drawings, settings, and per-indicator options for Vela™ and the workspace. - [API Reference](https://vela.dev/docs/vela/user/api-reference): The public Vela™ surface — the chart, indicator handles, events, and control facades. - [Drawing tools](https://vela.dev/docs/vela/user/drawing-tools): Interactive drawing tools, the toolbar, and the chart.drawings API. - [Timeline marks](https://vela.dev/docs/vela/user/timeline-marks): Pin dividends, splits, earnings, news, and other events to the chart with chart.marks. - [Renderer features](https://vela.dev/docs/vela/user/renderer-features): Read and change how the chart is drawn at runtime, with no indicator re-run. - [Data providers](https://vela.dev/docs/vela/user/data-providers): Where candles come from — register providers, resolve symbols, and bring your own. - [Scripting engines](https://vela.dev/docs/vela/user/scripting-engines): Vela™ ships no engine. Install the Pine addon or write your own against the port. - [Localization](https://vela.dev/docs/vela/user/localization): Translate the chart's text, format numbers and dates per locale, and lay the chart out right to left. - [Examples](https://vela.dev/docs/vela/user/examples): Static charts over your own bars and live, provider-backed charts, plus the in-repo playground. - [FAQ](https://vela.dev/docs/vela/user/faq): Common questions about engines, offline data, live mode, drawings, and attribution. - [Upgrading](https://vela.dev/docs/vela/user/upgrading): What changes between Vela™ releases: breaking changes, deprecated names and their replacements, release by release. - [Coding agents](https://vela.dev/docs/vela/user/coding-agents): Give your coding agent Vela™'s skills, docs and llms.txt index, shipped inside the npm packages so they match the version you installed. - UI Kit - [UI kit](https://vela.dev/docs/vela/ui): @luxalgo/vela-ui, the component kit behind Vela™'s chrome: one import per component, typed themes, and styles that give way to yours. - [Theming](https://vela.dev/docs/vela/ui/theming): Build a theme with createTheme: colors, design tokens, component settings, part-by-part CSS and the cascade layers that keep your styles in charge. - [What to change, and where](https://vela.dev/docs/vela/ui/what-to-change): One table: each kind of change to the UI kit and the file, setting or theme entry it belongs in. - [Writing a component](https://vela.dev/docs/vela/ui/writing-a-component): Write a component with the kit authoring helpers: defineComponent, h, css, variants and tokens, in the one-file shape themes can restyle. - Architecture - [Overview](https://vela.dev/docs/vela/architecture/overview): One core, three layers, three ports — the shape of Vela™. - [Data Flow](https://vela.dev/docs/vela/architecture/data-flow): How data moves from the first bar to a live indicator. - [Modules](https://vela.dev/docs/vela/architecture/modules): The three ports as contracts, the composition root, and how the pieces bind. - [Boundaries](https://vela.dev/docs/vela/architecture/boundaries): Invariants, the import ACL, capability honesty, and data-handling rules. - [Settings rows](https://vela.dev/docs/vela/architecture/settings-rows): Declarative settings-row kinds for plugin chart types. - Decision records - [Architecture Decision Records](https://vela.dev/docs/vela/architecture/adr): Architecture Decision Records — why Vela™ is shaped the way it is. - [0001 — Neutral model as the cross-layer currency](https://vela.dev/docs/vela/architecture/adr/0001-neutral-model-as-cross-layer-currency): The neutral model is the only thing that crosses a port. - [0002 — Core owns market data](https://vela.dev/docs/vela/architecture/adr/0002-core-owns-market-data): The core is the sole owner of primary market data. - [0003 — No default scripting engine](https://vela.dev/docs/vela/architecture/adr/0003-no-default-scripting-engine): A bare chart is candles-only; scripting engines are opt-in. - [0004 — Enforce layering with an import ACL](https://vela.dev/docs/vela/architecture/adr/0004-enforce-layering-with-import-acl): Layer boundaries are enforced by lint, not by convention. - [0005 — Core owns user drawings](https://vela.dev/docs/vela/architecture/adr/0005-core-owns-user-drawings): Interactive drawings are a core-owned model, not renderer state. - [0006 — Workspace composes charts; chrome is a projection of the active cell](https://vela.dev/docs/vela/architecture/adr/0006-workspace-composes-charts): The workspace composes charts; chrome is a projection of the active cell. - Contributing - [Setup](https://vela.dev/docs/vela/contributing/setup): Clone, install, and run Vela™ from source. - [Workflow](https://vela.dev/docs/vela/contributing/workflow): Quality gates, the playground, and where a change belongs. - [Testing](https://vela.dev/docs/vela/contributing/testing): How Vela™ is tested — unit suite, playground, and the quality gate. - [Debugging](https://vela.dev/docs/vela/contributing/debugging): Hands-on debugging of the core, renderer, and playground. - [Plugin SDK](https://vela.dev/docs/vela/contributing/plugin-sdk): Chart types, renderer layers, native indicators, and widget contributions. - [Adding a Renderer](https://vela.dev/docs/vela/contributing/adding-a-renderer): Implement the IChartRenderer port and inject a custom backend. - [Adding a Scripting Engine](https://vela.dev/docs/vela/contributing/adding-an-engine): Implement the ScriptingEngine port for a new language. - [Adding a Data Provider](https://vela.dev/docs/vela/contributing/adding-a-data-provider): Implement the DataProvider interface and register it on the chart. - [Adding a Drawing Tool](https://vela.dev/docs/vela/contributing/adding-a-drawing-tool): Add an interactive drawing tool to the core-owned catalogue. - [Adding a UI-kit component](https://vela.dev/docs/vela/contributing/adding-a-ui-component): Add a component to the Vela™ UI kit. # Vela Pro > Commercial extensions for Vela's open-source core - [Vela Pro](https://vela.dev/docs/pro): Commercial extensions for Vela's open-source core, adding order-flow charts, Pine Script®, backtesting, a terminal layout, and trading modules. - Get started - [Why Vela Pro](https://vela.dev/docs/pro/get-started/why-vela-pro): Compare Vela's open-source core and Vela Pro across chart types, indicators, scripting, extensibility, modules, and licensing. - [Transitioning from TradingView Advanced Charts](https://vela.dev/docs/pro/get-started/transitioning-from-tradingview): Migrate Datafeed and UDF connectors, PineJS custom indicators, saved layouts, drawings, and overrides from TradingView Advanced Charts to Vela Pro. - [Requirements](https://vela.dev/docs/pro/get-started/requirements): Browser support, Content-Security-Policy rules, build tooling, bundle sizes, and backend interfaces for Vela Pro. - [Repository access](https://vela.dev/docs/pro/get-started/access): Manage your developer license roster, accept the GitHub repository invitation, and clone Vela Pro. - [Installation](https://vela.dev/docs/pro/get-started/setup): Build Vela Pro from your repository clone, pack workspace tarballs, and install them with a single deduplicated copy of the core. - [Quickstart](https://vela.dev/docs/pro/get-started/quickstart): Initialize Vela Pro, mount your first workspace, configure individual features, and install optional modules. - UI frameworks - [React](https://vela.dev/docs/pro/get-started/frameworks/react): Mount a Vela Pro workspace in a React component, update chart state from props, and clean up safely under Strict Mode. - [Next.js](https://vela.dev/docs/pro/get-started/frameworks/nextjs): Render a Vela Pro workspace in Next.js App Router using a Client Component without dynamic import wrappers. - [Vue](https://vela.dev/docs/pro/get-started/frameworks/vue): Mount a Vela Pro workspace in a Vue 3 Composition API component, watch reactive props, and avoid proxy wrapping. - [Architecture](https://vela.dev/docs/pro/get-started/architecture): How Vela Pro composes features, domain modules, standalone widgets, and backend ports on top of Vela's open-source core. - Charts - [Workspace layout](https://vela.dev/docs/pro/charts/interface): Explore the seven layout regions of a Vela Pro workspace, which layer renders each region, and where to configure them. - Chart types - [Overview](https://vela.dev/docs/pro/charts/chart-types/overview): Configure built-in and Vela Pro chart types, switch chart styles programmatically, handle data capability requirements, and register custom chart types. - [Footprint](https://vela.dev/docs/pro/charts/chart-types/footprint): Configure the Footprint chart type, connect a footprint data feed, and customize display modes, imbalances, visible-range profiles, and zoom behavior. - [TPO](https://vela.dev/docs/pro/charts/chart-types/tpo): Configure the TPO (Time Price Opportunity) chart type, session presets, block intervals, market structure levels, volume profiles, and context menu actions. - [Tick charts](https://vela.dev/docs/pro/charts/tick-charts): Enable nT tick resolutions in Vela Pro, configure per-market session or custom bar anchoring, connect tick feeds, and handle automatic 1T line-chart switching. - Drawings - [Drawing tools](https://vela.dev/docs/pro/charts/drawings/tools): Configure the drawing toolbar, searchable tool menus, favorites, magnet snapping, and the radial tool wheel in Vela Pro. - [Managing drawings](https://vela.dev/docs/pro/charts/drawings/editing): Select, style, duplicate, and reorder drawings in the UI, or create, update, and subscribe to drawings programmatically through chart.drawings. - [Custom drawing tools](https://vela.dev/docs/pro/charts/drawings/custom-tools): Customize built-in drawing tools with presets and toolbar groups, or contribute new interactive drawing tool classes to Vela's open-source core. - [Bar replay](https://vela.dev/docs/pro/charts/replay): Enable and customize the bar replay UI, add custom tick or sub-bar resolution controls, synchronize multi-chart grids, and control replay programmatically. - [Events and subscriptions](https://vela.dev/docs/pro/charts/events): Access active charts and cells, update symbols, timeframes, and layouts programmatically, and subscribe to workspace, chart, and Vela Pro events. - Indicators and scripting - [Overview](https://vela.dev/docs/pro/indicators/overview): Indicator types supported by Vela Pro, how each one executes, and how to add them to a chart. - [Built-in indicators](https://vela.dev/docs/pro/indicators/included): Classic technical studies, native order-flow indicators, and LuxAlgo library families available on Vela Pro charts. - [Indicator menu](https://vela.dev/docs/pro/indicators/library): Configure the Vela Pro indicator menu, manage user favorites, proxy the LuxAlgo library, and register custom script catalogs. - [Custom indicators](https://vela.dev/docs/pro/indicators/custom-indicators): Build custom indicators for Vela Pro using Pine Script®, workspace indicator manifests, or TypeScript native indicators. - Pine Script® - [Pine Script® with PineTS](https://vela.dev/docs/pro/indicators/pine/runtime): Configure the Pine Script® engine in Vela Pro, resolve imported libraries, supply footprint data, and manage scripts from code. - [Pine code editor](https://vela.dev/docs/pro/indicators/pine/code-editor): Configure the built-in Pine Script® editor panel and integrate custom save, review, and version tools with codeEditor(). - Custom runtimes - [Custom runtimes](https://vela.dev/docs/pro/indicators/runtimes/engines): Implement and register a custom ScriptingEngine to run proprietary languages or remote calculations alongside Pine Script®. - [Charting adapters](https://vela.dev/docs/pro/indicators/runtimes/charting-adapters): Emit series, fills, and drawings through the visual output model, or render custom graphics with canvas layers and chart types. - Backtesting - [Strategies](https://vela.dev/docs/pro/indicators/backtesting/strategies): Run Pine Script® strategies on Vela Pro charts, configure capital and commission properties, and set workspace-wide defaults. - [Strategy tester](https://vela.dev/docs/pro/indicators/backtesting/strategy-tester): Configure and control the docked Strategy tester panel, inspect its summary strip and report tabs, and understand how backtest metrics are calculated. - [Backtest results](https://vela.dev/docs/pro/indicators/backtesting/results): Subscribe to strategy runs, compute full StrategyReport metrics in code, persist backtests to a backend, and build custom report panels. - Data connectivity - [Overview](https://vela.dev/docs/pro/data/overview): How Vela Pro connects to market data providers and which provider interfaces each feature requires. - [Custom data providers](https://vela.dev/docs/pro/data/custom-source): Implement a custom DataProvider over REST and WebSocket endpoints for historical bars, symbol lists, live streams, metadata, and calendars. - Symbols and sessions - [Symbol search](https://vela.dev/docs/pro/data/symbols/symbol-search): Configure, extend, programmatically control, or replace the Vela Pro symbol picker. - [Symbology](https://vela.dev/docs/pro/data/symbols/symbology): Symbol string formats, cross-provider resolution rules, symbol metadata fields, and instrument ID mapping. - [Timeframes and sessions](https://vela.dev/docs/pro/data/symbols/sessions): Timeframe string conventions, regular and extended trading hours, market calendars, display time zones, and session presets. - Quotes, depth, and footprints - [Quotes and market depth](https://vela.dev/docs/pro/data/feeds/quotes-and-depth): Supply real-time symbol quotes with QuoteSource and implement DepthFeed on your provider for order book depth, DOM ladders, and trade tapes. - [Footprint data](https://vela.dev/docs/pro/data/feeds/footprints): Implement the FootprintFeed interface on your data provider to power Footprint charts, order-flow indicators, and Pine Script® footprint requests. - Modules and widgets - [Overview](https://vela.dev/docs/pro/modules/overview): Configure Vela Pro's seven domain modules, coordinate inter-module features, control state from code, and connect backend services through typed ports. - Modules - [Watchlist](https://vela.dev/docs/pro/modules/catalog/watchlist): Configure the Watchlist module, manage symbol lists programmatically, persist watchlists to your backend, and connect a custom quote feed. - [Alerts](https://vela.dev/docs/pro/modules/catalog/alerts): Configure price and Pine Script® alerts, handle notification callbacks and webhooks, manage rules from code, and persist alerts to your server. - [Order book](https://vela.dev/docs/pro/modules/catalog/order-book): Configure the Order Book module (depth book, DOM ladder, and trades tape), connect a DepthFeed data provider, and enable DOM click trading. - [Journal](https://vela.dev/docs/pro/modules/catalog/journal): Enable the Trading Journal module, import historical executions, persist journal data to your backend, and embed journal widgets on custom pages. - [Calendar](https://vela.dev/docs/pro/modules/catalog/calendar): Enable the Calendar module, supply economic releases and corporate events through CalendarSource, refresh cached ranges, and mount calendar widgets. - [AI](https://vela.dev/docs/pro/modules/catalog/ai): Enable the AI module, connect your own AI model and conversation state, define tools backed by chart helpers, and mount standalone chat widgets. - Trading - [Overview](https://vela.dev/docs/pro/modules/trading/overview): Enable chart trading, configure the order ticket, trading dock, display layer, and paper broker, and submit or manage orders from code. - [Orders, positions, and brackets](https://vela.dev/docs/pro/modules/trading/trading-concepts): Reference for the Trading module's domain model, including order types, lifecycle states, bracket exits, sizing modes, positions, fills, and risk limits. - [Broker integration](https://vela.dev/docs/pro/modules/trading/broker): Implement the Broker port interface to connect order execution, account state streaming, position management, and multi-account switching to your brokerage. - [Standalone widgets](https://vela.dev/docs/pro/modules/widgets): Mount Vela Pro module widgets (Watchlist, Order Book, Order Ticket, Trading Panel, Journal, Calendar, and AI) in custom layouts with or without a chart. - Custom panels and modules - [Custom panels and widgets](https://vela.dev/docs/pro/modules/extending/custom-widgets): Register custom side panels, bottom dock panels, and side rail actions in a Vela Pro workspace using reusable widget components. - [Custom modules](https://vela.dev/docs/pro/modules/extending/custom-modules): Author custom Vela Pro modules with definePlugin, declare module dependencies, consume TradingApi and AlertsApi, and expose typed module APIs. - Customization - [Theming and branding](https://vela.dev/docs/pro/customization/theme): Configure chart and panel themes, override panel styles with CSS tokens and data-part selectors, and customize the corner attribution mark. - [Interface layout](https://vela.dev/docs/pro/customization/interface): Enable or disable Vela Pro features and modules, configure the topbar, side rail, and bottom dock, hide chart settings, and customize tooltips. - [Keyboard shortcuts](https://vela.dev/docs/pro/customization/shortcuts): Reference for built-in workspace, drawing, editor, replay, trading, and alert keyboard shortcuts, plus how to rebind, disable, or register shortcuts. - Mobile - [Responsive layout](https://vela.dev/docs/pro/customization/mobile/responsive): Configure container breakpoints, mobile chrome, touch gestures, and Vela Pro feature behavior on narrow screens. - [Mobile widgets](https://vela.dev/docs/pro/customization/mobile/widgets): Build tabbed phone and multi-column tablet layouts with Vela Pro standalone widgets, shared controllers, and active-feed management. - [iOS and Android WebViews](https://vela.dev/docs/pro/customization/mobile/native-apps): Embed Vela Pro inside iOS WKWebView and Android WebView containers with proper origin setup, runtime permissions, and a JavaScript message bridge. - Persistence - [Overview](https://vela.dev/docs/pro/persistence/overview): Reference for all state persisted by Vela Pro, default browser storage keys, and options for moving storage to a server. - [Layouts and chart state](https://vela.dev/docs/pro/persistence/layouts): Read, save, and restore the workspace state document covering the grid layout, chart settings, drawings, and indicators. - [Server-side storage](https://vela.dev/docs/pro/persistence/backend): Connect every Vela Pro persistence adapter and module storage port to a REST backend for authenticated users. - [Configuration precedence](https://vela.dev/docs/pro/persistence/precedence): Precedence rules between constructor options, saved workspace state documents, per-symbol drawing storage, and runtime API calls. - Feature and plugin stores - [Indicator persistence](https://vela.dev/docs/pro/persistence/stores/indicators): How built-in indicators, manifest scripts, menu scripts, and indicator favorites are serialized and restored across reloads. - [Drawing persistence](https://vela.dev/docs/pro/persistence/stores/drawings): Configure per-symbol drawing storage, workspace state document persistence, chart and symbol keys, and conflict resolution rules. - [Indicator templates](https://vela.dev/docs/pro/persistence/stores/indicator-templates): Save indicator setups as reusable templates, persist them to a backend, enforce plan limits, and apply templates programmatically. - [Plugin state](https://vela.dev/docs/pro/persistence/stores/plugin-state): Persist custom panel, widget action, and module state inside the workspace state document using registerStatePersistence. - API reference - [Overview](https://vela.dev/docs/pro/api/overview): Packages, entry points, page conventions, and version matrix for the Vela Pro API reference. - [Enablers and options](https://vela.dev/docs/pro/api/enablers): API reference for enableVelaPro(), individual feature enablers, and their configuration option types. - [Layout and panels](https://vela.dev/docs/pro/api/layout): API reference for the side rail, bottom dock, panel descriptors, and UI formatting helpers in @luxalgo/vela-pro. - [Chart types and order flow](https://vela.dev/docs/pro/api/chart-types): API reference for Footprint and TPO chart types, order-flow models, data engines, and aggregation helpers. - [Data feeds](https://vela.dev/docs/pro/api/data-feeds): API reference for extended data provider interfaces covering footprint slices, market depth, trades, quotes, and tick charts. - [Indicators](https://vela.dev/docs/pro/api/indicators): API reference for the indicator menu, favorites, indicator templates, and the Pine Script® library resolver. - [Code editor](https://vela.dev/docs/pro/api/code-editor): API reference for the Pine code editor handle, configuration options, diagnostics, and language dataset types. - [Symbols](https://vela.dev/docs/pro/api/symbols): API reference for the symbol search dialog, custom symbol sections, and symbology helper functions. - [Drawings](https://vela.dev/docs/pro/api/drawings): API reference for per-symbol drawing persistence, drawing menus, the radial tool wheel, and tooltip cards. - [Replay and strategy](https://vela.dev/docs/pro/api/replay-and-strategy): API reference for bar replay controls and the strategy tester tracker, report builder, and result types. - [Module SDK](https://vela.dev/docs/pro/api/module-sdk): API reference for @luxalgo/vela-pro/plugin, including definePlugin, plugin context, and panel and UI helpers. - [Watchlist](https://vela.dev/docs/pro/api/watchlist): API reference for @luxalgo/vela-pro-watchlist, including the watchlist plugin, controller, widgets, and storage port. - [Alerts](https://vela.dev/docs/pro/api/alerts): API reference for @luxalgo/vela-pro-alerts, including the alerts plugin, controller, backend port, dialog, and widget. - [Order book](https://vela.dev/docs/pro/api/order-book): API reference for @luxalgo/vela-pro-dom, including the order book plugin, standalone DOM widget, and settings types. - [Trading](https://vela.dev/docs/pro/api/trading): API reference for @luxalgo/vela-pro-trading, including the Broker port, paper broker, controller, and trading widgets. - [Journal](https://vela.dev/docs/pro/api/journal): API reference for @luxalgo/vela-pro-journal, including the journal controller, store port, widgets, and analytics. - [Calendar](https://vela.dev/docs/pro/api/calendar): API reference for @luxalgo/vela-pro-calendar, including the data source port, controller, widget, and event types. - [AI](https://vela.dev/docs/pro/api/ai): API reference for @luxalgo/vela-pro-ai, including the AI plugin, chat widget, chart helpers, input schemas, and message types. - Reference - [Coding agents](https://vela.dev/docs/pro/reference/coding-agents): Configure AI coding agents with the skills included in the Vela Pro repository, alongside the skills for Vela's open-source core and UI kit. - [Upgrading](https://vela.dev/docs/pro/reference/upgrading): Upgrade your Vela Pro clone to a new release, verify compatible core and peer dependency versions, and review breaking changes. - [Troubleshooting](https://vela.dev/docs/pro/reference/troubleshooting): Diagnose common Vela Pro integration issues using console diagnostics, symptom descriptions, and targeted fixes. - [Production checklist](https://vela.dev/docs/pro/reference/production): Review data providers, server-side persistence, broker wiring, CSP headers, bundle splitting, and licensing before deploying Vela Pro. - [Glossary](https://vela.dev/docs/pro/reference/glossary): Definitions of core Vela Pro concepts, architectural terms, and API naming conventions with links to detailed guides. # PineTS - [PineTS](https://vela.dev/docs/pinets): PineTS is a TypeScript implementation of the Pine Script® language, allowing you to write trading indicators and strategies using TypeScript. - **Guides** - [Getting Started](https://vela.dev/docs/pinets/getting-started): PineTS is a JavaScript/TypeScript runtime that enables execution of Pine Script® indicators in JavaScript environments. It supports two input formats: - [Initialization and Usage](https://vela.dev/docs/pinets/initialization-and-usage): This guide explains how to initialize PineTS and run indicators or strategies with detailed documentation of all available options and return values. - [Indicator](https://vela.dev/docs/pinets/indicator) - [Syntax Guide](https://vela.dev/docs/pinets/syntax-guide) - [Strategy Namespace](https://vela.dev/docs/pinets/strategy) - [Alerts](https://vela.dev/docs/pinets/alerts) - [Pagination & Live Streaming](https://vela.dev/docs/pinets/pagination) - [Data Providers](https://vela.dev/docs/pinets/data-providers): PineTS supports multiple market data providers out of the box. Each provider fetches OHLCV candle data and symbol metadata, which PineTS uses to run your indicators. - [Using within charts](https://vela.dev/docs/pinets/using-within-charts): Display Pine Script® indicators and strategies on a Vela™ chart with Vela-PineTS. - **Architecture** - Architecture - [Architecture](https://vela.dev/docs/pinets/architecture) - Transpiler - [Transpiler](https://vela.dev/docs/pinets/architecture/transpiler) - [Scope Manager](https://vela.dev/docs/pinets/architecture/transpiler/scope-manager): One of the transpiler's most critical jobs is managing variable scope and state persistence across bar iterations. - [Transformers](https://vela.dev/docs/pinets/architecture/transpiler/transformers): The transformation logic is split into specialized transformers found in src/transpiler/transformers/. - [Transpilation Examples](https://vela.dev/docs/pinets/architecture/transpiler/examples): This page shows actual transpiler output to help understand the transformation process. - Runtime - [Runtime](https://vela.dev/docs/pinets/architecture/runtime): The runtime environment executes the transpiled code. It simulates the Pine Script® execution model where the script runs once for every bar in the dataset. - [Context Class](https://vela.dev/docs/pinets/architecture/runtime/context): The Context is the central object (usually named $) passed to the transpiled function. It acts as the container for: - [Series Class](https://vela.dev/docs/pinets/architecture/runtime/series): The Series class is the bridge between JavaScript arrays and Pine Script® semantics. - [Execution Flow](https://vela.dev/docs/pinets/architecture/runtime/execution-flow): The run() method orchestrates the execution. - Namespaces - [Namespaces](https://vela.dev/docs/pinets/architecture/namespaces): PineTS mimics Pine Script®'s namespacing (ta., math., request.) through modular namespace classes attached to the Context. - [Technical Analysis (ta)](https://vela.dev/docs/pinets/architecture/namespaces/ta) - [Math (math)](https://vela.dev/docs/pinets/architecture/namespaces/math): This directory contains the implementation of Pine Script®'s math. namespace functions. These functions provide standard mathematical operations adapted for time-series data. - [Array (array)](https://vela.dev/docs/pinets/architecture/namespaces/array): This directory contains the implementation of Pine Script®'s array. namespace functions. These functions manage dynamically sized arrays, distinct from time-series variables. - [Request (request)](https://vela.dev/docs/pinets/architecture/namespaces/request): This directory contains the implementation of Pine Script®'s request. functions, primarily request.security for multi-timeframe analysis. - [Input (input)](https://vela.dev/docs/pinets/architecture/namespaces/input): This directory contains the implementation of Pine Script®'s input. namespace functions. These functions handle user inputs/parameters for indicators. - [Property-Like Access](https://vela.dev/docs/pinets/architecture/namespaces/property-access): This document explains how PineTS handles Pine Script®'s property-like syntax where namespace members can be accessed without parentheses. - Specifics - [Specifics](https://vela.dev/docs/pinets/architecture/specifics): This section covers specific architectural patterns used to solve complex problems in Pine Script® emulation. - [Tuple Handling](https://vela.dev/docs/pinets/architecture/specifics/tuples): Pine Script® supports tuples (functions returning [a, b]). PineTS has a specific architecture to handle this while distinguishing tuples from time-series arrays. - [Request Security](https://vela.dev/docs/pinets/architecture/specifics/request-security): PineTS creates a strictly Two-Level Hierarchy to prevent infinite recursion. - [Debugging Guide](https://vela.dev/docs/pinets/architecture/debugging): This guide covers practical debugging techniques for PineTS development. - [Best Practices](https://vela.dev/docs/pinets/architecture/best-practices): This guide covers common mistakes and recommended patterns when working with PineTS. - [Syntax Evolution](https://vela.dev/docs/pinets/architecture/syntax-evolution): PineTS is evolving to provide a more unified and cleaner API surface. While older syntax patterns remain supported for backward compatibility, they may trigger runtime warnings. - **Coverage** - [Language Coverage](https://vela.dev/docs/pinets/lang-coverage): This document lists the features of the PineTS language and their status. - API Coverage - [API Coverage](https://vela.dev/docs/pinets/api-coverage): This is a list of all the functions in the Pine Script® API and their implementation status. - [Input](https://vela.dev/docs/pinets/api-coverage/input) - [Math](https://vela.dev/docs/pinets/api-coverage/math) - [Technical Analysis](https://vela.dev/docs/pinets/api-coverage/ta) - [Array](https://vela.dev/docs/pinets/api-coverage/array) - [Barstate](https://vela.dev/docs/pinets/api-coverage/barstate) - [Box](https://vela.dev/docs/pinets/api-coverage/box) - [Builtin](https://vela.dev/docs/pinets/api-coverage/builtin) - [Chart](https://vela.dev/docs/pinets/api-coverage/chart) - [Color](https://vela.dev/docs/pinets/api-coverage/color) - [Label](https://vela.dev/docs/pinets/api-coverage/label) - [Line](https://vela.dev/docs/pinets/api-coverage/line) - [Linefill](https://vela.dev/docs/pinets/api-coverage/linefill) - [Log](https://vela.dev/docs/pinets/api-coverage/log) - [Map](https://vela.dev/docs/pinets/api-coverage/map) - [Matrix](https://vela.dev/docs/pinets/api-coverage/matrix) - [Plots](https://vela.dev/docs/pinets/api-coverage/plots) - [Polyline](https://vela.dev/docs/pinets/api-coverage/polyline) - [Request](https://vela.dev/docs/pinets/api-coverage/request) - [Runtime](https://vela.dev/docs/pinets/api-coverage/runtime) - [Session](https://vela.dev/docs/pinets/api-coverage/session) - [String](https://vela.dev/docs/pinets/api-coverage/str) - [Strategy](https://vela.dev/docs/pinets/api-coverage/strategy) - [Syminfo](https://vela.dev/docs/pinets/api-coverage/syminfo): Symbol information namespace providing metadata about the current trading symbol. - [Table](https://vela.dev/docs/pinets/api-coverage/table) - [Ticker](https://vela.dev/docs/pinets/api-coverage/ticker) - [Timeframe](https://vela.dev/docs/pinets/api-coverage/timeframe) - [Types](https://vela.dev/docs/pinets/api-coverage/types) - [Constants Audit](https://vela.dev/docs/pinets/api-coverage/constants-audit) - [Others](https://vela.dev/docs/pinets/api-coverage/others)