Vai al contenuto

Confrontare tra fonti di dati

Questa guida ti mostra come eseguire il backtesting dello stesso cBot utilizzando dati provenienti da diverse fonti, periodi di tempo o condizioni di mercato, e poi chiedere all'agente AI di analizzare dove la strategia funziona meglio e dove si interrompe.

1. Backtesting con i dati del server

Inizia con i dati standard forniti dal server del tuo broker.

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. Backtesting con i tuoi dati

Ora esegui lo stesso backtesting utilizzando un file CSV che hai esportato da una fonte diversa.

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. Confrontare i risultati

Chiedi all'agente di mettere i risultati uno accanto all'altro.

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.

L'agente legge tutti e tre i report e presenta una tabella di confronto. Cerca discrepanze — se il cBot funziona bene su una fonte di dati ma male su un'altra, la strategia potrebbe essere sensibile alla qualità dei dati o alle caratteristiche specifiche di spread ed esecuzione di quella sede.

4. Analizzare le differenze

Chiedi all'agente di approfondire il motivo per cui i risultati differiscono.

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. Testare su diversi periodi di tempo

Confronta come il cBot gestisce diversi regimi di mercato.

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. Testare su diversi simboli

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. Trarre conclusioni

Chiedi all'agente una raccomandazione finale.

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?

Suggerimento

Quando confronti le fonti di dati, mantieni identiche tutte le altre variabili — stesso cBot, stessi parametri, stesso periodo di tempo. Questo isola l'effetto dei dati stessi e previene conclusioni fuorvianti.