@wicklib/pro
v0.34.0
Published
Wicklib commercial add-on
Readme
@wicklib/pro
Wicklib's commercial add-on. Requires a valid license key at runtime.
Status: Phase 3 — analytics. Licensing and registration are complete. License-gated volume-profile calculation/rendering, trade-tick footprint aggregation/streaming, L2 depth aggregation, absorption detection, price-alert evaluation, strategy backtesting, and script-to-strategy adaptation are implemented.
The package consumes @wicklib/core through its published entrypoint only. The
exports map blocks deep imports, and CI fails if any appear.
Volume profile
computeVolumeProfile(context, bars, options) requires the volume-profile feature and
returns price bins, point of control, and value area. It supports uniform or close-based
volume distribution and fixed/automatic price ranges.
addVolumeProfileOverlay(context, chart, bars, options) computes the profile and registers
a clipped core overlay. The overlay draws the histogram on the extension layer, below
drawings and crosshair.
computeFootprint(context, trades, options) aggregates buy/sell trade ticks into time and
price buckets with per-level delta and imbalance detection.
FootprintAggregator performs the same aggregation incrementally. It enforces non-decreasing
trade times, updates the active bucket, and supports batch replay or live streaming through
one state path.
computeDepth() and DepthAggregator aggregate complete L2 bid/ask snapshots by price
bucket, with totals, delta, book imbalance, latest-snapshot lookup, and streaming order
validation.
detectAbsorption() compares aggressive footprint volume against passive depth at the same
price level. It reports buys absorbed by ask liquidity and sells absorbed by bid liquidity
using a configurable aggression-to-depth ratio.
AlertEngine and evaluateAlerts() provide offline, deterministic price alerts on closed
bars. Rules trigger on transitions and support close/high/low sources.
License
Proprietary. See LICENSE.
runBacktest() evaluates a target-position strategy against closed bars. Signals are filled
at the next bar open, with configurable fees and slippage, fully invested sizing, equity
marking, and max drawdown. Requires the strategy license feature.
runScriptBacktest() adapts a compiled WickScript replay to the strategy engine. Configure a
signal plot whose values are -1, 0, 1, or null, and receive the backtest plus the
script's bar-bound alerts. It accepts the compiled script structurally, so Pro has no runtime
dependency on @wicklib/script.
