Comparar entre fuentes de datos¶
Esta guía le muestra cómo realizar el backtest del mismo cBot utilizando datos de diferentes fuentes, períodos de tiempo o condiciones de mercado, y luego pedir al agente de IA que analice dónde funciona mejor la estrategia y dónde falla.
1. Backtest con datos del servidor ¶
Comience con los datos estándar proporcionados por el servidor de su bróker.
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. Backtest con sus propios datos ¶
Ahora ejecute el mismo backtest utilizando un archivo CSV que haya exportado de una fuente diferente.
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. Comparar los resultados ¶
Pida al agente que coloque los resultados uno al lado del otro.
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.
El agente lee los tres informes y presenta una tabla comparativa. Busque discrepancias: si el cBot funciona bien con una fuente de datos pero mal con otra, la estrategia puede ser sensible a la calidad de los datos o a las características específicas de spread y ejecución de ese lugar.
4. Analizar las diferencias ¶
Pida al agente que profundice en por qué difieren los resultados.
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. Probar en diferentes períodos de tiempo ¶
Compare cómo maneja el cBot diferentes regímenes de mercado.
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. Probar en diferentes símbolos ¶
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. Sacar conclusiones ¶
Pida al agente una recomendación final.
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?
Consejo
Al comparar fuentes de datos, mantenga todas las demás variables idénticas: mismo cBot, mismos parámetros, mismo período de tiempo. Esto aísla el efecto de los datos en sí y evita conclusiones engañosas.