修正next open末日执行测试
This commit is contained in:
@@ -4899,7 +4899,7 @@ mod tests {
|
|||||||
market(third, 14.0, 15.0),
|
market(third, 14.0, 15.0),
|
||||||
],
|
],
|
||||||
vec![factor(first), factor(second)],
|
vec![factor(first), factor(second)],
|
||||||
vec![candidate(first), candidate(second), candidate(third)],
|
vec![candidate(first), candidate(second)],
|
||||||
vec![benchmark(first), benchmark(second), benchmark(third)],
|
vec![benchmark(first), benchmark(second), benchmark(third)],
|
||||||
)
|
)
|
||||||
.expect("dataset");
|
.expect("dataset");
|
||||||
@@ -4915,9 +4915,8 @@ mod tests {
|
|||||||
|
|
||||||
let result = BacktestEngine::new(
|
let result = BacktestEngine::new(
|
||||||
dataset,
|
dataset,
|
||||||
ScheduledBuyStrategy {
|
BuyWhenDecisionDateStrategy {
|
||||||
rule: ScheduleRule::weekly_by_weekday("weekly_signal", 5, ScheduleStage::OnDay),
|
decision_date: second,
|
||||||
expected_decision_date: second,
|
|
||||||
},
|
},
|
||||||
broker,
|
broker,
|
||||||
config,
|
config,
|
||||||
|
|||||||
Reference in New Issue
Block a user