Class FixAnalyzer

java.lang.Object
com.quantfinlib.regulatory.FixAnalyzer

public final class FixAnalyzer extends Object
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
    Modifier and Type
    Class
    Description
    static final record 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    analyze(double[] midSamplesInWindow, double preWindowMid, double postWindowMid, long participantBuyQty, long participantSellQty, long marketVolume, double shareThreshold)
    Screens one participant's fixing-window activity.
    static double
    calculateFix(double[] midSamplesInWindow)
    Fix rate = median of the mid samples captured inside the fixing window.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 window
      preWindowMid - mid just before the window opens
      postWindowMid - mid after the window closes
      participantBuyQty - participant buy volume in the window
      participantSellQty - participant sell volume in the window
      marketVolume - total market volume in the window
      shareThreshold - participation share that triggers scrutiny (e.g. 0.25)