Appearance
Personalize your experience

Quascript
6.5ns – 59.6ns per bar execution · Up to 156.4M bars/sec · Zero-GC arena memory · AVX2 SIMD acceleration · Direct WebGL 2.0 streaming. Self-hostable C++20 core.
Eliminate JVM and JavaScript garbage collection freezes. Designed for high-frequency trading, backtesting, and institutional charting.
Peak Bar Execution (156M bars/s)
Heap Allocation (Zero-GC)
Bars / Sec Peak Throughput
Live Forming-Bar Tick Latency
Wrapped Quatick Core & Live QuaScript Demos
Every indicator executes directly inside the real wrapped @quatick/quatick-charts engine. Switch real algorithms, inspect pure QuaScript AST code, and observe sub-microsecond zero-GC execution in real time.
End-to-End Execution Pipeline
How QuaScript transforms source code into hardware-vectorized WebGL 2.0 primitives in sub-microseconds.
Market Stream (Binary POSIX FIFO)
│
▼
[quascore C++20 VM Core] ──► Evaluates Indicators into 64-byte L3 Cache Lines (Zero Heap Strings)
│
▼ Direct POSIX Shared Memory (/dev/shm/quatick_vbo_0)
[Browser WebGL 2.0 Surface] ──► Uploads 32-bit uint directly into Instanced Vertex Buffer (120 FPS)The 12 Spectral Bands Standard
Optical wavelength dispersion mapped directly to market structures. 44 calibrated families across 11 precision luminance steps (484 constants) eliminate eye fatigue on multi-monitor trading desks.
484 Calibrated Color Constants Matrix
Reds & Rubies
Stop-Loss Breaches & Invalidation
Corals & Oranges
Volatility Squeeze & Warning
Golds & Yellows
VWAP Anchors & Equilibrium
Lime & Chartreuse
Momentum Breakouts & Impulse
Greens & Mints
Bullish Trend Confirmation
Teals & Cyans
Order Flow Delta & Volume Absorption
Cool Blues & Sky
Baseline Moving Averages
Indigos & Violets
Multi-Timeframe HTF Anchors
Purples & Plums
Oscillators & Dynamic RSI
Pinks & Magentas
Options Gamma & Volatility Spikes
Earth & Bronze
Commodity Spreads & Fixed Income
Achromatic Neutrals
Subdued Scales & Grid Planes
0xAABBGGRR) during AST lowering with 0 nanoseconds and 0 heap bytes allocated at runtime.plot(invalidation, color=color.rose.500, width=2.0)Core Engine Capabilities
Engineered from scratch in C++20 for high-frequency algorithmic finance.
C++20 Bytecode Engine
Direct threaded opcode dispatch (goto *I->handler) executing at an unprecedented 32.8 to 60.2 nanoseconds per historical bar.
0.00ns Constant Folding
All 484 color constants and numeric literals resolve during AST lowering into immediate registers with exactly 0 bytes allocated.
AVX2 SIMD Acceleration
Vectorized non-temporal streaming writes (_mm256_stream_si256) flushing 8 bars of color data per CPU clock cycle.
Zero Garbage Collection
Eliminates the 15ms–80ms Stop-The-World GC freezes of JavaScript and JVM runtimes using power-of-two circular memory arenas.
484 Native Color Constants
44 calibrated color families across 11 precision luminance shades (50 to 950), optically balanced for dark-mode terminals.
Dual-Backend Graphics
Synchronized dual-surface stacking: WebGL 2.0 instanced shaders for 1M+ points at 120 FPS plus Canvas 2D for crisp typography.
Structure-of-Arrays (SoA)
64-byte L3 cache-line aligned memory layout ensuring 100% cache utilization and eliminating false sharing across CPU cores.
Lookahead Bias Prevention
Strict bar-by-bar execution semantics: orders placed on bar close fill strictly at the next bar's Open, preventing simulation leakage.
Historical Indexing [n]
Sub-nanosecond circular buffer lookback: close[1], high[5], and ta.highest(high, 100) execute without memory reallocation.
POSIX Shared Memory IPC
Zero-copy ring buffer communication via /dev/shm delivering sub-400ns IPC between execution sidecars and web terminals.
Parameter Sweep Engine
Multi-threaded parallel parameter optimization testing millions of parameter permutations across historical datasets in seconds.
Direct HFT Broker OMS
Native C++ execution bridge to Zerodha Kite, Interactive Brokers, Binance, and institutional FIX gateways with sub-millisecond routing.
Production Code Examples
Write indicators in QuaScript or embed the C++20 engine directly in your trading daemon.
Performance Benchmarks Under Real Workloads
Comprehensive empirical measurements executed on Darwin arm64 with release binary across scaling history, full output series generation, and live streaming market ticks.
156.4M bars/s
Peak Throughput
6.5 ns / bar (empirical release bench)
0.00 Bytes
Runtime Memory
Zero heap allocations (Zero-GC circular arenas)
1.6 µs p50
Live Tick Latency
Sub-20µs roundtrip websocket worker
0.0% Drift
Scale Stability
Constant O(1) latency from 1M to 10M bars
Empirical Benchmark Suite
Condition 1: Compute-only throughput (ns/bar) evaluated across 1M, 5M, and 10M bars.
| Preset Algorithm | Domain | 1M Bars | 5M Bars | 10M Bars | Peak Throughput | Scale Drift |
|---|---|---|---|---|---|---|
Volume Profile (Visible Range) volume/volume_profile.qs | Volume & Flow | 6.5 ns | 6.3 ns | 6.4 ns | 156.4 M/s | 1.00x |
On-Balance Volume (OBV) volume/obv.qs | Volume & Flow | 12.2 ns | 12.2 ns | 11.9 ns | 84.0 M/s | 1.00x |
Reference Levels charts/reference_levels.qs | Trend | 28.2 ns | 28.2 ns | 28.2 ns | 35.4 M/s | 1.00x |
Average True Range (ATR) volatility/atr.qs | Volatility | 28.4 ns | 27.8 ns | 28.5 ns | 35.1 M/s | 1.00x |
Volume Oscillator volume/volume_osc.qs | Volume & Flow | 29.0 ns | 29.1 ns | 28.2 ns | 35.5 M/s | 1.00x |
Volume & Orderflow Tape charts/volume_and_orderflow.qs | Volume & Flow | 31.8 ns | 31.7 ns | 32.2 ns | 31.1 M/s | 1.00x |
Simple Moving Average (SMA) ma/sma.qs | Moving Average | 39.3 ns | 39.3 ns | 39.2 ns | 25.5 M/s | 1.00x |
Rate of Change (ROC) momentum/roc.qs | Momentum | 40.1 ns | 40.7 ns | 41.0 ns | 24.4 M/s | 1.00x |
Lines & Catmull-Rom Splines charts/lines_and_splines.qs | Trend | 43.1 ns | 41.0 ns | 41.9 ns | 23.9 M/s | 1.00x |
Exponential Moving Avg (EMA) ma/ema.qs | Moving Average | 46.1 ns | 47.0 ns | 46.9 ns | 21.3 M/s | 1.00x |
Keltner Channels trend/keltner_channels.qs | Trend | 47.1 ns | 45.9 ns | 46.0 ns | 21.7 M/s | 1.00x |
Relative Strength Index (RSI) momentum/rsi.qs | Momentum | 47.7 ns | 47.9 ns | 48.2 ns | 20.7 M/s | 1.00x |
Average Directional Index (ADX) trend/adx.qs | Trend | 48.5 ns | 48.6 ns | 48.5 ns | 20.6 M/s | 1.00x |
Volume Weighted Avg (VWAP) volume/vwap.qs | Volume & Flow | 53.2 ns | 52.9 ns | 53.7 ns | 18.6 M/s | 1.00x |
MA Ribbon 4-Avg Suite ma/ma_ribbon.qs | Moving Average | 56.8 ns | 56.6 ns | 56.9 ns | 17.6 M/s | 1.00x |
EMA Cross Execution Bot bot/ema_cross_bot.qs | Strategy & Bot | 57.7 ns | 59.6 ns | 62.5 ns | 16.0 M/s | 1.08x |
Candlesticks & Bar Formats (7 Plots) charts/candlesticks_and_bars.qs | Trend | 59.4 ns | 59.2 ns | 57.8 ns | 17.3 M/s | 1.00x |
Supertrend ATR Cloud trend/supertrend.qs | Trend | 59.6 ns | 62.0 ns | 59.1 ns | 16.9 M/s | 1.00x |
MACD Velocity & Histogram momentum/macd.qs | Momentum | 75.8 ns | 75.7 ns | 76.1 ns | 13.1 M/s | 1.00x |
Bollinger Squeeze Bands volatility/bollinger_bands.qs | Volatility | 86.8 ns | 86.1 ns | 85.2 ns | 11.7 M/s | 1.00x |
Ichimoku Kumo Cloud (5 Lines) trend/ichimoku_cloud.qs | Trend | 95.8 ns | 97.3 ns | 96.7 ns | 10.3 M/s | 1.00x |
Trend Breakout OMS Strategy strategy/trend_breakout_atr.qs | Strategy & Bot | 119.4 ns | 118.2 ns | 120.8 ns | 8.3 M/s | 1.01x |
Liquidity Sweeps & FVG smc/liquidity_sweeps.qs | SMC & Stats | 143.0 ns | 138.1 ns | 142.4 ns | 7.0 M/s | 1.00x |
Multi-Grid HFT Trading Bot bot/grid_bot.qs | Strategy & Bot | 152.0 ns | 167.8 ns | 186.6 ns | 5.4 M/s | 1.22x |
TTM Squeeze Breakout Strategy strategy/squeeze_breakout.qs | Strategy & Bot | 194.7 ns | 197.8 ns | 193.6 ns | 5.2 M/s | 1.00x |
8-Oscillator Momentum Matrix momentum/momentum_matrix.qs | Momentum | 223.4 ns | 223.8 ns | 229.6 ns | 4.4 M/s | 1.03x |
Market Structure Zone Objects smc/market_structure_zones.qs | SMC & Stats | 908.1 ns | 913.7 ns | 934.0 ns | 1.1 M/s | 1.03x |
Hurst Exponent R/S Regime Window stats/hurst_regime.qs | SMC & Stats | 1201.9 ns | 1194.9 ns | 1195.2 ns | 0.8 M/s | 1.00x |
Architecture Overview
Data & Ingestion
Zero-copy POSIX FIFO shared memory. High-frequency broker WebSocket ingestion feeds 100,000 ticks/s directly into ring buffers.
Compute Core
Threaded C++20 virtual machine dispatch. AVX2 SIMD acceleration. Zero-GC power-of-two circular memory arenas.
Render Pipeline
Dual-surface WebGL 2.0 instanced shaders and Canvas 2D overlays. Direct VBO binary ingestion locked at 120 FPS.
Ready to Build with QuaScript?
Start free. Full access to the C++20 toolchain, CLI, and real-time execution engine.
No credit card required · MIT license · C++20 Core