Skip to main content

Strategizer

Strategizer is a Python-based framework for executing various financial trading strategies. This package provides a simple interface to apply multiple strategies, evaluate their performance, and integrate them with machine learning models for more advanced use cases.

Features

  • Pre-built trading strategies: Random, Buy Close Sell Open, SMA Crossover, and more.
  • Flexible architecture to add your own custom strategies.
  • Data handling using pandas and numpy.
  • Integration with popular technical analysis libraries like ta and machine learning libraries like sklearn.

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to https://unlicense.org

Installation

  1. Clone the repository:
    git clone https://github.com/nathanschmidt89/strategizer.git
    cd strategizer
    

Usage/Examples

Example: Running a Strategy

import pandas as pd
import numpy as np
from strategizer.main import StrategyExecutor, random_strategy

# Create sample data
data = pd.DataFrame({
    'Date': pd.date_range(start='2023-01-01', periods=100),
    'Close': np.random.randn(100).cumsum()
})
data.set_index('Date', inplace=True)

# Initialize the executor
executor = StrategyExecutor(data)

# Run a strategy
result = executor.execute_strategy(random_strategy)
print(result)

Authors

Nathan Schmidt is a programmer with years of experience in software development. Specializing in innovative programming solutions, Nathan has a commitment to open-source development and community collaboration. Known for his passion for clean code and efficiency, Nathan continues to contribute to the field of software engineering with a focus on impactful, real-world applications.

Support

For support, email nathan.schmidt.ns89@gmail.com or raise a Github issue.

Release files for strategizer 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for strategizer 0.0.2
File Size Uploaded
strategizer-0.0.2.tar.gz 14.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for strategizer 0.0.2
File Interpreter ABI Platform
strategizer-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 28.0 kB

Release files / strategizer-0.0.2.tar.gz

Download URL strategizer-0.0.2.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
97b60b433625afdb61e52311e3e1357ff3197cbb54e6dd0fef5c6dd1478d9824
BLAKE2b-256 checksum
How to use checksums
2b088891a06a722757efb874ca07fb851278532324763d3ad148172ac9c637d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / strategizer-0.0.2-py3-none-any.whl

Download URL strategizer-0.0.2-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ddeba9264ddcde115b0b96ac85755ce30a2952bedd86b6187dff6395b2c85f43
BLAKE2b-256 checksum
How to use checksums
33df1ca35bcfeff9d44727a5d7f9f8772af9c9b280c8dafdb0bc431c50ad3f46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page