ATR-adaptive Laguerre RSI for non-anticipative feature engineering in seq-2-seq forecasting
Project description
ATR-Adaptive Laguerre RSI
Non-anticipative volatility-adaptive momentum indicator for sequence-to-sequence forecasting.
Overview
This library implements the ATR-Adaptive Laguerre RSI indicator, designed for robust feature engineering in financial time series forecasting. The indicator combines:
- True Range (TR) - Volatility measurement including gaps
- ATR with Min/Max Tracking - Rolling volatility envelope
- Adaptive Coefficient - Volatility-normalized adaptation
- Laguerre 4-Stage Cascade - Low-lag smoothing filter
- Laguerre RSI - Momentum from filter stage differences
Key Features
- ✅ Non-anticipative: Guaranteed no lookahead bias
- ✅ O(1) Incremental: Efficient online computation (talipp pattern)
- ✅ Multi-interval: Supports 1s-1d timeframes
- ✅ Validated: Information coefficient > 0.03 on k-step-ahead returns
Installation
uv add atr-adaptive-laguerre
Quick Start
from atr_adaptive_laguerre import ATRAdaptiveLaguerreRSI, ATRAdaptiveLaguerreRSIConfig
from atr_adaptive_laguerre.data import BinanceAdapter
# Fetch data
adapter = BinanceAdapter()
df = adapter.fetch("BTCUSDT", "1h", "2024-01-01", "2024-06-30")
# Create feature
config = ATRAdaptiveLaguerreRSIConfig(atr_period=32, smoothing_period=5)
feature = ATRAdaptiveLaguerreRSI(config)
# Transform (non-anticipative)
rsi_series = feature.fit_transform(df)
Documentation
- API Reference - Complete API documentation
- Examples - Runnable usage examples
- Changelog - Release notes and version history
License
MIT License - Eon Labs Ltd.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atr_adaptive_laguerre-0.1.1.tar.gz.
File metadata
- Download URL: atr_adaptive_laguerre-0.1.1.tar.gz
- Upload date:
- Size: 227.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4bc36ad47bdea40708ee6777782bca74e22d310947d51ab037c114d93247221
|
|
| MD5 |
dbac135e1bdeb9d28433b82cbf34a7b2
|
|
| BLAKE2b-256 |
267d656cdd4371099ab2bcfbdbd55eb9a26587ed9654904c28a7493e16d8cc46
|
File details
Details for the file atr_adaptive_laguerre-0.1.1-py3-none-any.whl.
File metadata
- Download URL: atr_adaptive_laguerre-0.1.1-py3-none-any.whl
- Upload date:
- Size: 40.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79fedc5e8d0303367c4ccb0cb52639370d0c3a587dddceef7403355ba28d3d1d
|
|
| MD5 |
7951070993fb8642ee5fc8a24930971c
|
|
| BLAKE2b-256 |
f4bbeeabdb2abedeb04b8139bd1724a3f18b6cfb9831f92bebfdd11161bd0a6c
|