データソース間での比較¶
このガイドでは、異なるソース、期間、または市場状況のデータを使用して同じcBotをバックテストし、AIエージェントに戦略がどこで最も効果的で、どこで破綻するかを分析させる方法を説明します。
1. サーバーデータでバックテスト ¶
まず、ブローカーのサーバーが提供する標準データから始めます。
Backtest C:\test\crypto-bot.algo on BTCUSD H1, account 1234567 from 1 January 2024 to 31 December 2024 using M1 data mode. Save the results as JSON to C:\test\results-server.json.
2. 独自のデータでバックテスト ¶
次に、別のソースからエクスポートしたCSVファイルを使用して同じバックテストを実行します。
Backtest C:\test\crypto-bot.algo on BTCUSD H1, account 1234567 from 1 January 2024 to 31 December 2024 using M1-CSV data mode with the data file at C:\test\binance-btcusd-2024.csv. Save the results as JSON to C:\test\results-binance.json.
Backtest the same cBot again using the data file at C:\test\coinbase-btcusd-2024.csv. Save the results to C:\test\results-coinbase.json.
3. 結果の比較 ¶
エージェントに結果を並べて表示するよう依頼します。
Compare the backtest results from C:\test\results-server.json, C:\test\results-binance.json and C:\test\results-coinbase.json. Show net profit, total trades, win rate, profit factor and maximum drawdown for each. Highlight any significant differences.
エージェントは3つのレポートすべてを読み取り、比較表を提示します。 不一致を探します。あるデータソースではcBotのパフォーマンスが良好でも、別のデータソースでは不良の場合、その戦略はデータ品質や特定の会場のスプレッドおよび執行特性に敏感である可能性があります。
4. 差異の分析 ¶
エージェントに結果が異なる理由を掘り下げるよう依頼します。
Why did the cBot perform better on Binance data than Coinbase data? Were there more trades, better fills, or different market conditions?
Were there specific months where one data source led to significantly different results? Show me a month-by-month breakdown.
5. 期間をまたいだテスト ¶
cBotが異なる市場環境をどのように処理するかを比較します。
Backtest C:\test\crypto-bot.algo on BTCUSD H1 for three separate periods: January to June 2023, July to December 2023, and January to June 2024. Compare the results and tell me whether the strategy has been improving, degrading, or staying consistent.
Which 6-month period produced the worst results and why? Was it a trending or ranging market?
6. 銘柄をまたいだテスト ¶
Backtest C:\test\crypto-bot.algo on BTCUSD, ETHUSD and XRPUSD over the last 12 months using the same parameters. Which symbol does the strategy work best on?
7. 結論を導く ¶
エージェントに最終的な推奨事項を求めます。
Based on everything we have tested, summarise which data source, symbol and time period combination produces the most reliable results for this cBot. What should I use going forward?
ヒント
データソースを比較する際は、他のすべての変数を同一に保ちます。同じcBot、同じパラメータ、同じ期間です。 これにより、データそのものの影響が分離され、誤った結論を防ぐことができます。