Skip to main content

Trading indicators for RiskAlpha trading bots.

Project description

Riskalphaindics

Description

This Python package provides functionality to calculate various financial indicators such as Moving Average, Exponential Moving Average (EMA), Relative Strength Index (RSI), Average True Range (ATR), and Moving Average Convergence Divergence (MACD). It's designed for financial market analysis and algorithmic trading strategies.

Installation

To install this package, ensure you have Poetry installed on your system. If you don't have Poetry, you can install it using pip:

pip install poetry

Then, you can install this package using Poetry:

poetry add riskalphaindics

Usage

Below are some examples of how to use the indicators in this package.

Moving Average

from riskalphaindics import moving_average

# Assuming 'data' is a pandas DataFrame with a 'close' column
ma = moving_average(data, window=20)

Exponential Moving Average

from riskalphaindics import exponential_moving_average

# Assuming 'data' is a pandas DataFrame with a 'close' column
ema = exponential_moving_average(data, window=20)

Relative Strength Index

from riskalphaindics import relative_strength_index

# Assuming 'data' is a pandas DataFrame with a 'close' column
rsi = relative_strength_index(data, periods=14)

Average True Range

from riskalphaindics import average_true_range

# Assuming 'data' is a pandas DataFrame with 'high', 'low', and 'close' columns
atr = average_true_range(data, window=14)

Moving Average Convergence Divergence

from riskalphaindics import moving_average_convergence_divergence

# Assuming 'data' is a pandas DataFrame with a 'close' column
macd, signal_line = moving_average_convergence_divergence(data, window_slow=26, window_fast=12, signal=9)

Contributing

Contributions to this package are welcome. Please fork the repository and submit a pull request with your proposed changes.

License

MIT.

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

riskalphaindics-0.1.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

riskalphaindics-0.1.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

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