-
Fix `CustomPartialFillModelAlgorithmFails.cs/py` (#7321)
发布于
2023-06-20 13:46:11 +00:00 | 1359 次提交 在此版本后已推送到 master- Fix bug
The algorithm
CustomPartialFillModelAlgorithm.cswas not working as
expected with short orders because in its Fill model, the variable
absoluteRemaininginstead of decrease was being increased since
theFillQuantityin each call to this method was negative. Therefore
when this amount was substracted toabsoluteRemaining, instead of
substract, it was added. Hence the method created more partial orders
than expected, specifically: 580 short orders for SPY with Quantity -10.-
Fix
CustomPartialFillModelAlgorithm.py -
Address required changes
-
Nit change
-
Address required changes
下载附件