()
| 47 | //! // Expecting reversion, a wide stop beats a tight one. |
| 48 | //! let wide = TradingRule { profit_taking: 2.0, stop_loss: 8.0 }; |
| 49 | //! let tight = TradingRule { profit_taking: 2.0, stop_loss: 0.5 }; |
| 50 | //! let wide = evaluate_rule_on_paths(&paths, wide, 59, 1.0)?; |
| 51 | //! let tight = evaluate_rule_on_paths(&paths, tight, 59, 1.0)?; |
| 52 | //! assert!(wide.sharpe > tight.sharpe && wide.win_rate > 0.95); |
| 53 | //! # Ok(()) |
| 54 | //! # } |
| 55 | //! ``` |
| 56 | |
| 57 | use crate::util::stats; |
| 58 | use rand::rngs::StdRng; |
| 59 | use rand::SeedableRng; |
nothing calls this directly
no outgoing calls
no test coverage detected