PineTS
PineTS is a TypeScript implementation of the Pine Script language, allowing you to write trading indicators and strategies using TypeScript.
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.
Getting Started
Learn the basics of converting Pine Script to PineTS and understand key differences.
Initialization & Usage
How to initialize PineTS and run indicators: constructor parameters, run options, and return formats.
Indicator
The Indicator class: cached transpile, schema introspection, and runtime input/prop overrides.
Syntax Guide
Writing PineTS code equivalent to Pine Script: declarations, series access, and control structures.
Alerts
The alert() and alertcondition() functions and how alert events are collected.
Pagination & Live Streaming
Incremental processing of historical data and live bar updates.
Strategy Namespace
strategy.* order primitives, trade collections, risk management, and known divergences.
Data Providers
Built-in market data providers and how to implement your own.
Architecture
How PineTS works internally: transpiler, runtime, and namespace implementations.
Language Coverage
Pine Script language features implemented in PineTS: execution model, time series, and more.
API Coverage
Implementation status of Pine Script API functions and methods in PineTS.
View on GitHub
Star the repo, report issues, or contribute to PineTS.