Skip to main content

Strategizer is a Python framework for executing and evaluating financial trading strategies with customizable signal generation.

Project description

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.

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

strategizer-0.0.1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

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

strategizer-0.0.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file strategizer-0.0.1.tar.gz.

File metadata

  • Download URL: strategizer-0.0.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for strategizer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 15043737fec6006f306d9db04e27751eab1ac1947d0026027b820cc3997bc599
MD5 5495f147efd282e15c6c85bfdd9c1aa9
BLAKE2b-256 277d7dc2435cec7a84ef0595dd16bbff60583dfb261204f5b2ebc72a08fa2418

See more details on using hashes here.

File details

Details for the file strategizer-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: strategizer-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for strategizer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d29d60d2800a6adca4e6eeb22d2f01ca5e2ee0dd3634119cf2585bac178db3bd
MD5 07d692aab132feb7585ecbdd5d6f659f
BLAKE2b-256 b2c1c69a5065883192beaf2bc44fa9d501a2b0f09f64446e28d7056e3b58721c

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