QTSurfer Engine API 0.99.71

API reference for authors of QTSurfer trading strategies and for applications that embed the engine as a library.

This site documents a curated subset of the engine: the types a strategy receives, calls, extends or has to supply an instance of. Everything else — schedulers, order routers, exchange adapters, the code generator, the backtest driver — is implementation detail and is deliberately absent. Nothing outside this reference is part of the compatibility promise, even where the underlying class happens to be public in the jar.

Where to start

Strategies — com.wualabs.qtsurfer.engine.strategy
A strategy extends one of the abstract bases — AbstractTickerStrategy, AbstractKlineStrategy or AbstractFundingRateStrategy — declares its tunables with StrategyProperty, and emits BuySignal and SellSignal.
Indicators — com.wualabs.qtsurfer.engine.indicators
Every indicator implements RTIndicator and updates incrementally from a MarketSnapshot. The whole catalogue is public: moving averages, momentum, volatility, volume, statistics and on-chain families, plus the TA-Lib and ta4j bridges.
Market data — com.wualabs.qtsurfer.engine.core
Ticker, Kline, FundingRate and the Instrument model (spot, perpetual, dated future).
Backtesting — com.wualabs.qtsurfer.engine.strategy.backtest.simulation
The fee, slippage and fill models that decide how a simulated order is filled, together with the ready-made implementations to plug into a backtest.

Types are documented at the level at which they are meant to be used. Where an interface is something the caller supplies — a FeeModel, an ExecutionCallback, a StateStore — the shipped implementations are documented alongside it. Where an interface is only ever handed back by the engine, its implementations are not.

Package
Description
 
 
 
 
 
 
 
State management and sliding-window data structures.
 
Moving average indicators.
Pro moving-average indicators (pro tier).
Bollinger Bands indicators.
Core interfaces and abstract base classes for the RTIndicator framework.
Distance / deviation indicators (free tier).
Utility and compositional indicators for building complex indicator pipelines.
Multi-indicator containers and builders for managing groups of indicators per instrument.
Momentum and oscillator indicators (free tier).
Pro momentum / oscillator indicators (pro tier).
Numeric and functional operator indicators.
 
 
 
Statistical indicators and computations.
Pro statistical indicators.
Risk-adjusted performance ratios.
Volatility estimators.
 
 
Pro trend indicators (pro tier).
Pro volatility indicators (pro tier).
Pro volume indicators (pro tier).