Class VwapScheduler
java.lang.Object
com.quantfinlib.execution.VwapScheduler
VWAP schedule design: allocates child slices proportionally to an expected
intraday volume profile (e.g. from
com.quantfinlib.ml.IntradayLiquidityForecaster), so participation
tracks the market's own volume curve.-
Method Summary
Modifier and TypeMethodDescriptionstatic long[]allocateProportionally(long total, double[] weights) Largest-remainder proportional allocation: integer quantities that sum exactly tototal, proportional toweights.schedule(long totalQty, double[] volumeProfile, long durationMillis) Splits a parent order across the volume profile.
-
Method Details
-
schedule
Splits a parent order across the volume profile.- Parameters:
totalQty- parent order quantityvolumeProfile- expected volume per bucket (any positive scale)durationMillis- total execution window; slice i starts ati * duration / buckets
-
allocateProportionally
public static long[] allocateProportionally(long total, double[] weights) Largest-remainder proportional allocation: integer quantities that sum exactly tototal, proportional toweights.
-