修正FIDC选股风控延后边界
This commit is contained in:
@@ -2081,7 +2081,7 @@ impl OmniMicroCapStrategy {
|
||||
|
||||
let consumed_turnover = *execution_state.intraday_turnover.get(symbol).unwrap_or(&0);
|
||||
if constraints.volume_limit_enabled {
|
||||
let raw_limit = ((snapshot.minute_volume as f64) * constraints.volume_percent).round()
|
||||
let raw_limit = ((snapshot.minute_volume as f64) * constraints.volume_percent).floor()
|
||||
as i64
|
||||
- consumed_turnover as i64;
|
||||
if raw_limit <= 0 {
|
||||
|
||||
Reference in New Issue
Block a user