🚀 Special Offer: Get 30% off your first 3 months. Use code TRADE30 at checkout!
Tutorials > Modify A Strategy

AI-Powered Strategy Modification

This tutorial will guide you through the essential steps to modify your strategy with AI Automation.


1. Sign In to Launch BotiTrader

  1. Open the software after installation.
  2. Enter your registered email and password, then click "Sign In".
  3. Once signed in, you will see the main interface.

2. Select an Existing Strategy in the Backtest Window

  1. In the Main window, at the top of the charting window, click "Create Trading Bot".
  2. The Backtest window will appear.
  3. On the left side of the backtest window, click to select a target strategy from the Strategy List.
  4. On the top of the backtest window, click the "AI Automation Assistant", and the AI Automation Assistant window will appear.

3. Modify an Existing Strategy with AI Automation

  1. In the popped-up AI Automation Assistant window, select "Modify Existing Strategy" in the "AI Automation Mode" section on the top right.
  2. In the User Input section, enter your idea to modify the strategy. This can be a natural language description (e.g., "add a parameter to switch the buy and sell signals") or a code snippet (e.g., an adjusted Pinescript strategy or a modified logic in another language). The AI will analyze your input and generate the updated BotiTrader-compatible strategy code.
  3. In the bottom left corner, input the following settings parameters:
    • Timeout (seconds): Sets the timeout value for the automation in seconds.
    • Max regenerate attempts: If the generated code doesn't change after an attempt, ChatGPT will regenerate the code. This parameter defines the maximum number of regeneration attempts.
    • Max debug attempts: If errors occur in the strategy code, ChatGPT will attempt to debug and fix them. This parameter defines the maximum number of debug attempts.
  4. In the bottom left corner, click "Start AI Automation", and ChatGPT will begin analyzing and modifying your strategy code based on the provided input. During the modification process, errors may occur and will be fixed automatically. All you need to do is wait for the final result. You can track the progress in the AI Automation Logs section in the bottom right corner.
    • Success: You'll see a green message in the AI Automation Logs.
    • Failure: You'll see a red message in the AI Automation Logs. If this happens, you can repeat the steps in this section to try again.