docs.rs failed to build rustockstats-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
rustockstats
A Rust crate that provides stockstats-like technical indicators on top of a Polars DataFrame.
Indicators/derived columns are computed lazily on-demand: when you call get("rsi"), the column is created if missing and then returned.
Installation
[]
= { = "https://github.com/jealous/rustockstats.git" }
# or, once published:
# rustockstats = "0.x"
Usage
use *;
use StockDataFrame;
Supported indicators (high level)
This crate supports a broad subset of Python stockstats, including:
- Moving averages:
sma,ema,smma,tema,vwma,linear_wma - Momentum/oscillators:
rsi,stochrsi,wr,roc,cmo,kst - Volatility/trend:
atr,cci,chop,supertrend - MACD family:
macd, plus related signal/hist columns - Volume-based:
mfi,vr,pvo,ppo - Others:
boll(andboll_ub/boll_lb),ao,aroon,ichimoku,rvgi,qqe,cr,bop,cti,pgo,psl,ftr,kama,ker
Many indicators support parameterization by encoding windows into the column name (e.g. close_12_ema, rsi_6).
Comparison with Python stockstats
- API style: similar “computed column” model, but backed by Rust + Polars.
- Performance: intended to avoid repeated scans by caching computed columns in the DataFrame.
- Type system: errors are explicit via
ResultandStockStatsError.
License
BSD (see LICENSE).