vegas-backtest-optimizer

Optimize Vegas 4H strategy parameters by iteratively running cargo backtests.

25|12|Updated Jun 4, 2024
One-click install
npx skills add https://github.com/fairwic/rust_quant --skill vegas-backtest-optimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vegas-backtest-optimizer
Source: https://github.com/fairwic/rust_quant/tree/main/.claude/skills/vegas-backtest-optimizer
Command: npx skills add https://github.com/fairwic/rust_quant --skill vegas-backtest-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymysql, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the complex and time-consuming process of optimizing trading strategy parameters, ensuring better performance and profitability.

Core Features & Use Cases

  • Automated Backtesting: Iteratively runs backtests with varying strategy and risk configurations.
  • Parameter Optimization: Identifies and applies configurations that meet specific performance criteria (e.g., win rate >= 50%, positive profit).
  • Use Case: A quantitative trader wants to find the best settings for the "Vegas 4H" strategy. They use this Skill to automatically test thousands of parameter combinations, saving days of manual work and identifying superior configurations.

Quick Start

Use the vegas-backtest-optimizer skill to run a backtest with the default environment variables.

Frequently Asked Questions about vegas-backtest-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate backtesting and parameter optimization for a trading strategy?

Automated backtesting iteratively reruns tests by tweaking strategy and risk configurations to identify settings with positive profit and at least a 50 percent win rate.

What is the Vegas 4H strategy optimization process?

Vegas 4H strategy optimization iteratively adjusts strategy_config and risk_config, reruns backtests via cargo, and selects configurations meeting win rate and profit criteria.

How do I store and retrieve backtest logs for quantitative trading strategies?

You can store and retrieve backtest logs and strategy configurations by integrating the optimization scripts directly with a MySQL database using PyMySQL.

Do I need MySQL to run automated parameter optimization for trading strategies?

MySQL is required as a dependency to store and retrieve backtest logs and strategy configurations during the iterative parameter optimization process.

What are the performance criteria for selecting a profitable trading strategy configuration?

The performance criteria require a selected configuration to achieve a win rate of at least 50 percent alongside positive profit before it is accepted.

How do I run a backtest with default environment variables for the Vegas strategy?

You can execute the optimization Skill directly to run a backtest using the default environment variables provided for the Vegas strategy configuration.