Skip to main content

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

License

MIT License - Eon Labs Ltd.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

atr_adaptive_laguerre-0.1.0.tar.gz (227.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atr_adaptive_laguerre-0.1.0-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

Details for the file atr_adaptive_laguerre-0.1.0.tar.gz.

File metadata

File hashes

Hashes for atr_adaptive_laguerre-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2bcd31ac1af5c08964ff850aa7890506693aeb45b07b3fdd052ea2040ffd12d0
MD5 fc4b45d5db1b55ec37178116fc677519
BLAKE2b-256 0c286a081ecd658680d79c954d31ba74d04b71d5a0b2ad01b9afe28d2667a805

See more details on using hashes here.

File details

Details for the file atr_adaptive_laguerre-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for atr_adaptive_laguerre-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1588db623874adb090fd65a201feace586d1b967b813182a5455a492b2fbe0bc
MD5 3c210df6c3a2354864f10854a0725162
BLAKE2b-256 ecc8f9eb54274056bab9a3d58f9f89f6e7ea573bb5c70506063448c4a404b0c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page