qPACE: The all-in-one quantitative toolkit powered by Rust - usable from Python, Node.js, and the browser.
Cross‑language, cross‑platform - high‑performance Rust core with the fully typed API for Python, Node.js (NAPI), and Browser (WebAssembly).
Extremely fast backtesting engine - millions of bars per second. Export exact trades back to Pine for one‑click visual validation.
Technical Analysis - more than 30 indicators fully compliant with TradingView results, written in Pine and compiled using our compiler.
Data layer - resampling/aggregation, zipping/unzipping, reading/writing from CSV/Parquet, and more.
Cross-ecosystem - interoperable with Pandas, Polars, and more.
CLI + upcoming UI
pip install qpacenpm install qpacePython
importqpaceasqpohlcv=qp.Ohlcv.read_csv("btc.csv")
ctx=qp.Ctx(ohlcv, qp.Sym.BTC_USD())
rsi=qp.ta.rsi(ctx.copy(), ohlcv.close, 14)Node.js
import*asqpfrom"qpace/node";constohlcv=qp.Ohlcv.readCsv("btc.csv");constctx=newqp.Ctx(ohlcv,qp.Sym.BTC_USD());constrsi=qp.ta.rsi(ctx.copy(),ohlcv.close,14);We designed and developed in-house Pine Script compiler that takes your original Pine Script code and compiles it to efficient rust code that is later exposed to Python, Node.js and Web/WASM with type hints. Easy interface and practically no hustle from your side. Our compiler supports any technical analysis indicator and strategy, while having extreme performance.
- bot automation
- machine learning
- backtesting
- parameter optimization
- and much more
script.pine
//@version=5
library("MyLibrary")
export custom_ma(series float src, int length) =>
ta.ema(ta.change(src) * volume, length)
Python:
importqpaceasqpimportmy_libraryaspinectx=qp.Ctx(ohlcv, qp.Sym.BTC_USD())
custom_ma=pine.script.custom_ma(ctx.copy(), ohlcv.close, 14)
print(custom_ma) # [1.0, 2.0, ...]Node.js:
import*asqpfrom"qpace/node";import*aspinefrom"my_library";constctx=newqp.Ctx(ohlcv,qp.Sym.BTC_USD());constcustomMa=pine.script.custom_ma(ctx.copy(),ohlcv.close,14);console.log(customMa);// [1.0, 2.0, ...]qPACE Suite: Free collection of the best indicators and strategies (separate package to qpace).
Python:
pip install qpace_suiteJavaScript:
npm install @qpace/suite- Machine Learning: Lorentzian Classification
- WaveTrend 3D
- Nadaraya-Watson: Envelope
- MLExtensions
- KernelFunctions
- Adaptive Schaff Trend Cycle (STC)
- Amazing Oscillator
- Donchian Trend Ranges
- Exponential Trend
- Supertrended RSI
- Triple Smoothed Signals
Built-in TA functions.
importqpaceasqprsi=qp.ta.rsi(ctx.copy(), src=ohlcv.close, length=14)import*asqpfrom"qpace/node";constrsi=qp.ta.rsi(ctx.copy(),ohlcv.close,14);Every TA indicator was compiled using Pine to Python/JavaScript compiler.
- Awesome OscillatorAO
- Absolute Price OscillatorAPO
- Balance of PowerBOP
- Commodity Channel IndexCCI
- Coppock Curve
- KST OscillatorKST
- Moving Average Convergence DivergenceMACD
- MomentumMOM
- Price OscillatorPO
- Rate of ChangeROC
- Relative Strength IndexRSI
- Relative Vigor IndexRVGI
- Stochastic RSISTOCHRSI
- TrixTRIX
- True Strength IndexTSI
- Ultimate OscillatorUO
- Williams %RW%R
- Double Exponential MADEMA
- Exponential MAEMA
- Fibonacci Weighted MAFMWA
- Hull MAHMA
- Linear Weighted MALWMA
- Relative MARMA
- Simple MASMA
- Symmetrically Weighted MASWMA
- Triple Exponential MATEMA
- Volume-Weighted MAVWMA
- Weighted MAWMA
- Advance/Decline RatioADR
- AroonAROON
- Bull/Bear PowerBBP
- Chande-Kroll StopCKS
- Choppiness IndexCHOP
- Detrended Price OscillatorDPO
- SupertrendST
- Vortex IndicatorVI
- Average True RangeATR
- Bollinger BandsBB
- Bollinger %B%B
- Bollinger WidthBBW
- Donchian ChannelDC
- Relative Volatility IndexRVI
- True RangeTR
- Accumulation/Distribution (Williams)ACCDIST
- Chaikin Money FlowCMF
- Elder’s Force IndexEFI
- Ease of MovementEOM
- Money Flow IndexMFI
- Volume OscillatorVO
- Standard DeviationSTD
- Bars Since
- Change
- Cross
- Cross-Over
- Cross-Under
- Cumulative SumCUM
- Highest
- Highest Bars
- Lowest
- Lowest Bars
- Rate of ChangeROC
Become a part of the qPACE community and connect with like-minded individuals who are passionate about trading, finance, and technology!


