4. Optimization Result Structure and Access

4.1. Return Value Overview

qt.run(op, mode=2) usually returns an optimization result container (such as a result list, Besttester, or similar structure), consistent with the qteasy 2.0 API.

4.2. Full List of Optimization Result Fields (with Brief Explanations)

Field / Attribute

Meaning

Parameter set

Parameter combination for each evaluation (e.g., short_period, long_period).

Backtest metrics

Sharpe ratio, drawdown, return, etc., for that parameter set.

Objective value

Objective used for ranking (e.g., Sharpe ratio).

Sorting

Usually descending (higher is better) or ascending (e.g., lower drawdown is better).

Other possible fields include evaluation time and constraint satisfaction; refer to the actual return object.

4.3. How to Read the Best Parameters

Extract the best parameter combination from the result object via attributes or methods (e.g., best_pars, get_best_parameters(), etc.); see the current API documentation.

4.4. How to Read Top-K Results

Results usually include multiple strong parameter sets and their performance (e.g., the top opti_output_count groups). Access them via lists, DataFrames, or dedicated methods on the result object to compare candidate parameters.