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.1.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.1-py3-none-any.whl (267.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trading_strategy_tester-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 edf9f63d035804f3ae917557caaa6ced2e947ceb43d45d9226cf9e511ab32670
MD5 a78298a7997a5729f3f4a021d0992412
BLAKE2b-256 21f8042b6e9eff713debca5989b322f7a9b7e8ed3af52b8eb07ad235f961985c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trading_strategy_tester-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b7e96afe323fb32ceefc6b835ddad455c008e634b2503d024aad6ece91ecf7b
MD5 2576468b97af4c41828bf3da78c91d10
BLAKE2b-256 b6b9c618da6e39fb9f3039a0c1a0e9e152c6941c5a61a65f08c05b5e84d5e85d

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