qis.compute_fx_optimal_hedge

qis.compute_fx_optimal_hedge(asset_price_local_ccy, local_to_reference_fx_rate, forward_rate_for_local_ccy, freq='ME', span=36, risk_aversion_lambda=1.3333333333333333, min_max_hedge=(0.0, 1.0))[source]

Mean-variance optimal FX hedge ratios, plus the carry and beta references.

From the EWMA FX vol/beta and the annualised forward hedge cost, builds three per-period hedge-ratio series:

  • hedge_cost = forward_premium / (1 + forward_premium)

  • carry_ratio = (annualised_hedge_cost / fx_var) / (2 * risk_aversion_lambda)

  • Max Carry = 1 - carry_ratio (pure carry tilt away from full hedge)

  • Beta Hedge = 1 + fx_beta (removes the FX exposure implied by the local-return-on-FX beta)

  • Optimal = 1 - carry_ratio + fx_beta (carry tilt plus beta hedge)

All three are optionally clipped to min_max_hedge.

Parameters:
  • asset_price_local_ccy (Series) – Asset price quoted in its local currency.

  • local_to_reference_fx_rate (Series) – Units of reference currency per 1 unit of the local currency.

  • forward_rate_for_local_ccy (Series) – Simple local/reference cash-growth ratio minus one. Its exact short-forward cost f/(1+f) is annualised internally using the ACT/365F year fraction from each decision date to its next scheduled reset. Premiums must price that same freq interval.

  • freq (str) – Reset and estimation cadence (e.g. 'ME'). Calendar days price cash; periods per year annualise only statistical risk estimates.

  • span (int) – EWMA span in periods of freq for the vol/beta estimates.

  • risk_aversion_lambda (float) – Mean-variance risk-aversion coefficient (larger ⇒ smaller carry tilt).

  • min_max_hedge (Tuple[float, float] | None) – Optional (min, max) clip applied to every hedge ratio; None leaves them unclipped.

Returns:

Tuple (optimal_hedge, max_carry, beta_hedged) of hedge-ratio Series at freq. With the container’s default forward schedule, the last row is labelled at the scheduled reset on or after its final quote date. For a midperiod end or a final business day before a weekend period end, that label is after the observation: its volatility and beta remain those of the last completed return period. It is a scheduled decision label, not a new future observation. Supplied premium indices determine the available schedule when a different forward panel is used.

Return type:

Tuple[Series, Series, Series]