Preparation
OpenRouter
Please register an OpenRouter account and create an API Key, then enter it within the first enter parameter of the EA.
OpenRouter gives every account with 50 free requests per day.
Should you deposit $10, the free quota will increase to 1,000 requests per day, however utilizing AI Knights of the Spherical doesn’t require a deposit, 50 requests are sufficient.
Add URL Supply
Instruments -> Choices -> Skilled Advisors -> Enable WebRequest for listed URL
Add OpenRouter supply: https://openrouter.ai
Dealer Suggestions
AI Knights of the Spherical Helper
In case you are simply viewing this doc to attempt it out, you do not want to fret about AI Knights of the Spherical Helper for now.
AI Knights of the Spherical Helper is used to generate AI output cache recordsdata. It helps superior customers change fashions (together with free and paid fashions), backtest, and optimize enter parameters.
Utilization Steps
- Choose the backtest begin and finish occasions, in addition to the timeframe, and run AI Knights of the Spherical as soon as. This may generate an ai-knights-of-the-round-ai-req.jsonl file. The trail will be present in Settings Information -> Location of AI Output Cache File.
- Word: If an ai-knights-of-the-round-ai-res.jsonl file already exists, AI Knights of the Spherical will robotically run the formal backtest as a substitute of producing ai-knights-of-the-round-ai-req.jsonl. To proceed producing ai-knights-of-the-round-ai-req.jsonl, you’ll be able to delete the ai-knights-of-the-round-ai-res.jsonl file or set Drive Generate Ai Request For Backtest to true within the enter parameters.
- When producing the ai-knights-of-the-round-ai-req.jsonl file, no trades will happen. So if the curve you see is only a straight line, don’t fear — that is regular.
- There are exceptions: for those who run it on a logo apart from XAUUSD, or on XAUUSD D1, you might also see a random curve. However this has no which means, so simply ignore it.
- Obtain the newest .ex5 file of AI Knights of the Spherical Helper by clicking right here.
- Drag the .ex5 file onto any chart and let it run till the professional panel exhibits Completed. This may generate an ai-knights-of-the-round-ai-res.jsonl file, which is the AI output cache file.
- Do not forget to enter the OpenRouter API Key.
- In some instances, this will take a very long time:
- Backtest covers an extended interval or makes use of a really small timeframe.
- Your OpenRouter API Secret is restricted by every day request quota (50 or 1000).
- Don’t fret—you’ll be able to cease AI Knights of the Spherical Helper at any time by closing the chart. If you restart it, it is going to proceed from the place it left off.
- Offered 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 will not be deleted.
- Run AI Knights of the Spherical backtest once more. You’ll now see the AI begin buying and selling!
- Be certain that Drive Generate Ai Request For Backtest is false.
Paid Mannequin Consumption
Every request consumes about 3,742 enter tokens and fewer than 50 output tokens (which will be ignored for billing functions). The variety of requests relies on the timeframe. For instance, H2 permits 12 requests per day, whereas the dual-paid mannequin permits 24 requests per day.
Up to now couple of days (late September 2025), the deepseek/deepseek-r1-0528:free mannequin has been considerably unstable, sometimes returning a “429, Supplier returned error.” Customers counting on this mannequin could have to quickly change to the corresponding paid model: deepseek/deepseek-r1-0528.
Taking deepseek/deepseek-r1-0528 for instance:
-
Pricing: $0.40/M enter tokens, $1.75/M output tokens
-
Price per request: about $0.0015
-
Below the H2 timeframe: about $0.018 per day
General, the price of paid fashions could be very small—smaller than fee and unfold. When working algorithmic buying and selling usually, there’s no want to fret a lot about this.
Settings Information
Settings Bundle Construction
- ai-knights-of-the-round-ai-res.jsonl: AI output cache file, should be positioned within the particular location talked about under to run the corresponding backtests.
- *.set: set recordsdata that can be utilized for backtesting based mostly on AI output cache recordsdata, reproducing the efficiency proven within the screenshots under.
Location of AI Output Cache File
That is the FILE_COMMON folder in MQL5, normally positioned at:
- Home windows: C:Customers
AppDataRoamingMetaQuotesTerminalCommonFiles - Mac: ~/Library/Utility Assist/web.metaquotes.wine.metatrader5/drive_c/customers/consumer/AppData/Roaming/MetaQuotes/Terminal/Frequent/Information
Should you actually can not discover this location (uncommon case)
Run a backtest of AI Knights of the Spherical as soon as, then search globally for the ai-knights-of-the-round-ai-req.jsonl file. The folder containing it’s the appropriate location.
Settings Checklist
Really useful [Dual Free Models] from the AI Knights of the Spherical overview, positioned within the ic-h2-240901-250901-free3-d-s-dr settings package deal, file identify free2-*.set.
ic-h2-240901-250901-free3-d-s-dr
- Dealer: IC Markets
- Timeframe: H2
- Time vary: 2024-09-01 ~ 2025-09-01
- Fashions:
- deepseek/deepseek-chat-v3.1:free
- openrouter/sonoma-sky-alpha
- deepseek/deepseek-r1-0528:free
- Settings package deal: Click on to obtain













ic-h1-240922-250922-free2-d-g
- Dealer: IC Markets
- Timeframe: H1
- Time vary: 2024-09-22 ~ 2025-09-22
- Fashions:
- deepseek/deepseek-chat-v3.1:free
- x-ai/grok-4-fast:free
- Settings package deal: Click on to obtain

