将手工观察接入执行时钟并保留来源与账本语义

This commit is contained in:
boris
2026-09-14 11:41:15 +08:00
parent 93de28d369
commit 7f0c6a008a
10 changed files with 435 additions and 95 deletions
+6
View File
@@ -40,6 +40,12 @@ pub trait Strategy {
) -> Result<(), BacktestError> {
Ok(())
}
/// External, already executed manual activity. It is not a new strategy
/// order and must not be run through order generation or transaction costs.
fn on_observed_manual_execution(
&mut self,
_execution: &crate::manual_execution::ManualReplayApplication,
) -> Result<(), BacktestError> { Ok(()) }
fn schedule_rules(&self) -> Vec<ScheduleRule> {
Vec::new()
}