AI Knights of the Round

AI Knights of the Round

27 September 2025, 11:43
Shui Hua Li
0
53

AI Knights of the Round

[English] [中文]

Preparation

OpenRouter

https://openrouter.ai

Please register an OpenRouter account and create an API Key, then enter it in the first input parameter of the EA.

OpenRouter provides each account with 50 free requests per day.

If you deposit $10, the free quota increases to 1,000 requests per day, but using AI Knights of the Round does not require a deposit, 50 requests are enough.

Add URL Source

Tools -> Options -> Expert Advisors -> Allow WebRequest for listed URL

Add OpenRouter source: https://openrouter.ai

Broker Recommendations

AI Knights of the Round Helper

If you are just viewing this document to try it out, you do not need to worry about AI Knights of the Round Helper for now.

AI Knights of the Round Helper is used to generate AI output cache files. It helps advanced users switch models (including free and paid models), backtest, and optimize input parameters.

Usage Steps

  1. Select the backtest start and end times, as well as the timeframe, and run AI Knights of the Round once. This will generate an ai-knights-of-the-round-ai-req.jsonl file. The path can be found in Settings Guide -> Location of AI Output Cache File.
    • Note: If an ai-knights-of-the-round-ai-res.jsonl file already exists, AI Knights of the Round will automatically run the formal backtest instead of generating ai-knights-of-the-round-ai-req.jsonl. To continue generating ai-knights-of-the-round-ai-req.jsonl, you can delete the ai-knights-of-the-round-ai-res.jsonl file or set Force Generate Ai Request For Backtest to true in the input parameters.
    • When generating the ai-knights-of-the-round-ai-req.jsonl file, no trades will take place. So if the curve you see is just a straight line, don’t worry — this is normal.
      • There are exceptions: if you run it on a symbol other than XAUUSD, or on XAUUSD D1, you may also see a random curve. But this has no meaning, so just ignore it.
  1. Download the latest .ex5 file of AI Knights of the Round Helper by clicking here.
  2. Drag the .ex5 file onto any chart and let it run until the expert panel shows Done. This will generate an ai-knights-of-the-round-ai-res.jsonl file, which is the AI output cache file.
    • Don't forget to enter the OpenRouter API Key.
    • In some cases, this may take a long time:
      • Backtest covers a long period or uses a very small timeframe.
      • Your OpenRouter API Key is limited by daily request quota (50 or 1000).
    • Don't worry—you can stop AI Knights of the Round Helper at any time by closing the chart. When you restart it, it will continue from where it left off.
      • Provided that no new ai-knights-of-the-round-ai-req.jsonl file is generated and the unfinished ai-knights-of-the-round-ai-res.jsonl file is not deleted.
  3. Run AI Knights of the Round backtest again. You will now see the AI start trading!
    • Make sure Force Generate Ai Request For Backtest is false.
  4. You can use MT5's genetic algorithm to optimize and find better input parameters. Different model combinations usually require different input parameter combinations to reach their full potential.
  5. If the results are particularly good and you are willing to share, you can send the ai-knights-of-the-round-ai-res.jsonl file and the optimization results to me. I will add them to this document for all AI Knights of the Round users.

Paid Model Consumption

Each request consumes about 3,742 input tokens and fewer than 50 output tokens (which can be ignored for billing purposes). The number of requests depends on the timeframe. For example, H2 allows 12 requests per day, while the dual-paid model allows 24 requests per day.

In the past couple of days (late September 2025), the deepseek/deepseek-r1-0528:free model has been somewhat unstable, occasionally returning a “429, Provider returned error.” Users relying on this model may need to temporarily switch to the corresponding paid version: deepseek/deepseek-r1-0528.

Taking deepseek/deepseek-r1-0528 as an example:

  • Pricing: $0.40/M input tokens, $1.75/M output tokens

  • Cost per request: about $0.0015

  • Under the H2 timeframe: about $0.018 per day

Overall, the cost of paid models is very small—smaller than commission and spread. When running algorithmic trading normally, there’s no need to worry much about this.

Settings Guide

Settings Package Structure

  • ai-knights-of-the-round-ai-res.jsonl: AI output cache file, must be placed in the specific location mentioned below to run the corresponding backtests.
  • *.set: set files that can be used for backtesting based on AI output cache files, reproducing the performance shown in the screenshots below.

Location of AI Output Cache File

This is the FILE_COMMON folder in MQL5, usually located at:

  • Windows: C:\Users\<Username>\AppData\Roaming\MetaQuotes\Terminal\Common\Files
  • Mac: ~/Library/Application Support/net.metaquotes.wine.metatrader5/drive_c/users/user/AppData/Roaming/MetaQuotes/Terminal/Common/Files

If you really cannot find this location (rare case)

Run a backtest of AI Knights of the Round once, then search globally for the ai-knights-of-the-round-ai-req.jsonl file. The folder containing it is the correct location.

Settings List

Recommended [Dual Free Models] from the AI Knights of the Round overview, located in the ic-h2-240901-250901-free3-d-s-dr settings package, file name free2-*.set.

ic-h2-240901-250901-free3-d-s-dr

  • Broker: IC Markets
  • Timeframe: H2
  • Time range: 2024-09-01 ~ 2025-09-01
  • Models:
    • deepseek/deepseek-chat-v3.1:free
    • openrouter/sonoma-sky-alpha
    • deepseek/deepseek-r1-0528:free
  • Settings package: Click to download












ic-h1-240922-250922-free2-d-g

  • Broker: IC Markets
  • Timeframe: H1
  • Time range: 2024-09-22 ~ 2025-09-22
  • Models:
    • deepseek/deepseek-chat-v3.1:free
    • x-ai/grok-4-fast:free
  • Settings package: Click to download