Derive Moving Averages of Curve Rates
This derivation function is used to derive the moving averages for certain curves from the Curve Data function that carries the term structure of curves as described in the previous sections. These moving average rates will be used later to calculate the FTP and LTP rates. This method is quite common in banking practice when handling non-maturing products/positions.
During input, the Curve Data function is used. The Curve Type field is used to filter correct data by selecting CDDA, CREDCD, MMDA and LP.
For demonstration purposes, the following rules have been defined, which derive different averages according to specific requirements:
-
Rule R1 – 3 Month Moving Average, in which the curve rates of term 3 (months) are selected, and the average of rates from 3 successive ends of month is calculated and assigned to the curve rate. The curve type is then renamed MAVG3M.
-
Rule R2 – 1 Year Moving Average, in which the curve rates of term 12 (months) are selected, and the average of rates from 12 successive ends of month is calculated and assigned to the curve rate. The curve type is then renamed MAVG1Y.
-
Rule R3 – 1 Month Daily Average, in which the curve rates of term 1 (month) are selected, and the average of rates from 30 successive business days is calculated and assigned to the curve rate. The curve type is then renamed DAVG1M.
-
Rule R4 – 3 Month Daily Average, in which the curve rates of term 3 (months) are selected, and the average of rates from 90 successive business days is calculated and assigned to the curve rate. The curve type is then renamed DAVG3M.