Skip to content

This template shows how to use the Quantiacs global optimizer to study parametric dependence of the results and control optimal parameters.

License

Notifications You must be signed in to change notification settings

quantiacs/strategy-futures-ta-global-optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Trading System Optimization

This trading strategy is designed for the Quantiacs platform, which hosts competitions for trading algorithms. Detailed information about the competitions is available on the official Quantiacs website.

How to Run the Strategy

In an Online Environment

The strategy can be executed in an online environment using Jupiter or JupiterLab on the Quantiacs personal dashboard. To do this, clone the template in your personal account.

In a Local Environment

To run the strategy locally, you need to install the Quantiacs Toolbox.

Strategy Overview

The "Trading System Optimization" notebook presents a comprehensive guide to optimizing trading strategies through parameter analysis. It emphasizes the importance of examining the impact of various parameters on key statistical indicators, such as the Sharpe ratio, to mitigate the risk of backtest overfitting and ensure robust performance on live data.

A sample trading strategy is detailed, utilizing a single-pass implementation for rapid execution. The strategy involves going long based on the rate of change of a linear-weighted moving average over specified periods, demonstrating the process of parameter optimization for achieving the best possible Sharpe ratio.

Furthermore, the notebook guides through performing a parametric scan over pre-defined ranges of parameters using Quantiacs optimizer function. It showcases how to interpret the results of the scan, identify the best parameter set, and subsequently apply these parameters to the trading strategy for final evaluation.

The strategy's performance with the selected parameters is assessed, followed by a discussion on how to avoid forward-looking biases in the strategy development process. The notebook concludes with a complete code example of the optimized strategy and additional code snippets for checking forward-looking issues.

This notebook serves as both a practical tool for strategy optimization and a tutorial on best practices for developing and refining trading systems.

About

This template shows how to use the Quantiacs global optimizer to study parametric dependence of the results and control optimal parameters.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published