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.3.tar.gz (118.8 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.3-py3-none-any.whl (267.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trading_strategy_tester-0.1.3.tar.gz
  • Upload date:
  • Size: 118.8 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.3.tar.gz
Algorithm Hash digest
SHA256 577c6005739084135570e8e8c4c254294d88daecf7e775a20f46b80a4261af16
MD5 e5e6391266ee5660ef49526548a942c3
BLAKE2b-256 1d9d575a81f93460e74a985ee7cf98c40c17aeb386293824e8a41afa561c9910

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trading_strategy_tester-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cb3e6be4c61fc38aba855896e8f0b0415a36c0e39d9b08ba0b30601bc16a14d2
MD5 b136a3a204a559cde7fceb5abb36c4f4
BLAKE2b-256 dbe7509ebb7ca9b5eadc8264ec80ad34a4b6c5109187787af3bcdce6e0900e7f

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