https://github.com/ferranbt/pinecone
Pinescript runtime written in Rust
https://github.com/ferranbt/pinecone
pine pine-script pinescript
Last synced: 2 months ago
JSON representation
Pinescript runtime written in Rust
- Host: GitHub
- URL: https://github.com/ferranbt/pinecone
- Owner: ferranbt
- Created: 2026-01-24T04:18:08.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-02-13T12:11:26.000Z (2 months ago)
- Last Synced: 2026-02-13T21:23:04.280Z (2 months ago)
- Topics: pine, pine-script, pinescript
- Language: Rust
- Homepage:
- Size: 417 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pinecone
A modular PineScript interpreter written in Rust.
Pinecone executes PineScript code (TradingView's scripting language) with support for technical analysis, custom indicators, and strategy backtesting. The interpreter is designed to be extensible - you can add custom builtin functions and output types to integrate with your own systems.
## Features
- Full PineScript v5 language support
- Technical analysis functions (moving averages, oscillators, etc.)
- Drawing objects (plots, labels, boxes)
- Modular output system - extend with [custom types and builtins](examples/custom-builtin-func)
- Type-safe generic architecture
## Example
```rust
use pine::Script;
let script = Script::compile(r#"
fast_ma = ta.sma(close, 10)
slow_ma = ta.sma(close, 20)
plot(fast_ma, color=color.blue)
plot(slow_ma, color=color.red)
"#)?;
let output = script.execute(&bar)?;
```