Quote from NetTecture:
Now guess why I came here and asked
The rest is a beginner programmer training in programming, but this stupid edge case...
As I said, you could model it using some kind of randomness - based on statistical data you've previously gathered for how your orders were filled in the past (in the edge case scenarios).
Or, make your strategy more conservative - don't send orders larger than what the book is showing....except if your strategy depends on this feature.
