Welcome to QTEASY documentation!

_images/qteasy_logo_horizontal.png

Note

qteasy has been upgraded to version 2.0, enabling trading strategies to use historical data more flexibly and effectively, while simplifying the process of defining trading strategies and improving efficiency. Since QTEASY is still in testing, the software inevitably contains some vulnerabilities and bugs. If you encounter any issues during use, you are welcome to report an Issue or submit a new feature request to me. You can also enter the discussion forum to participate in discussions. Contributions are welcome!

  • Author: Jackie PENG

  • Email: jackie_pengzhao@163.com

  • Created: 2019, July, 16

  • 最新版本: 2.5.2发布历史

  • License: BSD 3-Clause

Brief Introduction

QTEASY is a quantitative trading strategy development toolkit built for quantitative traders, with the following features:

  1. End-to-end coverage From financial data acquisition and storage to strategy development, backtesting, optimization, and live trading—everything in one place

  2. Fully local Data, backtesting, and live trading all run locally, with no reliance on cloud services; configuration is clear and results are reproducible

  3. Reliable backtests, consistent live trading The same strategy logic runs in both backtesting and live trading, with historical data injected strictly based on what was actually visible at the time—mechanistically avoiding lookahead bias and data leakage, and reducing the gap between “great backtests” and “distorted live results”

  4. Flexible and easy to use Multiple strategies can be combined like building blocks, with customizable signal-merging methods; built-in 70+ ready-to-use strategies covering common technical indicators, moving averages, breakouts, reversals, and more

High-performance backtesting and prevention of look-ahead bias: The backtesting core uses vectorization + Numba, with sequential processing along the time dimension and single-step vectorization along the instrument dimension, optimized with multiprocessing parallelism; at each step, only the data window visible at that time is injected into the strategy, preventing look-ahead bias at the mechanism level. See Backtesting Engine and Performance, Design Rationale and Unique Advantages in “Architecture and Design”, as well as the “Backtesting Engine and Performance” chapter under “Backtest and Evaluate Trading Strategies”.

What is QTEASY designed for?

Acquire and manage financial historical data

  • Conveniently obtain large amounts of historical financial data from multiple sources, clean the data, and store it locally in a unified format

  • Use the DataType object to manage available information in financial data in a structured way. Even for complex information such as adjusted prices and index constituents, you can retrieve it with just one line of code.

  • Financial data visualization, statistical analysis, and visualization of analysis results based on DataType objects

  • Store data locally and retrieve it on demand, providing a consistent data foundation for backtesting and live trading, making results easier to reproduce

_images/output_3_4.png

Create trading strategies in a simple and secure way

  • With the BaseStrategy class, the method for defining trading strategies is intuitive and the logic is clear.

  • Over 70 built-in strategies out of the box, plus a unique strategy mixing and grouping mechanism—complex strategies can be assembled from simple ones, like building with blocks.

  • The data inputs and usage methods of trading strategies are fully encapsulated and secure, completely avoiding issues such as inadvertently introducing future functions and data leakage, ensuring the authenticity and reliability of strategy results.

  • The same strategy logic is used for both backtesting and live trading, reducing the gap between “great backtest results” and “underwhelming live performance.”

_images/output_14_3.png

Backtest evaluation, optimization, and simulated automated trading for trading strategies

  • Manage strategy execution through the Operator trader class, backtest strategies according to the real market trading rhythm, evaluate trading results comprehensively across multiple dimensions, and generate trading reports and result charts.

  • Provides multiple optimization algorithms, including simulated annealing, genetic algorithms, Bayesian optimization, etc., to optimize strategy performance in large parameter spaces.

  • Fetch real-time market data, run strategy simulations for automated trading, and track and record information such as trading logs, stock positions, and account balance changes.

  • Backtesting, optimization, and live trading use the same execution mechanism: write a strategy once and run it in all modes, with clear configuration for easy reproduction and troubleshooting.

  • In the future, qteasy will be able to realize automatic live trading by connecting to trading APIs provided by brokers, such as QMT

_images/trader_app_1.png _images/trader_app_light_theme.png

QTEASY Quick Start

Simulated Live Trading Module

LICENSE

FAQ