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.2.tar.gz (227.9 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.2-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for atr_adaptive_laguerre-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5be849d2e31a8127b99d8670c78034a0ecc5afaad373a2e77e993178287ec91d
MD5 34a366b554295ec6d043d6defa0c0941
BLAKE2b-256 389be9fa8a1b71da5d6d521fd9b64db56fe921399261101eb666313906d1af3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for atr_adaptive_laguerre-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c0b10948d797d89a95843e77d780010942e0ecbbafbf7a4fe3ca0a9d7bb1d040
MD5 4781388464cefdcd2a1c6b82f7300488
BLAKE2b-256 d66f4449c7eb8e1aa44a15b2bfd224e29837400f89b76d932aa0023524bc6ac2

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