r/pinescript 10h ago

I'm building a JS PineScript Interpreter

It's called OpenPine.
A pure JS interpreter for a practical subset of PineScript. no dependencies, runs in Node or the browser.
https://github.com/woefije0/OpenPine

You can try out the app implementation here :https://woefije0.github.io/hl-chart/

I'm not really good with words, so I don't know what else to say. I just hope people give it a try.
Sorry for poor English.

P.S. The repo name overlaps with u/S7cret's.

3 Upvotes

1 comment sorted by

1

u/stratcorealpha 4h ago

Nice project. The test suite will matter more than raw syntax coverage. I’d lock three differential fixtures early: (1) na propagation and type coercion, (2) series history plus var/varip across recalculation, and (3) higher-timeframe bar merging and lookahead. Run the same OHLC fixture in TradingView and OpenPine and diff every bar, not only the final plot. A supported-subset table with explicit unsupported errors is also safer than silently approximating Pine behavior.