Streaming API
The ferro_ta.streaming module provides stateful, bar-by-bar indicator computation
for live/real-time trading. Each class maintains an internal buffer and returns NaN
during the warmup period.
What’s new: the streaming universe
Besides the 14 hand-written classes (StreamingSMA, StreamingRSI, …)
there are now 215 more streams, one for nearly every batch indicator,
generated from a single declarative registry. They share the same live-bar,
snapshot and non-finite semantics described below and exist in Python, WASM,
the C ABI and Go. The full list is the Stream catalog.
Parity contract. On finite input a stream equals the batch function at every bar: identical NaN mask, values within 1e-9 relative, integer outputs exact.
Naming per surface:
from ferro_ta.data.streaming import StreamingKeltnerChannels
kc = StreamingKeltnerChannels(timeperiod=20, atr_period=10, multiplier=2.0)
upper, middle, lower = kc.update(high, low, close)
const kc = new WasmStreamingKeltnerChannels(20, 10, 2.0);
const [upper, middle, lower] = kc.update(high, low, close); // peek(...) previews
FtStreamWillr *w = NULL;
ft_stream_willr_new(14, &w); /* _new _update _peek _reset _save _load _free */
double out; ft_stream_willr_update(w, high, low, close, &out);
ft_stream_willr_free(w);
willr, err := ferrota.NewStreamWillr(14) // also Update, Peek, Save, LoadStreamWillr, Close
defer willr.Close()
value, err := willr.Update(high, low, close)
Python classes are Streaming<UpperCamel> (StreamingWillr), WASM classes
WasmStreaming<UpperCamel>, C functions ft_stream_<name>_* and Go
wrappers NewStream<UpperCamel> / Stream<UpperCamel>.
Notes and exclusions
Streams whose warm-up value is 0 (candlestick patterns,
ht_trendmode) areis_readyfrom the first bar, because the batch function emits 0 there.regime_adx/regime_combinedbatch functions emit-1on NaN input; streams skip NaN ticks, so they never emit-1.The
ichimokustream omitschikou(it needs future bars).No stream, by design:
williams_fractals(centred window needs future bars),back_adjusted_continuous/ratio_adjusted_continuous(rewrite past bars),rank_values(whole-series rank) andforward_fill_nan(its input is NaN, which streams skip).The 9 original streams are unchanged, so batch-only extras (
bbands/stochmatype, rollingvwap(timeperiod>0)) have no stream.Limits:
mavpperiods are capped at 4096; period and count parameters at 2^24 (same as the C ABI).Performance: see
benchmarks/bench_streaming_universe.py.
Keyword names
Stream parameters take the C ABI names (ft_<name>), which match the Python
batch function everywhere except these three:
Stream |
Stream keyword(s) |
Python batch keyword(s) |
|---|---|---|
|
|
|
|
|
|
|
|
|
So StreamingCoppock(roc1=14, roc2=11, wma_period=10), not
roc1_period=14. Positional arguments are in the same order on both.
Live bars: committing vs. previewing
Exchanges deliver many ticks per bar. update(..., closed=True) (the
default) commits a finished bar. update(..., closed=False) previews the
still-forming bar from the last committed state without changing it, so each
tick of the forming bar replaces the previous preview:
from ferro_ta.data.streaming import StreamingRSI
rsi = StreamingRSI(14)
for bar in history: # closed bars
rsi.update(bar.close)
for tick in live_ticks: # forming bar
value = rsi.update(tick.price, closed=tick.bar_closed)
Committed output is bit-identical whether or not previews were interleaved.
closed is keyword-only. Previews are allocation-free for every indicator
and cost about the same as a commit.
Building bars from ticks
BarBuilder turns raw ticks into OHLCV bars on a session-aligned grid
(session_open + k * interval; the last bar is cut at session_close).
Defaults are NSE hours, 09:15–15:30 IST, so 5-minute bars start at 09:15, 09:20, …
from ferro_ta.data.streaming import BarBuilder, StreamingRSI
bars, rsi = BarBuilder(300), StreamingRSI(14)
for tick in feed: # ts in UTC epoch ms
status, closed = bars.on_tick(tick.ts_ms, tick.price, tick.qty)
if closed is not None:
rsi.update(closed.close) # commit on close
if bars.forming is not None:
live_rsi = rsi.update(bars.forming.close, closed=False)
# from a timer, so bars close on time even when the market is quiet:
if (closed := bars.on_time(now_ms)) is not None:
rsi.update(closed.close)
A tick exactly on a boundary opens the next bar.
on_tickreturns a status:"accepted","late"(older than the last accepted tick or inside a closed bar),"duplicate"(same timestamp, price and qty as the last tick),"out_of_session"or"invalid". Only accepted ticks change state.Gaps produce no bars, so no holiday calendar is needed.
Other sessions:
BarBuilder(3600, session_open="09:30", session_close="16:00", utc_offset_minutes=-240)for New York in summer.utc_offset_minutesis a fixed offset; there is no time-zone or DST handling. For a market that observes daylight saving time, create a new builder with the new offset when the clocks change (between sessions, so no forming bar is lost). With the wrong offset, the first or last hour of the session is rejected as"out_of_session". NSE (IST) has no DST.
Conditions
Event helpers emit 1 / -1 / 0 and support previews like any indicator:
StreamingCross(dead_band)— cross ofaoverbwith hysteresis: inside±dead_bandthe side is unchanged, so noise around a level fires at most once per real crossing (dead_band=0matches batchcheck_cross).StreamingStreak(n)—1while the lastn(or more) inputs were all non-zero.StreamingCooldown(bars)— passes a signal, then mutes the nextbarsbars.
cross, cooldown = StreamingCross(dead_band=0.5), StreamingCooldown(10)
if cooldown.update(cross.update(rsi_value, 30.0)) == 1:
alert("RSI crossed above 30")
Option IV and greeks
StreamingOptionGreeks(strike, option_type="call", model="bsm", rate=0.0,
carry=0.0) takes (option_price, underlying, time_to_expiry_years) per tick
and returns (iv, delta, gamma, vega, theta, rho). The IV solver starts from
the previous tick’s IV; a price no volatility can reproduce returns all-NaN
and keeps that starting point.
Introspection and snapshots
count— number of committed bars (previews and NaN/±inf ticks excluded).is_ready—Trueonce the last committed bar produced a non-NaN value.copy.copy(ind)/copy.deepcopy(ind)— independent snapshot of the full state, e.g. to evaluate a what-if path without disturbing the live one.ind.to_json()/Class.from_json(s)andpickle— save state and restore it in another process; the restored object continues bit-identically. Snapshots are{"format": 1, "kind": "rsi", "state": {...}}. Loading a differentkindor an unsupportedformatraisesValueError. The format number is bumped whenever a saved layout changes, so old snapshots fail loudly instead of loading wrong.
Non-finite ticks
A tick with any NaN or ±inf input (bad print, feed gap) returns NaN and is otherwise
skipped: indicator state, count and the last value are untouched, so
the next clean bar continues as if the bad tick never arrived. Previously a
single NaN poisoned running sums (SMA, Bollinger) and recursive averages (EMA,
RSI, ATR) permanently; infinity did the same via inf - inf.
Other bindings
WASM:
update(...)commits,peek(...)previews;countandisReadygetters.WasmBarBuilder(onTickreturns{status, closed}).saveState/loadStateneed the opt-insnapshotcargo feature, which keeps the default bundle size unchanged.C ABI / Go:
ft_stream_*_peek/Stream*.Peekmirrorupdatewithout committing;ft_stream_*_save/_loadandSave/LoadStream*snapshot state;ft_bar_builder_*/BarBuilder.
Stream catalog
Kind: windowed streams replay the batch kernel over the last lookback
bars; native streams update incremental state; legacy are the original
hand-written classes. Regenerate with
python3 scripts/build_streaming_python.py --docs.
cycle (6)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
close |
value |
native |
|
|
|
close |
value |
native |
|
|
|
close |
inphase, quadrature |
native |
|
|
|
close |
sine, leadsine |
native |
|
|
|
close |
value |
native |
|
|
|
close |
value |
native |
extended (57)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
high, low |
fastperiod=5, slowperiod=34, timeperiod=5 |
value |
windowed |
|
|
high, low |
jaw_period=13, jaw_shift=8, teeth_period=8, teeth_shift=5, lips_period=5, lips_shift=3 |
jaw, teeth, lips |
native |
|
|
close |
timeperiod=21, offset=0.85, sigma=6.0 |
value |
windowed |
|
|
high, low |
fastperiod=5, slowperiod=34 |
value |
windowed |
|
|
close |
timeperiod=5, nbdevup=2.0, nbdevdn=2.0 |
value |
windowed |
|
|
close |
timeperiod=5, nbdevup=2.0, nbdevdn=2.0 |
value |
windowed |
|
|
high, low |
timeperiod=10, rocperiod=10 |
value |
native |
|
|
high, low, close |
timeperiod=10, multiplier=1.0, stop_period=9 |
long_stop, short_stop |
native |
|
|
high, low, close |
timeperiod=22, multiplier=3.0 |
long_exit, short_exit |
native |
|
|
high, low, close, volume |
fastperiod=3, slowperiod=10 |
value |
native |
|
|
high, low, close |
timeperiod=14 |
value |
windowed |
|
|
high, low, close, volume |
timeperiod=20 |
value |
native |
|
|
close |
wma_period=10, roc1=14, roc2=11 |
value |
windowed |
|
|
close |
timeperiod=3, streakperiod=2, rankperiod=100 |
value |
native |
|
|
high, low, close |
timeperiod=14 |
plus_di, minus_di, adx |
native |
|
|
high, low |
timeperiod=20 |
upper, middle, lower |
windowed |
|
|
close |
timeperiod=20 |
value |
windowed |
|
|
high, low, close |
timeperiod=13 |
bull, bear |
native |
|
|
high, low, volume |
timeperiod=14, scale=10000.0 |
value |
windowed |
|
|
high, low |
timeperiod=9 |
fisher, signal |
native |
|
|
close, volume |
timeperiod=13 |
value |
native |
|
|
close |
timeperiod=16 |
value |
native |
|
|
high, low |
jaw_period=13, jaw_shift=8, teeth_period=8, teeth_shift=5, lips_period=5, lips_shift=3 |
upper, lower |
native |
|
|
close |
timeperiod=20, annual=252.0 |
value |
windowed |
|
|
close |
timeperiod=16 |
value |
windowed |
|
|
high, low, close |
tenkan_period=9, kijun_period=26, senkou_b_period=52, displacement=26 |
tenkan, kijun, senkou_a, senkou_b |
native |
|
|
high, low, close |
timeperiod=20, atr_period=10, multiplier=2.0 |
upper, middle, lower |
native |
|
|
close |
roc1=10, roc2=15, roc3=20, roc4=30, sma1=10, sma2=10, sma3=10, sma4=15, signalperiod=9 |
kst, signal |
windowed |
|
|
high, low, close, volume |
fastperiod=34, slowperiod=55, signalperiod=13 |
kvo, signal |
native |
|
|
close |
timeperiod=20, percent=2.5, matype=0 |
upper, middle, lower |
native |
|
|
high, low |
timeperiod=9, sumperiod=25 |
value |
native |
|
|
close |
timeperiod=14 |
value |
native |
|
|
real |
timeperiod=3 |
value |
windowed |
|
|
high, low, close |
timeperiod=3, atr_period=14, multiplier=2.0 |
median, upper, lower, median_ema |
native |
|
|
real |
timeperiod=20, bins=10 |
value |
windowed |
|
|
close, volume |
value |
native |
|
|
|
close, volume |
timeperiod=255 |
nvi, signal |
native |
|
|
close, volume |
timeperiod=20, matype=1 |
value |
native |
|
|
close |
fastperiod=10, slowperiod=21 |
value |
windowed |
|
|
close, volume |
value |
native |
|
|
|
close, volume |
timeperiod=255, matype=1 |
pvi, signal |
native |
|
|
close, volume |
value |
native |
|
|
|
open, high, low, close |
timeperiod=10 |
rvi, signal |
native |
|
|
volume |
timeperiod=20 |
value |
native |
|
|
high, low, close |
timeperiod=14 |
rwi_high, rwi_low |
windowed |
|
|
high, low, close |
timeperiod=15, atr_period=15, multiplier=2.0 |
upper, middle, lower |
native |
|
|
close |
fastperiod=23, slowperiod=50, cycleperiod=10, d1=3, d2=3 |
value |
native |
|
|
high, low, close |
period=7, multiplier=… |
line, direction |
legacy |
|
|
close |
longperiod=25, shortperiod=13, signalperiod=13 |
tsi, signal |
native |
|
|
close |
timeperiod=14 |
value |
native |
|
|
close |
timeperiod=14, cmo_period=9 |
value |
native |
|
|
volume |
fastperiod=5, slowperiod=10 |
value |
native |
|
|
high, low, close |
timeperiod=14 |
plus_vi, minus_vi |
windowed |
|
|
volume |
timeperiod=25 |
value |
windowed |
|
|
high, low, close, volume |
value |
legacy |
|
|
|
close, volume |
timeperiod=20 |
value |
windowed |
|
|
close |
timeperiod=14 |
value |
native |
futures (1)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
front, next, next_weights |
value |
windowed |
math (9)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
a, b |
value |
windowed |
|
|
|
a, b |
value |
windowed |
|
|
|
real |
timeperiod=30 |
value |
windowed |
|
|
real |
timeperiod=30 |
value |
windowed |
|
|
a, b |
value |
windowed |
|
|
|
real |
timeperiod=30 |
value |
windowed |
|
|
real |
timeperiod=30 |
value |
windowed |
|
|
a, b |
value |
windowed |
|
|
|
real |
timeperiod=30 |
value |
windowed |
math_ops (5)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
real |
timeperiod=30 |
value |
windowed |
|
|
real |
timeperiod=30 |
value |
native |
|
|
real |
timeperiod=30 |
value |
windowed |
|
|
real |
timeperiod=30 |
value |
native |
|
|
real |
timeperiod=30 |
value |
windowed |
momentum (26)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
high, low, close |
timeperiod=14 |
value |
native |
|
|
high, low, close |
timeperiod=14 |
value |
native |
|
|
close |
fastperiod=12, slowperiod=26, matype=1 |
value |
native |
|
|
high, low |
timeperiod=14 |
aroondown, aroonup |
windowed |
|
|
high, low |
timeperiod=14 |
value |
windowed |
|
|
open, high, low, close |
value |
windowed |
|
|
|
high, low, close |
timeperiod=14 |
value |
windowed |
|
|
close |
timeperiod=14 |
value |
native |
|
|
high, low, close |
timeperiod=14 |
value |
native |
|
|
high, low, close |
timeperiod=14 |
value |
native |
|
|
high, low |
timeperiod=14 |
value |
native |
|
|
close |
timeperiod=10 |
value |
windowed |
|
|
high, low, close |
timeperiod=14 |
value |
native |
|
|
high, low |
timeperiod=14 |
value |
native |
|
|
close |
fastperiod=12, slowperiod=26, signalperiod=9, matype=1 |
ppo, signal, hist |
native |
|
|
close |
timeperiod=10 |
value |
windowed |
|
|
close |
timeperiod=10 |
value |
windowed |
|
|
close |
timeperiod=10 |
value |
windowed |
|
|
close |
timeperiod=10 |
value |
windowed |
|
|
value |
period=14 |
value |
legacy |
|
|
high, low, close |
fastk_period=…, slowk_period=…, slowd_period=… |
slowk, slowd |
legacy |
|
|
high, low, close |
fastk_period=5, fastd_period=3, fastd_matype=0 |
fastk, fastd |
native |
|
|
close |
timeperiod=14, fastk_period=5, fastd_period=3, fastd_matype=0 |
fastk, fastd |
native |
|
|
close |
timeperiod=30 |
value |
native |
|
|
high, low, close |
timeperiod1=7, timeperiod2=14, timeperiod3=28 |
value |
windowed |
|
|
high, low, close |
timeperiod=14 |
value |
windowed |
options (8)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
close |
window=20, trading_days=252.0 |
value |
windowed |
|
|
open, high, low, close |
window=20, trading_days=252.0 |
value |
windowed |
|
|
iv_series |
window=252 |
value |
windowed |
|
|
iv_series |
window=252 |
value |
windowed |
|
|
iv_series |
window=252 |
value |
windowed |
|
|
high, low |
window=20, trading_days=252.0 |
value |
windowed |
|
|
open, high, low, close |
window=20, trading_days=252.0 |
value |
windowed |
|
|
open, high, low, close |
window=20, trading_days=252.0 |
value |
windowed |
overlap (19)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
value |
period=20, nbdevup=…, nbdevdn=… |
upper, middle, lower |
legacy |
|
|
close |
timeperiod=30 |
value |
native |
|
|
value |
period |
value |
legacy |
|
|
close |
timeperiod=30 |
value |
native |
|
|
close |
timeperiod=30, matype=0 |
value |
native |
|
|
value |
fastperiod=…, slowperiod=…, signalperiod=… |
macd, signal, hist |
legacy |
|
|
close |
fastperiod=12, fastmatype=1, slowperiod=26, slowmatype=1, signalperiod=9, signalmatype=1 |
macd, signal, hist |
native |
|
|
close |
signalperiod=9 |
macd, signal, hist |
native |
|
|
close |
fastlimit=0.5, slowlimit=0.05 |
mama, fama |
native |
|
|
close, periods |
minperiod=2, maxperiod=30, matype=0 |
value |
native |
|
|
close |
timeperiod=14 |
value |
windowed |
|
|
high, low |
timeperiod=14 |
value |
windowed |
|
|
high, low |
acceleration=0.02, maximum=0.2 |
value |
native |
|
|
high, low |
startvalue=0.0, offsetonreverse=0.0, accelerationinitlong=0.02, accelerationlong=0.02, accelerationmaxlong=0.2, accelerationinitshort=0.02, accelerationshort=0.02, accelerationmaxshort=0.2 |
value |
native |
|
|
value |
period |
value |
legacy |
|
|
close |
timeperiod=5, vfactor=0.7 |
value |
native |
|
|
close |
timeperiod=30 |
value |
native |
|
|
close |
timeperiod=30 |
value |
windowed |
|
|
close |
timeperiod=30 |
value |
windowed |
pattern (61)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
|
|
|
open, high, low, close |
value |
windowed |
portfolio (5)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
a, b |
value |
windowed |
|
|
|
asset_returns, benchmark_returns |
value |
native |
|
|
|
asset, benchmark |
window=20 |
value |
windowed |
|
|
a, b |
hedge=1.0 |
value |
windowed |
|
|
x |
window=20 |
value |
windowed |
price_transform (4)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
open, high, low, close |
value |
windowed |
|
|
|
high, low |
value |
windowed |
|
|
|
high, low, close |
value |
windowed |
|
|
|
high, low, close |
value |
windowed |
regime (4)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
series |
window=20, threshold=3.0, slack=0.5 |
value |
native |
|
|
adx |
threshold=25.0 |
value |
windowed |
|
|
adx, atr, close |
adx_threshold=25.0, atr_pct_threshold=0.005 |
value |
windowed |
|
|
series |
short_window=10, long_window=50, threshold=2.0 |
value |
windowed |
statistic (9)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
real0, real1 |
timeperiod=5 |
value |
windowed |
|
|
real0, real1 |
timeperiod=30 |
value |
windowed |
|
|
close |
timeperiod=14 |
value |
windowed |
|
|
close |
timeperiod=14 |
value |
windowed |
|
|
close |
timeperiod=14 |
value |
windowed |
|
|
close |
timeperiod=14 |
value |
windowed |
|
|
real |
timeperiod=5, nbdev=1.0 |
value |
windowed |
|
|
close |
timeperiod=14 |
value |
windowed |
|
|
real |
timeperiod=5, nbdev=1.0 |
value |
windowed |
streaming-only (5)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
close, signal |
commission_per_trade=…, slippage_bps=… |
position, bar_return, equity, n_trades, total_commission, win_rate, avg_win, avg_loss, kelly_fraction |
legacy |
|
|
signal |
bars |
value |
legacy |
|
|
a, b |
dead_band=… |
value |
legacy |
|
|
option_price, underlying, time_to_expiry |
strike, option_type=…, model=…, rate=…, carry=… |
iv, delta, gamma, vega, theta, rho |
legacy |
|
|
condition |
n |
value |
legacy |
utilities (3)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
fast, slow |
value |
windowed |
|
|
|
position_size, funding_rate |
value |
native |
|
|
|
close |
timeperiod=14, oversold=30.0, overbought=70.0 |
value |
native |
volatility (3)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
high, low, close |
period=14 |
value |
legacy |
|
|
high, low, close |
timeperiod=14 |
value |
native |
|
|
high, low, close |
value |
windowed |
volume (4)
Name |
Python class |
Inputs |
Params (defaults) |
Outputs |
Kind |
|---|---|---|---|---|---|
|
|
high, low, close, volume |
value |
native |
|
|
|
high, low, close, volume |
fastperiod=3, slowperiod=10 |
value |
native |
|
|
high, low, close, volume |
timeperiod=14 |
value |
native |
|
|
close, volume |
value |
native |
API reference
Streaming / Incremental Indicators — bar-by-bar stateful classes.
All streaming classes are implemented in Rust (PyO3) for maximum performance.
The Python module re-exports the Rust classes from the _ferro_ta extension.
The extension must be built; there is no Python fallback.
Usage
>>> from ferro_ta.data.streaming import StreamingSMA, StreamingEMA, StreamingRSI
>>> import numpy as np
>>> sma = StreamingSMA(period=3)
>>> for close in [10.0, 11.0, 12.0, 13.0, 14.0]:
... val = sma.update(close)
... print(f"{close} → {val:.4f}" if not np.isnan(val) else f"{close} → NaN")
10.0 → NaN
11.0 → NaN
12.0 → 11.0000
13.0 → 12.0000
14.0 → 13.0000
Live bars
update(x) commits a closed bar; update(x, closed=False) previews the
still-forming bar without changing state. count / is_ready report
committed progress, copy.copy snapshots state, and NaN/±inf ticks are skipped
(they return NaN without poisoning state).
Available classes
StreamingSMA — Simple Moving Average StreamingEMA — Exponential Moving Average StreamingRSI — Relative Strength Index (Wilder seeding) StreamingATR — Average True Range (Wilder seeding) StreamingBBands — Bollinger Bands (upper, middle, lower) StreamingMACD — MACD line, signal, histogram StreamingStoch — Slow Stochastic (slowk, slowd) StreamingVWAP — Volume Weighted Average Price (cumulative) StreamingSupertrend — ATR-based Supertrend StreamingCross — Dead-band cross of two series (1 / -1 / 0 events) StreamingStreak — “N bars in a row” condition StreamingCooldown — Mute repeat signals for N bars StreamingOptionGreeks — Live IV + greeks for one option contract BarBuilder — Session-aligned tick → OHLCV bar builder (yields Bar)
Plus one class per registry stream (StreamingSum, StreamingAdd,
StreamingRollingMaxindex …): Streaming + the batch function name in
UpperCamel, taking that function’s parameters (same names and defaults) and
its inputs, one value each, in update. See __all__ for the full list.
Rust backend
All classes are PyO3 classes compiled into the _ferro_ta extension module.
Import them directly from the extension for zero-overhead access:
from ferro_ta._ferro_ta import StreamingSMA
- class ferro_ta.streaming.Bar(start_ms, end_ms, open, high, low, close, volume, ticks)
Bases:
objectOne OHLCV bar covering
[start_ms, end_ms)(UTC epoch milliseconds).- close
- end_ms
- high
- low
- open
- start_ms
- ticks
- volume
- class ferro_ta.streaming.BarBuilder(interval_secs, *, session_open='09:15', session_close='15:30', utc_offset_minutes=330)
Bases:
objectSession-aligned tick → bar builder.
Bars sit on a session-local grid (
session_open + k * interval; the last bar is cut atsession_close), so 5-minute NSE bars start at 09:15, 09:20, … Gaps without ticks produce no bars. Late, duplicate, out-of-session and invalid ticks are rejected with a status string.utc_offset_minutesis fixed (no DST): for markets that observe daylight saving, create a new builder with the new offset when clocks change.- forming
The bar currently being built, if any.
- static from_json(json)
Restore a snapshot made by
to_json.
- interval_secs
- on_tick(ts_ms, price, qty=0.0)
Feed one tick. Returns
(status, closed_bar_or_None)where status is"accepted","late","duplicate","out_of_session"or"invalid".
- on_time(now_ms)
Close the forming bar once
now_msreaches its end (no tick needed).
- reset()
- to_json()
Versioned JSON snapshot, including the forming bar (see
from_json).
- class ferro_ta.streaming.StreamingATR(period=Ellipsis)
Bases:
objectAverage True Range with TA-Lib–compatible Wilder seeding.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a non-NaN value.
- period
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingAc(fastperiod=5, slowperiod=34, timeperiod=5)
Bases:
objectStreaming Accelerator Oscillator: AO - SMA(AO, timeperiod).
- count
Number of committed (closed) bars.
- fastperiod
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- slowperiod
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingAd
Bases:
objectStreaming Chaikin accumulation / distribution line.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingAdd
Bases:
objectStreaming element-wise a + b.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(a, b, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingAdosc(fastperiod=3, slowperiod=10)
Bases:
objectStreaming Chaikin A/D oscillator: fast EMA - slow EMA of the A/D line, both seeded from its first value.
- count
Number of committed (closed) bars.
- fastperiod
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- slowperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingAdx(timeperiod=14)
Bases:
objectStreaming average directional index; first value at bar 2 * timeperiod - 1.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingAdxr(timeperiod=14)
Bases:
objectStreaming ADX rating: (ADX + ADX timeperiod - 1 bars ago) / 2.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingAlligator(jaw_period=13, jaw_shift=8, teeth_period=8, teeth_shift=5, lips_period=5, lips_shift=3)
Bases:
objectStreaming Bill Williams Alligator: (jaw, teeth, lips) SMMAs of the median price, each shifted forward by its shift.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- jaw_period
- jaw_shift
- lips_period
- lips_shift
- reset()
Reset state to initial condition.
- teeth_period
- teeth_shift
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingAlma(timeperiod=21, offset=0.85, sigma=6.0)
Bases:
objectStreaming Arnaud Legoux moving average: Gaussian-weighted mean of the last timeperiod closes.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- offset
- reset()
Reset state to initial condition.
- sigma
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingAo(fastperiod=5, slowperiod=34)
Bases:
objectStreaming Awesome Oscillator: SMA(median price, fast) - SMA(median price, slow).
- count
Number of committed (closed) bars.
- fastperiod
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- slowperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingApo(fastperiod=12, slowperiod=26, matype=1)
Bases:
objectStreaming absolute price oscillator: fast MA - slow MA (both of type matype).
- count
Number of committed (closed) bars.
- fastperiod
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- matype
- reset()
Reset state to initial condition.
- slowperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingAroon(timeperiod=14)
Bases:
objectStreaming Aroon: (aroon_down, aroon_up) over a timeperiod + 1 bar window; ties go to the most recent bar.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingAroonosc(timeperiod=14)
Bases:
objectStreaming Aroon oscillator: aroon_up - aroon_down.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingAvgprice
Bases:
objectStreaming average price: (open + high + low + close) / 4.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingBBands(period=Ellipsis, nbdevup=Ellipsis, nbdevdn=Ellipsis)
Bases:
objectBollinger Bands — returns (upper, middle, lower).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a non-NaN value.
- period
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(value, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingBbpercent(timeperiod=5, nbdevup=2.0, nbdevdn=2.0)
Bases:
objectStreaming Bollinger %B: (close - lower) / (upper - lower) of SMA bands (NaN on a zero-width band).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- nbdevdn
- nbdevup
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingBbwidth(timeperiod=5, nbdevup=2.0, nbdevdn=2.0)
Bases:
objectStreaming Bollinger bandwidth: (upper - lower) / middle of SMA bands (NaN on a zero middle).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- nbdevdn
- nbdevup
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingBeta(timeperiod=5)
Bases:
objectStreaming rolling beta of real1 returns on real0 returns over timeperiod returns.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real0, real1, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingBop
Bases:
objectStreaming Balance of Power: (close - open) / (high - low).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCci(timeperiod=14)
Bases:
objectStreaming Commodity Channel Index over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdl2crows
Bases:
objectStreaming Two Crows candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdl3blackcrows
Bases:
objectStreaming Three Black Crows candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdl3inside
Bases:
objectStreaming Three Inside Up/Down candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdl3linestrike
Bases:
objectStreaming Three-Line Strike candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdl3outside
Bases:
objectStreaming Three Outside Up/Down candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdl3starsinsouth
Bases:
objectStreaming Three Stars In The South candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdl3whitesoldiers
Bases:
objectStreaming Three Advancing White Soldiers candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlabandonedbaby
Bases:
objectStreaming Abandoned Baby candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdladvanceblock
Bases:
objectStreaming Advance Block candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlbelthold
Bases:
objectStreaming Belt-hold candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlbreakaway
Bases:
objectStreaming Breakaway candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlclosingmarubozu
Bases:
objectStreaming Closing Marubozu candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlconcealbabyswall
Bases:
objectStreaming Concealing Baby Swallow candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlcounterattack
Bases:
objectStreaming Counterattack candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdldarkcloudcover
Bases:
objectStreaming Dark Cloud Cover candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdldoji
Bases:
objectStreaming Doji candlestick pattern: 100 when the candle matches (pattern present, not a direction), else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdldojistar
Bases:
objectStreaming Doji Star candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdldragonflydoji
Bases:
objectStreaming Dragonfly Doji candlestick pattern: 100 when the candle matches (pattern present, not a direction), else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlengulfing
Bases:
objectStreaming Engulfing candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdleveningdojistar
Bases:
objectStreaming Evening Doji Star candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdleveningstar
Bases:
objectStreaming Evening Star candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlgapsidesidewhite
Bases:
objectStreaming Up/Down-gap side-by-side white lines candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlgravestonedoji
Bases:
objectStreaming Gravestone Doji candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlhammer
Bases:
objectStreaming Hammer candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlhangingman
Bases:
objectStreaming Hanging Man candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlharami
Bases:
objectStreaming Harami candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlharamicross
Bases:
objectStreaming Harami Cross candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlhighwave
Bases:
objectStreaming High-Wave Candle candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlhikkake
Bases:
objectStreaming Hikkake Pattern candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlhikkakemod
Bases:
objectStreaming Modified Hikkake Pattern candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlhomingpigeon
Bases:
objectStreaming Homing Pigeon candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlidentical3crows
Bases:
objectStreaming Identical Three Crows candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlinneck
Bases:
objectStreaming In-Neck Pattern candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlinvertedhammer
Bases:
objectStreaming Inverted Hammer candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlkicking
Bases:
objectStreaming Kicking candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlkickingbylength
Bases:
objectStreaming Kicking by length (direction follows the longer marubozu) candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlladderbottom
Bases:
objectStreaming Ladder Bottom candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdllongleggeddoji
Bases:
objectStreaming Long Legged Doji candlestick pattern: 100 when the candle matches (pattern present, not a direction), else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdllongline
Bases:
objectStreaming Long Line Candle candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlmarubozu
Bases:
objectStreaming Marubozu candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlmatchinglow
Bases:
objectStreaming Matching Low candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlmathold
Bases:
objectStreaming Mat Hold candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlmorningdojistar
Bases:
objectStreaming Morning Doji Star candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlmorningstar
Bases:
objectStreaming Morning Star candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlonneck
Bases:
objectStreaming On-Neck Pattern candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlpiercing
Bases:
objectStreaming Piercing Pattern candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlrickshawman
Bases:
objectStreaming Rickshaw Man candlestick pattern: 100 when the candle matches (pattern present, not a direction), else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlrisefall3methods
Bases:
objectStreaming Rising/Falling Three Methods candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlseparatinglines
Bases:
objectStreaming Separating Lines candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlshootingstar
Bases:
objectStreaming Shooting Star candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlshortline
Bases:
objectStreaming Short Line Candle candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlspinningtop
Bases:
objectStreaming Spinning Top candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlstalledpattern
Bases:
objectStreaming Stalled Pattern candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlsticksandwich
Bases:
objectStreaming Stick Sandwich candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdltakuri
Bases:
objectStreaming Takuri (Dragonfly Doji with very long lower shadow) candlestick pattern: 100 when the candle matches (pattern present, not a direction), else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdltasukigap
Bases:
objectStreaming Tasuki Gap candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlthrusting
Bases:
objectStreaming Thrusting Pattern candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdltristar
Bases:
objectStreaming Tristar Pattern candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlunique3river
Bases:
objectStreaming Unique 3 River candlestick pattern: 100 (bullish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlupsidegap2crows
Bases:
objectStreaming Upside Gap Two Crows candlestick pattern: -100 (bearish) when matched, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCdlxsidegap3methods
Bases:
objectStreaming Upside/Downside Gap Three Methods candlestick pattern: 100 bullish, -100 bearish, else 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingChaikinVol(timeperiod=10, rocperiod=10)
Bases:
objectStreaming Chaikin volatility: rocperiod-bar percent rate of change of an EMA of the high-low range.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- rocperiod
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingChandeKrollStop(timeperiod=10, multiplier=1.0, stop_period=9)
Bases:
objectStreaming Chande Kroll stop: rolling stop_period extremes of the ATR-offset timeperiod highest high / lowest low.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- multiplier
- reset()
Reset state to initial condition.
- stop_period
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingChandelierExit(timeperiod=22, multiplier=3.0)
Bases:
objectStreaming Chandelier exit: (highest high - multiplier * ATR, lowest low + multiplier * ATR) over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- multiplier
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCheckCross
Bases:
objectStreaming cross event between fast and slow: 1 cross-over, -1 cross-under, 0 none.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(fast, slow, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCho(fastperiod=3, slowperiod=10)
Bases:
objectStreaming Chaikin oscillator: fast EMA - slow EMA of the A/D line, both seeded from its first value (same as ADOSC).
- count
Number of committed (closed) bars.
- fastperiod
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- slowperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingChoppinessIndex(timeperiod=14)
Bases:
objectStreaming Choppiness Index over timeperiod bars (first value at bar timeperiod).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCloseToCloseVol(window=20, trading_days=252.0)
Bases:
objectStreaming annualised close-to-close realized volatility (first value after window returns).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- trading_days
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- window
- class ferro_ta.streaming.StreamingCmf(timeperiod=20)
Bases:
objectStreaming Chaikin money flow: timeperiod-bar sum of CLV * volume over the volume sum. Mirrors the batch zero-exact running volume sums, so an all-zero-volume window is NaN exactly as in the batch function.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCmo(timeperiod=14)
Bases:
objectStreaming Chande momentum oscillator (Wilder smoothed gains and losses).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCooldown(bars)
Bases:
objectPasses the first non-zero signal’s sign, then mutes the next bars bars.
- bars
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a non-NaN value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(signal, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCoppock(wma_period=10, roc1=14, roc2=11)
Bases:
objectStreaming Coppock curve: WMA(ROC(roc1) + ROC(roc2), wma_period).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- roc1
- roc2
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- wma_period
- class ferro_ta.streaming.StreamingCorrel(timeperiod=30)
Bases:
objectStreaming rolling Pearson correlation of two series over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real0, real1, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCross(dead_band=Ellipsis)
Bases:
objectCross of a over b with a dead band — emits 1 (up), -1 (down), 0.
Inside
±dead_bandthe side is unchanged, so noise around the level fires at most once per real crossing.- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a non-NaN value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(a, b, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingCrsi(timeperiod=3, streakperiod=2, rankperiod=100)
Bases:
objectStreaming Connors RSI: mean of RSI(close), RSI(up/down streak) and the percent rank of the 1-bar ROC.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- rankperiod
- reset()
Reset state to initial condition.
- streakperiod
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingDema(timeperiod=30)
Bases:
objectStreaming double exponential moving average: 2*EMA - EMA(EMA).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingDetectBreaksCusum(window=20, threshold=3.0, slack=0.5)
Bases:
objectStreaming CUSUM structural-break flag (1 at a break bar) against the previous window bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- slack
- threshold
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(series, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- window
- class ferro_ta.streaming.StreamingDiv
Bases:
objectStreaming element-wise a / b (NaN where b = 0).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(a, b, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingDmi(timeperiod=14)
Bases:
objectStreaming directional movement index: (+DI, -DI, ADX) from one Wilder state.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingDonchian(timeperiod=20)
Bases:
objectStreaming Donchian channels: (upper, middle, lower) = rolling highest high, midpoint, lowest low over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingDpo(timeperiod=20)
Bases:
objectStreaming detrended price oscillator: close timeperiod / 2 + 1 bars ago minus SMA(close, timeperiod).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingDx(timeperiod=14)
Bases:
objectStreaming directional movement index: 100 * abs(+DI - -DI) / (+DI + -DI); first value at bar timeperiod.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingEMA(period)
Bases:
objectExponential Moving Average with SMA seeding.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a non-NaN value.
- period
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(value, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingElderRay(timeperiod=13)
Bases:
objectStreaming Elder Ray: (bull, bear) = (high - EMA(close), low - EMA(close)).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingEmv(timeperiod=14, scale=10000.0)
Bases:
objectStreaming ease of movement: SMA over timeperiod bars of midpoint move * range * scale / volume (raw when timeperiod is 1).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- scale
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingFisher(timeperiod=9)
Bases:
objectStreaming Ehlers Fisher transform of the median price over timeperiod bars, plus the previous value as signal.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingForceIndex(timeperiod=13)
Bases:
objectStreaming force index: EMA of (close - previous close) * volume (raw when timeperiod is 1).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingFrama(timeperiod=16)
Bases:
objectStreaming Ehlers fractal adaptive moving average, seeded with the close at bar timeperiod - 1.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingFundingCumulativePnl
Bases:
objectStreaming cumulative funding PnL: running sum of -position_size * funding_rate.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(position_size, funding_rate, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingGarmanKlassVol(window=20, trading_days=252.0)
Bases:
objectStreaming annualised Garman-Klass OHLC realized volatility.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- trading_days
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- window
- class ferro_ta.streaming.StreamingGator(jaw_period=13, jaw_shift=8, teeth_period=8, teeth_shift=5, lips_period=5, lips_shift=3)
Bases:
objectStreaming Gator oscillator: (abs(jaw - teeth), -abs(teeth - lips)) of the Alligator lines.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- jaw_period
- jaw_shift
- lips_period
- lips_shift
- reset()
Reset state to initial condition.
- teeth_period
- teeth_shift
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingHistoricalVolatility(timeperiod=20, annual=252.0)
Bases:
objectStreaming close-to-close historical volatility: population stddev of timeperiod log returns, annualised, in percent.
- annual
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingHtDcperiod
Bases:
objectStreaming Hilbert-transform dominant cycle period in bars; first value at bar 63.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingHtDcphase
Bases:
objectStreaming Hilbert-transform dominant cycle phase in degrees; first value at bar 63.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingHtPhasor
Bases:
objectStreaming Hilbert-transform phasor components (inphase, quadrature); first value at bar 63.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingHtSine
Bases:
objectStreaming Hilbert-transform sine wave (sine, leadsine = sine 45 degrees ahead); first value at bar 63.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingHtTrendline
Bases:
objectStreaming Hilbert-transform instantaneous trendline: mean of the 4-bar smoothed price over the rounded dominant cycle period; first value at bar 63.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingHtTrendmode
Bases:
objectStreaming Hilbert-transform trend mode: 1 while the smoothed dominant cycle period is below 20 bars, else 0; 0 before bar 63.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingHullMa(timeperiod=16)
Bases:
objectStreaming Hull moving average: WMA(2 * WMA(n/2) - WMA(n), sqrt(n)).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingIchimoku(tenkan_period=9, kijun_period=26, senkou_b_period=52, displacement=26)
Bases:
objectStreaming Ichimoku cloud: (tenkan, kijun, senkou_a, senkou_b); the senkou spans are the values computed displacement bars ago. Chikou (close displacement bars ahead) needs future bars and is not streamed.
- count
Number of committed (closed) bars.
- displacement
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- kijun_period
- reset()
Reset state to initial condition.
- senkou_b_period
- tenkan_period
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingIvPercentile(window=252)
Bases:
objectStreaming IV percentile: share of window values at or below the latest IV.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(iv_series, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- window
- class ferro_ta.streaming.StreamingIvRank(window=252)
Bases:
objectStreaming IV rank: position of the latest IV between the window’s min and max.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(iv_series, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- window
- class ferro_ta.streaming.StreamingIvZscore(window=252)
Bases:
objectStreaming IV z-score of the latest IV against the window mean and deviation.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(iv_series, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- window
- class ferro_ta.streaming.StreamingKama(timeperiod=30)
Bases:
objectStreaming Kaufman adaptive moving average (TA-Lib); first value at bar timeperiod.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingKeltnerChannels(timeperiod=20, atr_period=10, multiplier=2.0)
Bases:
objectStreaming Keltner channels: (upper, middle, lower) = EMA(close) +/- multiplier * ATR(atr_period); the middle EMA is emitted on its own once seeded.
- atr_period
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- multiplier
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingKst(roc1=10, roc2=15, roc3=20, roc4=30, sma1=10, sma2=10, sma3=10, sma4=15, signalperiod=9)
Bases:
objectStreaming Know Sure Thing: weighted sum of four SMA-smoothed ROCs, plus an SMA signal.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- roc1
- roc2
- roc3
- roc4
- signalperiod
- sma1
- sma2
- sma3
- sma4
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingKvo(fastperiod=34, slowperiod=55, signalperiod=13)
Bases:
objectStreaming Klinger volume oscillator: EMA(volume force, fast) - EMA(volume force, slow), plus an EMA signal.
- count
Number of committed (closed) bars.
- fastperiod
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- signalperiod
- slowperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingLinearreg(timeperiod=14)
Bases:
objectStreaming linear regression fitted value at the last bar of the window.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingLinearregAngle(timeperiod=14)
Bases:
objectStreaming angle of the rolling regression line in degrees.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingLinearregIntercept(timeperiod=14)
Bases:
objectStreaming intercept of the rolling linear regression line.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingLinearregSlope(timeperiod=14)
Bases:
objectStreaming slope of the rolling linear regression line.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMACD(fastperiod=Ellipsis, slowperiod=Ellipsis, signalperiod=Ellipsis)
Bases:
objectMACD — returns (macd_line, signal_line, histogram).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a non-NaN value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(value, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMa(timeperiod=30, matype=0)
Bases:
objectStreaming moving average of type matype (0=SMA, 1=EMA, 2=WMA, 3=DEMA, 4=TEMA, 5=TRIMA, 6=KAMA, 7/8=T3).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- matype
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMaEnvelopes(timeperiod=20, percent=2.5, matype=0)
Bases:
objectStreaming moving-average envelopes: (upper, middle, lower) = MA * (1 +/- percent / 100), MA of type matype.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- matype
- percent
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMacdext(fastperiod=12, fastmatype=1, slowperiod=26, slowmatype=1, signalperiod=9, signalmatype=1)
Bases:
objectStreaming MACD with a moving-average type per leg: (macd, signal, hist), NaN until the signal is valid.
- count
Number of committed (closed) bars.
- fastmatype
- fastperiod
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- signalmatype
- signalperiod
- slowmatype
- slowperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMacdfix(signalperiod=9)
Bases:
objectStreaming MACD with fixed 12/26 EMAs: (macd, signal, hist), NaN until the signal is valid.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- signalperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMama(fastlimit=0.5, slowlimit=0.05)
Bases:
objectStreaming MESA adaptive moving average (mama, fama); first value at bar 32. Requires slowlimit <= fastlimit.
- count
Number of committed (closed) bars.
- fastlimit
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- slowlimit
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMass(timeperiod=9, sumperiod=25)
Bases:
objectStreaming Mass index: sumperiod-bar sum of EMA(range) / EMA(EMA(range)); the sum restarts after a non-finite ratio.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- sumperiod
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMavp(minperiod=2, maxperiod=30, matype=0)
Bases:
objectStreaming moving average with a per-bar period: periods is rounded and clamped to [minperiod, maxperiod].
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- matype
- maxperiod
- minperiod
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, periods, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMax(timeperiod=30)
Bases:
objectStreaming rolling maximum over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMcginley(timeperiod=14)
Bases:
objectStreaming McGinley dynamic, seeded with the SMA of the first timeperiod closes.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMedian(timeperiod=3)
Bases:
objectStreaming rolling median over timeperiod bars (even windows average the two central values).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMedianBands(timeperiod=3, atr_period=14, multiplier=2.0)
Bases:
objectStreaming median bands: (median, upper, lower, median EMA) from the rolling median of (high + low) / 2, ATR envelopes and an EMA of the median.
- atr_period
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- multiplier
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMedprice
Bases:
objectStreaming median price: (high + low) / 2.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMfi(timeperiod=14)
Bases:
objectStreaming money flow index over timeperiod bars of typical-price money flow. Mirrors the batch zero-exact running flow sums, so a window without money flow (e.g. all-zero volume) is 0 exactly as in the batch function.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMidpoint(timeperiod=14)
Bases:
objectStreaming midpoint: (max(close) + min(close)) / 2 over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMidprice(timeperiod=14)
Bases:
objectStreaming midprice: (highest high + lowest low) / 2 over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMin(timeperiod=30)
Bases:
objectStreaming rolling minimum over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMinusDi(timeperiod=14)
Bases:
objectStreaming -DI = 100 * smoothed -DM / smoothed TR; first value at bar timeperiod.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMinusDm(timeperiod=14)
Bases:
objectStreaming -DM, Wilder smoothed; first value at bar timeperiod - 1 (raw -DM when timeperiod is 1).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMode(timeperiod=20, bins=10)
Bases:
objectStreaming rolling mode: centre of the most populous of bins equal-width bins over timeperiod bars.
- bins
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMom(timeperiod=10)
Bases:
objectStreaming momentum: close - close[timeperiod bars ago].
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingMult
Bases:
objectStreaming element-wise a * b.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(a, b, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingNatr(timeperiod=14)
Bases:
objectStreaming normalized ATR: Wilder ATR / close * 100 (NaN where close is 0).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingNvi
Bases:
objectStreaming negative volume index from 1000: moves with the close only on bars whose volume falls.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingNviWithEma(timeperiod=255)
Bases:
objectStreaming negative volume index and an EMA signal of it.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingObv
Bases:
objectStreaming on-balance volume; the first bar is the first volume.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingObvSmoothed(timeperiod=20, matype=1)
Bases:
objectStreaming on-balance volume smoothed by a moving average of type matype.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- matype
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingOptionGreeks(strike, option_type=Ellipsis, model=Ellipsis, rate=Ellipsis, carry=Ellipsis)
Bases:
objectLive implied volatility and greeks for one option contract.
update(option_price, underlying, time_to_expiry)returns(iv, delta, gamma, vega, theta, rho). The IV solver is seeded with the previous tick’s IV; a price no volatility can reproduce yields all-NaN and keeps the seed.- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a non-NaN value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(option_price, underlying, time_to_expiry, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingParkinsonVol(window=20, trading_days=252.0)
Bases:
objectStreaming annualised Parkinson high-low realized volatility.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- trading_days
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- window
- class ferro_ta.streaming.StreamingPlusDi(timeperiod=14)
Bases:
objectStreaming +DI = 100 * smoothed +DM / smoothed TR; first value at bar timeperiod.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingPlusDm(timeperiod=14)
Bases:
objectStreaming +DM, Wilder smoothed; first value at bar timeperiod - 1 (raw +DM when timeperiod is 1).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingPo(fastperiod=10, slowperiod=21)
Bases:
objectStreaming price oscillator: SMA(close, fast) - SMA(close, slow).
- count
Number of committed (closed) bars.
- fastperiod
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- slowperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingPpo(fastperiod=12, slowperiod=26, signalperiod=9, matype=1)
Bases:
objectStreaming percentage price oscillator: (ppo, signal, hist); the signal is an EMA of the PPO line.
- count
Number of committed (closed) bars.
- fastperiod
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- matype
- reset()
Reset state to initial condition.
- signalperiod
- slowperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingPvi
Bases:
objectStreaming positive volume index from 1000: moves with the close only on bars whose volume rises.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingPviWithSignal(timeperiod=255, matype=1)
Bases:
objectStreaming positive volume index and a moving-average signal of type matype.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- matype
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingPvt
Bases:
objectStreaming price volume trend: cumulative volume * (close - previous close) / previous close, from 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRSI(period=Ellipsis)
Bases:
objectRelative Strength Index with TA-Lib–compatible Wilder seeding.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a non-NaN value.
- period
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(value, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRatio
Bases:
objectStreaming ratio a / b (NaN where b is 0).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(a, b, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRegimeAdx(threshold=25.0)
Bases:
objectStreaming trend (1) / range (0) label from ADX against threshold (-1 where ADX is NaN).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- threshold
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(adx, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRegimeCombined(adx_threshold=25.0, atr_pct_threshold=0.005)
Bases:
objectStreaming trend (1) / range (0) label: ADX above adx_threshold and ATR / close above atr_pct_threshold.
- adx_threshold
- atr_pct_threshold
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(adx, atr, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRelativeStrength
Bases:
objectStreaming relative strength: cumulative product of (1 + asset return) over that of the benchmark.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(asset_returns, benchmark_returns, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRoc(timeperiod=10)
Bases:
objectStreaming rate of change: (close - prev) / prev * 100 (NaN where prev is 0).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRocp(timeperiod=10)
Bases:
objectStreaming rate of change percentage: (close - prev) / prev (NaN where prev is 0).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRocr(timeperiod=10)
Bases:
objectStreaming rate of change ratio: close / prev (NaN where prev is 0).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRocr100(timeperiod=10)
Bases:
objectStreaming rate of change ratio x 100: close / prev * 100 (NaN where prev is 0).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRogersSatchellVol(window=20, trading_days=252.0)
Bases:
objectStreaming annualised Rogers-Satchell OHLC realized volatility.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- trading_days
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- window
- class ferro_ta.streaming.StreamingRollingBeta(window=20)
Bases:
objectStreaming rolling beta of asset against benchmark over window bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(asset, benchmark, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- window
- class ferro_ta.streaming.StreamingRollingMax(timeperiod=30)
Bases:
objectStreaming rolling maximum over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRollingMaxindex(timeperiod=30)
Bases:
objectStreaming index of the rolling maximum: the absolute 0-based bar index since the first bar (most recent on ties), -1 during warm-up.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRollingMin(timeperiod=30)
Bases:
objectStreaming rolling minimum over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRollingMinindex(timeperiod=30)
Bases:
objectStreaming index of the rolling minimum: the absolute 0-based bar index since the first bar (most recent on ties), -1 during warm-up.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRollingSum(timeperiod=30)
Bases:
objectStreaming rolling sum over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRollingVarianceBreak(short_window=10, long_window=50, threshold=2.0)
Bases:
objectStreaming volatility-regime break flag: short / long window variance ratio above threshold (current bar excluded).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- long_window
- reset()
Reset state to initial condition.
- short_window
- threshold
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(series, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRsiThresholdSignals(timeperiod=14, oversold=30.0, overbought=70.0)
Bases:
objectStreaming RSI threshold signal: +1 at or below oversold, -1 at or above overbought, else 0 (NaN during warm-up).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- overbought
- oversold
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRvi(timeperiod=10)
Bases:
objectStreaming Relative Vigor Index and its 4-bar weighted signal (the batch running window sums are mirrored, so a flat window’s zero denominator matches the batch function).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRvol(timeperiod=20)
Bases:
objectStreaming relative volume: volume / SMA(volume, timeperiod). Mirrors the batch zero-exact running volume sums, so an all-zero-volume window is NaN exactly as in the batch function.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingRwi(timeperiod=14)
Bases:
objectStreaming Random Walk Index: (high, low) maxima over lookbacks 2..=`timeperiod` of the range move per ATR * sqrt(lookback).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingSMA(period)
Bases:
objectSimple Moving Average — O(1) per update via running sum.
Returns NaN during the first period - 1 bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a non-NaN value.
- period
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(value, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingSar(acceleration=0.02, maximum=0.2)
Bases:
objectStreaming parabolic SAR; first value at bar 1, initial direction rising when high[1] >= high[0].
- acceleration
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- maximum
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingSarext(startvalue=0.0, offsetonreverse=0.0, accelerationinitlong=0.02, accelerationlong=0.02, accelerationmaxlong=0.2, accelerationinitshort=0.02, accelerationshort=0.02, accelerationmaxshort=0.2)
Bases:
objectStreaming extended parabolic SAR: signed start value, offset on reverse, separate long / short acceleration; first value at bar 1.
- accelerationinitlong
- accelerationinitshort
- accelerationlong
- accelerationmaxlong
- accelerationmaxshort
- accelerationshort
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- offsetonreverse
- reset()
Reset state to initial condition.
- startvalue
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingSlidingMax(timeperiod=30)
Bases:
objectStreaming sliding maximum over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingSlidingMin(timeperiod=30)
Bases:
objectStreaming sliding minimum over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingSpread(hedge=1.0)
Bases:
objectStreaming spread a - hedge * b.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- hedge
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(a, b, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingStarc(timeperiod=15, atr_period=15, multiplier=2.0)
Bases:
objectStreaming STARC bands: (upper, middle, lower) = SMA(close) +/- multiplier * ATR(atr_period); the middle SMA is emitted on its own once full.
- atr_period
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- multiplier
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingStc(fastperiod=23, slowperiod=50, cycleperiod=10, d1=3, d2=3)
Bases:
objectStreaming Schaff Trend Cycle: stochastic of the EMA MACD, EMA-smoothed, stochastic again, EMA-smoothed, clamped to [0, 100].
- count
Number of committed (closed) bars.
- cycleperiod
- d1
- d2
- fastperiod
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- slowperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingStddev(timeperiod=5, nbdev=1.0)
Bases:
objectStreaming rolling population standard deviation over timeperiod bars, scaled by nbdev.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- nbdev
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingStoch(fastk_period=Ellipsis, slowk_period=Ellipsis, slowd_period=Ellipsis)
Bases:
objectSlow Stochastic (SMA-smoothed) — returns (slowk, slowd).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a non-NaN value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingStochf(fastk_period=5, fastd_period=3, fastd_matype=0)
Bases:
objectStreaming fast stochastic: (fastk, fastd); both NaN until %D is valid.
- count
Number of committed (closed) bars.
- fastd_matype
- fastd_period
- fastk_period
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingStochrsi(timeperiod=14, fastk_period=5, fastd_period=3, fastd_matype=0)
Bases:
objectStreaming stochastic RSI: (fastk, fastd); both NaN until %D is valid.
- count
Number of committed (closed) bars.
- fastd_matype
- fastd_period
- fastk_period
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingStreak(n)
Bases:
object“N bars in a row” — emits 1 while the run of non-zero inputs is >= n.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a non-NaN value.
- n
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(condition, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingSub
Bases:
objectStreaming element-wise a - b.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(a, b, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingSum(timeperiod=30)
Bases:
objectStreaming rolling sum over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingSupertrend(period=Ellipsis, multiplier=Ellipsis)
Bases:
objectATR-based Supertrend — returns (supertrend_line, direction).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a non-NaN value.
- period
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingT3(timeperiod=5, vfactor=0.7)
Bases:
objectStreaming Tillson T3: six cascaded EMAs combined with volume factor vfactor.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- vfactor
- class ferro_ta.streaming.StreamingTema(timeperiod=30)
Bases:
objectStreaming triple exponential moving average: 3*EMA - 3*EMA(EMA) + EMA(EMA(EMA)).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingTrange
Bases:
objectStreaming true range (NaN on the first bar: no previous close).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingTrima(timeperiod=30)
Bases:
objectStreaming triangular moving average over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingTrix(timeperiod=30)
Bases:
objectStreaming TRIX: one-bar percent rate of change of a triple EMA.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingTsf(timeperiod=14)
Bases:
objectStreaming time series forecast: the regression line extrapolated one bar ahead.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingTsi(longperiod=25, shortperiod=13, signalperiod=13)
Bases:
objectStreaming True Strength Index: 100 * double-EMA(momentum) / double-EMA(abs(momentum)), plus an EMA signal.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- longperiod
- reset()
Reset state to initial condition.
- shortperiod
- signalperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingTypprice
Bases:
objectStreaming typical price: (high + low + close) / 3.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingUlcerIndex(timeperiod=14)
Bases:
objectStreaming Ulcer Index: RMS over timeperiod bars of the percent drawdown from the rolling timeperiod-bar high (the batch running sum is mirrored, so a rounding-negative mean square is NaN as in the batch function).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingUltosc(timeperiod1=7, timeperiod2=14, timeperiod3=28)
Bases:
objectStreaming Ultimate Oscillator: buying pressure over three periods weighted 4 / 2 / 1.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod1
- timeperiod2
- timeperiod3
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingVWAP
Bases:
objectCumulative Volume Weighted Average Price. Call reset() at session open.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a non-NaN value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingVar(timeperiod=5, nbdev=1.0)
Bases:
objectStreaming rolling population variance over timeperiod bars, scaled by nbdev**2.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- nbdev
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(real, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingVidya(timeperiod=14, cmo_period=9)
Bases:
objectStreaming Chande VIDYA: an EMA whose factor is scaled by abs(CMO(cmo_period)) / 100, seeded with the close on the first CMO bar.
- cmo_period
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingVolosc(fastperiod=5, slowperiod=10)
Bases:
objectStreaming volume oscillator: 100 * (SMA(volume, fast) - SMA(volume, slow)) / SMA(volume, slow). Mirrors the batch zero-exact running volume sums, so an all-zero-volume window is NaN exactly as in the batch function.
- count
Number of committed (closed) bars.
- fastperiod
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- slowperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingVortex(timeperiod=14)
Bases:
objectStreaming Vortex indicator: (+VI, -VI) over timeperiod bars; a non-finite true range counts as 0.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingVroc(timeperiod=25)
Bases:
objectStreaming volume rate of change over timeperiod bars, in percent.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingVwma(timeperiod=20)
Bases:
objectStreaming volume-weighted moving average over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, volume, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingWclprice
Bases:
objectStreaming weighted close price: (high + low + 2 * close) / 4.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingWeightedContinuous
Bases:
objectStreaming weighted contract stitching: front * (1 - w) + next * w.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(front, next, next_weights, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingWillr(timeperiod=14)
Bases:
objectStreaming Williams %R: -100 * (highest high - close) / (highest high - lowest low) over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingWma(timeperiod=30)
Bases:
objectStreaming linearly weighted moving average over timeperiod bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingYangZhangVol(window=20, trading_days=252.0)
Bases:
objectStreaming annualised Yang-Zhang OHLC realized volatility (first value after window bars plus the prior close).
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- trading_days
- update(open, high, low, close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- window
- class ferro_ta.streaming.StreamingZlema(timeperiod=14)
Bases:
objectStreaming zero-lag EMA: EMA of close + (close - close (timeperiod - 1) / 2 bars ago), seeded on the first full finite window.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- timeperiod
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(close, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- class ferro_ta.streaming.StreamingZscoreSeries(window=20)
Bases:
objectStreaming rolling z-score of x over window bars.
- count
Number of committed (closed) bars.
- static from_json(json)
Restore a snapshot made by
to_jsonof this same class.
- is_ready
True once the last committed bar produced a value.
- reset()
Reset state to initial condition.
- to_json()
Versioned JSON snapshot of the full state (see
from_json).
- update(x, *, closed=True)
Feed one tick.
closed=True(default) commits the bar.closed=Falsepreviews the still-forming bar from committed state without changing it, so repeated ticks of one bar replace each other.
- window