Skip to main content

Alpha signal library for quantitative finance research

Project description

AlphaBuilder-Signal

AlphaBuilder-Signal Logo

AlphaBuilder-Signal is an experimental Python package providing a curated library of trading signals for quantitative finance.

⚠️ This package is currently in early development. More features, indicators, and signal types will be added soon.


Features

Current

  • Technical Indicators: RSI, MACD, ADX, %D, Bollinger Bands, Momentum, etc.
  • Lagged Features: Previous price, returns, and indicator values for time-series modeling
  • Moving Averages: SMA, EMA, HMA, and other variants
  • Target Indicators: Returns, peaks, troughs (regression and classification targets)
  • Data Fetching: Asset wrapper for seamless download from yfinance

Coming Soon

  • Additional technical and fundamental indicators
  • Handcrafted signals: curated alpha factors and custom rules
  • ML-based signals: tree models, RNNs, transformers applied to time series
  • Regime-aware signals: HMMs, regime switching filters
  • Backtesting utilities: Sharpe ratio, hit ratio, performance metrics
  • Statistical arbitrage signals: Copula, Vine Copula, Correlation
  • News-based signals

Installation

Install directly from PyPI:

pip install alphabuilder-signal

Quickstart Example

The following example demonstrates how to fetch historical asset data and compute basic technical indicators using AlphaBuilder-Signal.

# Import
from alphabuilder_signal import (
    Fetch,
    MovingAverage,
    TechnicalIndicators,
    LaggedFeatures,
    TargetClassifier,
    TargetRegressor,
)

# Fetch historical data
fetch_data = Fetch(
    tickers=["AAPL", "MSFT", "META"],
    start_date="2010-01-01",
    verbose=True
)
data = fetch_data.get_asset_data(combined=False)
print(data.head())

# Compute technical indicators
TI = TechnicalIndicators(
    tickers=['AAPL', 'MSFT', 'META'],
    start_date='2020-01-01',
    verbose=True,
    combined=True
)
results = (
    TI.relative_strength_index(windows=[14, 7, 6], source='Close')
      .relative_strength_index(windows=[7, 4], method='simple', source='Open')
      .momentum(windows=[7, 8, 9, 4], source='High')
      .average_true_range(windows=[4, 7])
      .commodity_channel_index(windows=[3, 4])
      .average_directional_index(windows=[5, 7])
      .bollinger_bands(windows=[7, 8])
      .get_data()
)

print(results.head())

Documentation

Full Signals Documentation Docs

Read more about the Signals AlphaBuilder-Signal

Learn more about AlphaBuilder Project AlphaBuilder

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

alphabuilder_signal-0.1.1.21.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

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

alphabuilder_signal-0.1.1.21-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file alphabuilder_signal-0.1.1.21.tar.gz.

File metadata

  • Download URL: alphabuilder_signal-0.1.1.21.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for alphabuilder_signal-0.1.1.21.tar.gz
Algorithm Hash digest
SHA256 d36a17f2051a9eafdfb003efd5654658ec251becb7b800fe2f037dbf2940152b
MD5 e3bec843c62187189a4f3ebe8fdeb6d5
BLAKE2b-256 09b7076956fc36210c0acff763e9cc32cdb0e4a7ac85f979fc702422fc264739

See more details on using hashes here.

File details

Details for the file alphabuilder_signal-0.1.1.21-py3-none-any.whl.

File metadata

File hashes

Hashes for alphabuilder_signal-0.1.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 27ea8fd360eca4b75eea3543f8bcacf5452e774ecbaf28e7c1cdedf2fcbe04e9
MD5 6369ed82af0c9a7581ca85225ed0c781
BLAKE2b-256 a3e97148697b25f8f70b0c4a3f225158b09795d745d40101230546b573f1304b

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