mirror of
https://github.com/KhizarImran/backtestingfx.git
synced 2026-08-07 09:17:52 +00:00
bug fixes: types.rs
This commit is contained in:
@@ -45,6 +45,13 @@ fn max_drawdown(equity_curve: &[f64]) -> f64 {
|
||||
max_dd
|
||||
}
|
||||
|
||||
#[pymethods]
|
||||
impl Stats {
|
||||
fn __repr__(&self) -> String {
|
||||
format!("{}", self)
|
||||
}
|
||||
}
|
||||
|
||||
impl Stats {
|
||||
pub fn compute(broker: &Broker, equity_curve: &[f64]) -> Self {
|
||||
let num_trades = broker.trade_history.len();
|
||||
|
||||
Reference in New Issue
Block a user