PineTS
PineTS is a TypeScript implementation of the Pine Script language, allowing you to write trading indicators and strategies using TypeScript while leveraging the power of Pine Script’s execution model and functions.
With PineTS, you can create, test and visualize technical indicators using modern web technologies while maintaining compatibility with the Pine Script language features.
Documentation
Getting Started
Learn the basics of converting Pine Script to PineTS and understand key differences.
Initialization and Usage
Complete guide on how to initialize PineTS and run indicators with detailed API documentation, including all constructor parameters, run method options, and return value formats.
Indicator
The Indicator class — wrapping a script for cached transpile, schema introspection (getInputsMeta() / getPropsMeta()), and runtime overrides via .input["Title"] = value and .prop["name"] = value.
Syntax Guide
Detailed guide on PineTS syntax and how to write code equivalent to Pine Script, including variable declarations (var vs let), series access, and control structures.
Strategy Namespace
Developer reference for strategy.* — order primitives (entry, exit, close, cancel), the context.strategy object, trade collections, risk management, and known divergences from TradingView.
Language Coverage
Click here to explore the Pine Script language features implemented in PineTS, including execution model, time series, and more.
API Coverage
Click here to check the implementation status of Pine Script API functions and methods in PineTS.
| Created by Alaa-eddine KADDOURI | Licensed under AGPL-3.0 |