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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file riskalphaindics-0.1.0.tar.gz
.
File metadata
- Download URL: riskalphaindics-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-39-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd906c18c6ad13e75043d5393e8824cb28fa2f65340da9ed5b4bf6dd4de0d28 |
|
MD5 | b77adeba1dde79aa961d1fb7e785ca38 |
|
BLAKE2b-256 | b8e4ec1773432acc8e6619e3e8c7feb93e67020c585563dc3dc750007a74ed1d |
File details
Details for the file riskalphaindics-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: riskalphaindics-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-39-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb6016cc6d04c48889a91f812fcc904977dc41fd8c03a6a4c60421ba82f6d522 |
|
MD5 | 83cdb3ce5d4958cbac8e4179bce02701 |
|
BLAKE2b-256 | 37394fb21ed54d06c08c7949bc277782f8bfb6c81952ca9d4892438f7fdcf12f |