Porównywanie między źródłami danych¶
Ten przewodnik pokazuje, jak przeprowadzić backtesting tego samego cBota przy użyciu danych z różnych źródeł, okresów czasu lub warunków rynkowych, a następnie poprosić agenta AI o przeanalizowanie, gdzie strategia działa najlepiej, a gdzie zawodzi.
1. Backtest z danymi serwera ¶
Zacznij od standardowych danych dostarczanych przez serwer Twojego brokera.
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 z własnymi danymi ¶
Teraz uruchom ten sam backtest, używając pliku CSV wyeksportowanego z innego źródła.
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. Porównaj wyniki ¶
Poproś agenta, aby zestawił wyniki obok siebie.
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.
Agent odczytuje wszystkie trzy raporty i przedstawia tabelę porównawczą. Szukaj rozbieżności — jeśli cBot działa dobrze na jednym źródle danych, ale słabo na innym, strategia może być wrażliwa na jakość danych lub specyficzne charakterystyki spreadu i realizacji danego miejsca.
4. Przeanalizuj różnice ¶
Poproś agenta, aby zbadał, dlaczego wyniki się różnią.
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. Testuj w różnych okresach ¶
Porównaj, jak cBot radzi sobie z różnymi reżimami rynkowymi.
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. Testuj na różnych symbolach ¶
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. Wyciągnij wnioski ¶
Poproś agenta o ostateczną rekomendację.
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?
Wskazówka
Porównując źródła danych, zachowaj wszystkie inne zmienne identyczne — ten sam cBot, te same parametry, ten sam okres. To izoluje wpływ samych danych i zapobiega mylącym wnioskom.