Class FixAnalyzer
java.lang.Object
com.quantfinlib.regulatory.FixAnalyzer
WM/Reuters-style 4pm fix analysis: computes the fix rate from mid samples
inside the fixing window (median, per WM/R methodology) and screens a
participant's flow for the classic "banging the close" signature — a large
share of window volume, a price run-up aligned with the participant's net
flow into the fix, and reversion afterwards.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FixAnalyzer.FixImpactReportanalyze(double[] midSamplesInWindow, double preWindowMid, double postWindowMid, long participantBuyQty, long participantSellQty, long marketVolume, double shareThreshold) Screens one participant's fixing-window activity.static doublecalculateFix(double[] midSamplesInWindow) Fix rate = median of the mid samples captured inside the fixing window.
-
Method Details
-
calculateFix
public static double calculateFix(double[] midSamplesInWindow) Fix rate = median of the mid samples captured inside the fixing window. -
analyze
public static FixAnalyzer.FixImpactReport analyze(double[] midSamplesInWindow, double preWindowMid, double postWindowMid, long participantBuyQty, long participantSellQty, long marketVolume, double shareThreshold) Screens one participant's fixing-window activity.Flags when all three hold: participation share ≥ threshold, the run-up into the fix is aligned with the participant's net flow, and the price reverts against that flow after the window (impact that decays is the footprint of pressure, not information).
- Parameters:
midSamplesInWindow- mid samples inside the fixing windowpreWindowMid- mid just before the window openspostWindowMid- mid after the window closesparticipantBuyQty- participant buy volume in the windowparticipantSellQty- participant sell volume in the windowmarketVolume- total market volume in the windowshareThreshold- participation share that triggers scrutiny (e.g. 0.25)
-