跳转至

跨数据源比较

本指南向您展示如何使用来自不同来源、时间段或市场条件的数据对同一 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.

代理读取所有三份报告并呈现比较表。 寻找差异——如果 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、相同的参数、相同的时间段。 这样可以隔离数据本身的影响并防止得出误导性结论。