1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Backtest simulation engine
//!
//! This module implements the main backtest simulation loop that matches
//! Finlab's backtest_core Cython implementation.
//!
//! # Module Structure
//!
//! - `wide`: Wide format simulation (2D array input)
//! - `long`: Long format simulation (sorted 1D arrays, multiple interfaces)
//!
//! # Weight Modes
//!
//! Supports two input modes:
//! 1. **Boolean signals** - Converted to equal weights (like Finlab with bool positions)
//! 2. **Float weights** - Custom weights, normalized to sum=1 (like Finlab with float positions)
// Re-export public API from wide module
pub use ;
// Re-export public API from long module
pub use ;
// Re-export from other modules for convenience
pub use crateBacktestConfig;
pub use crate;
pub use crateIntoWeights;