Class StreamingIndicators
java.lang.Object
com.quantfinlib.indicators.StreamingIndicators
Incremental O(1)-per-tick indicators for live/HFT strategies: update state
with each new value instead of recomputing arrays. Zero allocation after
construction, and numerically identical to the batch
Indicators
implementations (same seeding and smoothing), so a strategy backtested on
batch arrays behaves the same when run live on the streaming versions.
Instances are single-threaded by design — one per strategy/consumer thread — matching the single-consumer dispatch model of the HFT bus.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classExponential moving average seeded with the SMA of the firstperiodvalues.static final classMACD line, signal and histogram, matching the batch seeding exactly.static final classWilder RSI; NaN untilperiodprice changes have been observed.static final classSimple moving average over a fixed window; NaN until the window fills.static final classCumulative volume-weighted average price. -
Method Summary