fixed up backtest

This commit is contained in:
Boki 2025-07-04 13:05:08 -04:00
parent cbe8f0282c
commit 38a6e73ad5
5 changed files with 77 additions and 231 deletions

View file

@ -184,6 +184,10 @@ impl BacktestEngine {
eprintln!("=== BACKTEST RUN COMPLETE ===");
eprintln!("Total trades: {}", result.trades.len());
eprintln!("Equity points: {}", result.equity.len());
eprintln!("OHLC data symbols: {:?}", result.ohlc_data.keys().collect::<Vec<_>>());
for (symbol, data) in &result.ohlc_data {
eprintln!(" {}: {} bars", symbol, data.len());
}
// Return result as JSON
serde_json::to_string(&result)