ドキュメント

Last updated on 20. 11. 2026 by clonex / Ivan Hudec

Text to Strategy

Describe a trading idea in plain words and Q builds it as a StrategyQuant strategy, backtests it and shows the report in the chat. Ask for a change and Q rebuilds the strategy and backtests it again, so you see the numbers before and after.

When the strategy looks right, open it in AlgoWizard or ask for its MetaTrader 5 code. Q also kept each of our backtests in a new databank, without being asked.

Step 1: Describe the idea

Start a new chat and pick Text to Strategy. Clicking one of the tile’s examples sends it at once. We used Create a breakout strategy for gold, which sends this:

Create a breakout strategy for gold on H1, using the Dukascopy data and the MetaTrader 5 engine. Long only: while the last close is below Highest(High, 200) – the Highest indicator with period 200 and ComputedFrom set to High – place a buy stop order at that level. Stop loss 2 x ATR(20), trailing stop 4 x ATR(20), no profit target. Size each trade to risk 0.5% of the account. Run a fresh backtest on all available data and show me the full report with the equity curve.

The more exact the sentence, the less Q has to guess: the market, timeframe, data, engine, entry, exits and position size. Ours named all of them, and Q asked nothing.

The request and the backtest card of Gold_H1_200_High_Breakout

19 steps in 2 minutes 10 seconds: 724 trades from May 2003 to November 2026, profit factor 1.65, drawdown 16.98%.

Our gold data ended in October 2024, so Q updated it first, which took most of the time. Q’s summary also said what the report leaves out. The commission in the report was zero, so Q estimated it at $7 per round-turn lot and gave the profit after it. And because the test ran on H1 bars only, the stop fills inside a bar are approximate.

Other ways to start

その Text to Strategy tile also has examples that start from your own pseudocode (Turn my pseudocode into a strategy), from the strategy selected in the app (Load the selected strategy) and from the one open in AlgoWizard (Load strategy from AlgoWizard editor).

Step 2: Read the full report

クリック Open full report on the card.

The top of the full report: the equity curve over 724 trades and the performance metrics

The equity curve over the 724 trades and the performance metrics, with Open in AlgoWizard at the top right.

Further down, the report shows the backtest settings and the strategy’s trading rules. Check the rules against your sentence. Ours matched: a buy stop at Highest(High, 200) while the last close is below it, stop loss 2 x ATR(20), trailing stop 4 x ATR(20), no short trades.

Step 3: Change it

Say what to change:

Change the stop loss to 3 x ATR(20) and backtest again.

Two backtest cards of Gold_H1_200_High_Breakout_SL3, with starting capital 10,000 and 100,000

10 steps in 44 seconds. Q backtested the new version twice, with a starting capital of 10,000 and of 100,000.

Q said the wider stop “required a $100,000 starting account to avoid fallback-sized trades”, so its dollar results aren’t directly comparable with the first test at 10,000. Compare the profit factor and the drawdown instead. In Q’s 100,000 test the profit factor was 1.53 (1.65 before), the drawdown 10.4% (16.98% before) and the trades 655 (724 before). Q also said that the entry, the trailing stop and the 0.5% risk stayed as they were.

Step 4: Take the code

Give me the MQL5 code of this strategy.

1 step in 4 seconds. Q didn’t print the code in the chat. It answered with a download link for the Expert Advisor, Gold_H1_200_High_Breakout_SL3.mq5, the version with the new stop loss.

Step 5: Open it in AlgoWizard

The full report has an Open in AlgoWizard button at the top right. AlgoWizard offers to Save as new strategy under the strategy’s name; click 了解 and it opens in the editor.

The strategy in the AlgoWizard editor: Close[1] < Highest(High, 200)[1] as the long entry signal

The trading signals are the ones from the report. Money management on the right shows Fixed size, 0.1 lots.

Q’s backtests used 0.5% risk per trade, so set the money management before you backtest the strategy in AlgoWizard.

Step 6: Find the backtests in a databank

Q put all three backtests into a new databank, Gold H1 QA, in the Retester. Nobody asked it to.

The Gold H1 QA databank with the three backtests: 21,562.19, 10,242.72 and 111,054.33 net profit

The first backtest and the two of the changed strategy, with their net profit, trades and profit factor.

トラブルシューティング

The profit jumped after a change. Q may change the starting capital for the new test, and it says so in its answer. Compare the profit factor and the drawdown, not the dollars.

AlgoWizard shows a different position size. After Open in AlgoWizard our strategy showed Fixed size, 0.1 lots instead of the 0.5% risk of the backtests. Set the money management in AlgoWizard before you test the strategy there.

Where to go from here

What it costs. The three requests on this page took 78 credits together with GPT-6.1 Terra: 52 to build and backtest the strategy (the data update included), 22 for the change with its two backtests, and 4 for the code. On average, a request that builds and backtests a strategy takes about 45 credits with GPT-6.1 Terra (real usage, October–November 2026). Sonnet 5 and Opus 5.5 cost several times as much.

この記事は参考になりましたか? この記事は役に立った この記事は役に立たなかった

0 コメント
最古の
最新 最も投票された