quantwave
quantwave copied to clipboard
High-performance, Polars-native technical analysis & backtesting — 221 indicators, Rust + Python, bit-identical streaming/batch parity
### Problem 1. `nse_lot_size('NIFTY')` returns 50, but NIFTY lot size was revised to 25, then 75, and 65 (effective Nov 2025). The lot size has changed historically and hardcoding 50...
### Problem `implied_vol` in Python currently raises `TypeError` when passed array, list, or Series inputs. Computing IV across full option chains requires manual loops or list comprehensions. ### Ask Provide...
### Problem Observed in `trade_backtest` 5/6-DTE strangle rebuild: 1. `implied_vol(0.0, ...)` returns `0.0` on OTM options instead of `None` / `NaN`. A zero price is not a valid market quote,...
### Problem In index options and futures options (e.g. NIFTY, BANKNIFTY), pricing is natively based on the forward / futures price F (Black-76) rather than spot. Currently `quantwave.options` only provides...
### Problem / Context As observed by `trade_backtest` during dogfooding: `qw.atr(h, l, c, period=14, smoothing='wilder')` returns NaN for bars 0–13 and seeds at bar 14 as `mean(TR[1..14])`, matching TA-Lib. In...
Found in trade_backtest on quantwave 0.10.0 (PyPI wheel). Reproduced. This breaks the bit-for-bit parity between the plain and polars layers that #60 aimed for, and screener and trade_backtest may use...
Found while rebuilding Trend Target Ribbon in trade_backtest on quantwave 0.9.0 (PyPI, Python 3.12). Reproduced. **1. The two APIs give different results for the same input.** ```python import numpy as...
Found in trade_backtest (9-EMA Bounce, quantwave 0.9.0, weekly bars of 1,898 NSE stocks that listed after 2001). **What quantwave does:** - `SuperTrend::new` sets `direction = 1` before any data. -...
Found while moving the trade_backtest 9-EMA Bounce backtest onto quantwave 0.9.0 (PyPI wheel, Python 3.12, macOS arm64). Every repro below was rerun and reproduces. 1. **ATR smoothing.** `q.atr` (and so...
Found while moving the trade_backtest 9-EMA Bounce backtest onto quantwave 0.9.0 (PyPI wheel, Python 3.12, macOS arm64). Every repro below was rerun and reproduces. ```python import numpy as np, quantwave...