A Bollinger Band indicator built on top of financial_engine
Project description
Bollinger Bands
Originiallly Developed by Raj Adhikari
A Financial indicator based on ratios calculated via financial engine over a specfic or acorss a range of companies.
Returns sma, lower band, and upper band for a range of provided ratio columns
📦 Changelog
See full CHANGELOG.md
📝 Notes
Financial ratios calculations are perfomed on all dates and then filtered by Bollinger bands on basis of window_size,- Allows Storing all financial ratios (if ratios_to_file parameter is set to True)
- More Analysis and calculations can be performed now that all ratios data is saved to a feather file as well
- Final outcome : feather file for ratios and / or bollinger + returning the same for models
- Further down can implement Caching mechanism to manage all records in better manner and make them readily available for Bollinger bands or other calculations
✨ Features
- 📈 Built on top of financial-engine
- 🔁 Perform bollinger bands caluclation for provided ratio columns
- 🚗 Accepts Single company (alpha_code) as well as Multiple Companies (list of alpha_codes)
- ⚡ Caching : Option to save ratios and bollingers for further calculations
🚀 Installation
pip install financial-bollinger-bands
Step-by-step
-
Create and activate a virtual environment:
python -m venv .venv source .venv/bin/activate # or .venv\Scripts\activate on Windows
-
Create a
.envfile in the root of your project:MONGO_URI= MONGO_DATABASE= MONGO_COLLECTION= AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= BUCKET_NAME=
-
Install the package:
pip install financial-bollinger-bands
🐍 Requirements
- Python ≥ 3.10
- Compatible with major OS environments (Linux, Windows, Mac)
🛠 Implemented Methods
| Method | Descrip`tion |
|---|---|
get_bollinger_bands( alpha_code , k , windows_size, bollinger_to_file, ratio_to_file ) |
Get bolllinger band for specific alpha_code |
get_bollinger_bands_multiple( alpha_code, k, window_size, bollinger_to_file, ratio_to_file ) |
Get bollinger band for a range of alpha_codes |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bollinger_bands-0.1.1.tar.gz.
File metadata
- Download URL: bollinger_bands-0.1.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65e0b14e9c620987888f57d923a7cafeee56d1d866cfffc2678820eb4aa62ad6
|
|
| MD5 |
23f0de5eb095f4b1a16490f65772b956
|
|
| BLAKE2b-256 |
0efe621d481350fcc2ffa56c7ab839b230df2b97422c2012cdd36de6e81ff60a
|
File details
Details for the file bollinger_bands-0.1.1-py3-none-any.whl.
File metadata
- Download URL: bollinger_bands-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97b51fbfc6b4a3613fa4ad575774f92303fb569628c4222348fb76137e67778a
|
|
| MD5 |
845f96943cbc47d6b763e2944a6934c9
|
|
| BLAKE2b-256 |
97f35261e46db34365236be9649a9b506fd1ec9f6d7e172490e6574edf243bc7
|