Skip to main content

Simulate and evaluate trading strategies

Project description

Trading Strategy Tester

A flexible Python package for simulating and evaluating algorithmic trading strategies with modular conditions, strategies, and trade simulations.

Installation

To install the Trading Strategy Tester package, you can use pip:

pip install trading-strategy-tester

If you want to install the latest development version, you can clone the repository and install it locally:

git clone https://github.com/DrDanicka/trading_strategy_tester.git

Documentation

The documentation is available in the docs directory. You can view it online at this link.

Examples

You can find examples of how to use the package in the examples tab of the user documentation. These examples cover various aspects of the package, including strategy creation, execution, and visualization or using technical indicators.

LLM Integration

The project integrates with Large Language Models (LLMs) to help generate trading strategies from natural language descriptions. It provides a user-friendly interface for generating via web UI.

This project uses Llama 3.2 models via Ollama framework. The models are fine-tuned on a custom dataset of trading strategies and their natural language descriptions. For running the project with LLM integration follow these steps:

  1. Install Ollama on your machine from here.
  2. Clone this meta-repository with backend and frontend.
git clone --recurse-submodules https://github.com/DrDanicka/trading_strategy_tester_docker.git
  1. Navigate to the trading_strategy_tester_docker directory and build the Docker image:
cd trading_strategy_tester_docker
docker-compose up --build 

Note: Building the image may take some time, because it downloads the weights of the Llama models. 4. Open your web browser and navigate to http://localhost:5001 to access the web UI.

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

trading_strategy_tester-0.1.2.tar.gz (118.7 kB view details)

Uploaded Source

Built Distribution

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

trading_strategy_tester-0.1.2-py3-none-any.whl (267.9 kB view details)

Uploaded Python 3

File details

Details for the file trading_strategy_tester-0.1.2.tar.gz.

File metadata

  • Download URL: trading_strategy_tester-0.1.2.tar.gz
  • Upload date:
  • Size: 118.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for trading_strategy_tester-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ab5cdcc260bf5d23de11c021d12436b5d1bf275e02c37bde5443c282e5a20963
MD5 f1bd3eeff9a76bf6c9767c41f3be364d
BLAKE2b-256 9f5648c9a28767025d8c2ab5d9302da6e239642ae4e91c0131e5f3e7afc6d595

See more details on using hashes here.

File details

Details for the file trading_strategy_tester-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for trading_strategy_tester-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3409988d89598feb39cdff68ac93af6fa41fd5c9d2893733ed5d1c571fa512fc
MD5 dd33193a574b7ac07d322f349d508562
BLAKE2b-256 0dd1f2082d4787ed9462f26f0414a2342eab6e97f3fbf3b6c77a47648077bd1f

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