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.1.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.1-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for atr_adaptive_laguerre-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d4bc36ad47bdea40708ee6777782bca74e22d310947d51ab037c114d93247221
MD5 dbac135e1bdeb9d28433b82cbf34a7b2
BLAKE2b-256 267d656cdd4371099ab2bcfbdbd55eb9a26587ed9654904c28a7493e16d8cc46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for atr_adaptive_laguerre-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79fedc5e8d0303367c4ccb0cb52639370d0c3a587dddceef7403355ba28d3d1d
MD5 7951070993fb8642ee5fc8a24930971c
BLAKE2b-256 f4bbeeabdb2abedeb04b8139bd1724a3f18b6cfb9831f92bebfdd11161bd0a6c

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