<?xml version="1.0" encoding="UTF-8"?>

<ccruncher>

  <title>sample ccruncher input file</title>
  <description>
  <![CDATA[
    set your additional information here
  ]]>
  </description>

  <defines>
    <define name="numsims" value="30000"/>
    <define name="ndf" value="5"/>
  </defines>

  <parameters>
    <property name="time.0" value="18/10/2009"/>
    <property name="time.T" value="15/07/2015"/>
    <property name="stopcriteria.maxiterations" value="$numsims"/>
    <property name="stopcriteria.maxseconds" value="3600"/>
    <property name="copula.type" value="t($ndf)"/>
    <property name="copula.seed" value="0"/>
    <property name="montecarlo.antithetic" value="true"/>
    <property name="portfolio.onlyActiveObligors" value="true"/>
  </parameters>

  <interest type="compound">
    <rate t="0D" r="0.0%"/>
    <rate t="1M" r="4.0%"/>
    <rate t="2M" r="4.1%"/>
    <rate t="3M" r="4.5%"/>
    <rate t="6M" r="4.55%"/>
    <rate t="1Y" r="4.8%"/>
    <rate t="2Y" r="4.9%"/>
    <rate t="5Y" r="5.0%"/>
    <rate t="10Y" r="5.2%"/>
  </interest>

  <!-- 
	S&amp;P simplified rating scale
  -->
  <ratings>
    <rating name="AAA" description="prime"/>
    <rating name="AA" description="high grade"/>
    <rating name="A" description="upper medium grade"/>
    <rating name="BBB" description="lower medium grade"/>
    <rating name="BB" description="non investment grade speculative"/>
    <rating name="B" description="highly speculative"/>
    <rating name="CCC" description="extremely speculative"/>
    <rating name="D" description="in default"/>
  </ratings>

  <!-- 
	S&amp;P 1-year transition matrix adjusted for unrated bonds 
	covering the period between 01-Jan-1981 and 31-Dec-1998 
  -->
  <mtransitions period="12">
    <transition from="AAA" to="AAA" value="92.83%" />
    <transition from="AAA" to="AA" value="6.5%" />
    <transition from="AAA" to="A" value="0.56%" />
    <transition from="AAA" to="BBB" value="0.06%" />
    <transition from="AAA" to="BB" value="0.05%" />
    <transition from="AAA" to="B" value="0.0%" />
    <transition from="AAA" to="CCC" value="0.0%" />
    <transition from="AAA" to="D" value="0.0%" />
    <transition from="AA" to="AAA" value="0.63%" />
    <transition from="AA" to="AA" value="91.87%" />
    <transition from="AA" to="A" value="6.64%" />
    <transition from="AA" to="BBB" value="0.65%" />
    <transition from="AA" to="BB" value="0.06%" />
    <transition from="AA" to="B" value="0.11%" />
    <transition from="AA" to="CCC" value="0.04%" />
    <transition from="AA" to="D" value="0.0%" />
    <transition from="A" to="AAA" value="0.08%" />
    <transition from="A" to="AA" value="2.26%" />
    <transition from="A" to="A" value="91.65%" />
    <transition from="A" to="BBB" value="5.11%" />
    <transition from="A" to="BB" value="0.61%" />
    <transition from="A" to="B" value="0.23%" />
    <transition from="A" to="CCC" value="0.02%" />
    <transition from="A" to="D" value="0.04%" />
    <transition from="BBB" to="AAA" value="0.05%" />
    <transition from="BBB" to="AA" value="0.27%" />
    <transition from="BBB" to="A" value="5.84%" />
    <transition from="BBB" to="BBB" value="87.76%" />
    <transition from="BBB" to="BB" value="4.74%" />
    <transition from="BBB" to="B" value="0.98%" />
    <transition from="BBB" to="CCC" value="0.15%" />
    <transition from="BBB" to="D" value="0.21%" />
    <transition from="BB" to="AAA" value="0.04%" />
    <transition from="BB" to="AA" value="0.11%" />
    <transition from="BB" to="A" value="0.64%" />
    <transition from="BB" to="BBB" value="7.85%" />
    <transition from="BB" to="BB" value="81.13%" />
    <transition from="BB" to="B" value="8.27%" />
    <transition from="BB" to="CCC" value="0.89%" />
    <transition from="BB" to="D" value="1.07%" />
    <transition from="B" to="AAA" value="0.0%" />
    <transition from="B" to="AA" value="0.11%" />
    <transition from="B" to="A" value="0.3%" />
    <transition from="B" to="BBB" value="0.42%" />
    <transition from="B" to="BB" value="6.75%" />
    <transition from="B" to="B" value="83.08%" />
    <transition from="B" to="CCC" value="3.86%" />
    <transition from="B" to="D" value="5.48%" />
    <transition from="CCC" to="AAA" value="0.19%" />
    <transition from="CCC" to="AA" value="0.0%" />
    <transition from="CCC" to="A" value="0.38%" />
    <transition from="CCC" to="BBB" value="0.75%" />
    <transition from="CCC" to="BB" value="2.44%" />
    <transition from="CCC" to="B" value="12.03%" />
    <transition from="CCC" to="CCC" value="60.71%" />
    <transition from="CCC" to="D" value="23.5%" />
    <transition from="D" to="AAA" value="0.0%" />
    <transition from="D" to="AA" value="0.0%" />
    <transition from="D" to="A" value="0.0%" />
    <transition from="D" to="BBB" value="0.0%" />
    <transition from="D" to="BB" value="0.0%" />
    <transition from="D" to="B" value="0.0%" />
    <transition from="D" to="CCC" value="0.0%" />
    <transition from="D" to="D" value="100%" />
  </mtransitions>

  <sectors>
    <sector name="S1" description='Consumer/service sector'/>
    <sector name="S2" description='Forest/building products'/>
    <sector name="S3" description='High technology'/>
    <sector name="S4" description='Utilities'/>
    <sector name="S5" description="Other sectors"/>
  </sectors>

  <mcorrels>
    <sigma sector1="S1" sector2="S1" value="15.1%"/>
    <sigma sector1="S1" sector2="S2" value="6.2%"/>
    <sigma sector1="S1" sector2="S3" value="8.6%"/>
    <sigma sector1="S1" sector2="S4" value="3.9%"/>
    <sigma sector1="S1" sector2="S5" value="9.1%"/>
    <sigma sector1="S2" sector2="S2" value="17.9%"/>
    <sigma sector1="S2" sector2="S3" value="6.3%"/>
    <sigma sector1="S2" sector2="S4" value="10.2%"/>
    <sigma sector1="S2" sector2="S5" value="8.8%"/>
    <sigma sector1="S3" sector2="S3" value="17.5%"/>
    <sigma sector1="S3" sector2="S4" value="7.3%"/>
    <sigma sector1="S3" sector2="S5" value="7.1%"/>
    <sigma sector1="S4" sector2="S4" value="12.8%"/>
    <sigma sector1="S4" sector2="S5" value="6.4%"/>
    <sigma sector1="S5" sector2="S5" value="15.0%"/>
  </mcorrels>

  <segmentations>
    <segmentation name="portfolio" components="asset"/>
    <segmentation name="obligors" components="obligor">
      <segment name="*"/>
    </segmentation>
    <segmentation name="assets" components="asset">
      <segment name="*"/>
    </segmentation>
    <segmentation name="sectors" components="obligor">
      <segment name="S1"/>
      <segment name="S2"/>
      <segment name="S3"/>
      <segment name="S4"/>
      <segment name="S5"/>
    </segmentation>
    <segmentation name="size" components="obligor">
      <segment name="large"/>
      <segment name="medium"/>
      <segment name="small"/>
    </segmentation>
    <segmentation name="products" components="asset">
      <segment name="bond"/>
      <segment name="loan"/>
      <segment name="lease"/>
      <segment name="mortgage"/>
      <segment name="line of credit"/>
      <segment name="bank guarantee"/>
    </segmentation>
    <segmentation name="offices" components="asset">
      <segment name="0001"/>
      <segment name="0002"/>
      <segment name="0003"/>
      <segment name="0004"/>
    </segmentation>
  </segmentations>

  <portfolio>
    <obligor rating="A" sector="S1" id="000001" recovery="80%">
      <belongs-to segmentation="sectors" segment="S1"/>
      <belongs-to segmentation="size" segment="medium"/>
      <asset id="op1" date="01/01/2005" recovery="80%">
        <belongs-to segmentation="products" segment="bond"/>
        <belongs-to segmentation="offices" segment="0001"/>
        <data>
          <values at="01/06/2005" exposure="2000.0" />
          <values at="01/06/2006" exposure="1900.0" />
          <values at="01/06/2007" exposure="1800.0" />
          <values at="01/06/2008" exposure="1700.0" />
          <values at="01/06/2009" exposure="1600.0" />
          <values at="01/06/2010" exposure="1500.0" />
          <values at="01/06/2011" exposure="1400.0" />
          <values at="01/06/2012" exposure="1300.0" />
          <values at="01/06/2013" exposure="1200.0" />
          <values at="01/06/2014" exposure="1100.0" />
        </data>
      </asset>
      <asset id="op2" date="01/06/2008">
        <belongs-to segmentation="offices" segment="0004"/>
        <belongs-to segmentation="products" segment="bond"/>
        <data>
          <values at="01/07/2009" exposure="4400.0" recovery="75%" />
          <values at="01/07/2011" exposure="3920.0" recovery="70%" />
          <values at="01/07/2013" exposure="3340.0" recovery="65%" />
          <values at="01/07/2015" exposure="2960.0" recovery="60%" />
          <values at="01/07/2017" exposure="2480.0" recovery="55%" />
        </data>
      </asset>
    </obligor>
    <obligor rating="B" sector="S2" id="000002" recovery="20%">
      <belongs-to segmentation="sectors" segment="S2"/>
      <belongs-to segmentation="size" segment="large"/>
      <asset id="op3" date="01/06/2003">
        <belongs-to segmentation="offices" segment="0003"/>
        <belongs-to segmentation="products" segment="bond"/>
        <data>
          <values at="01/01/2005" exposure="1750.0" />
          <values at="01/06/2007" exposure="1600.0" />
          <values at="01/01/2009" exposure="1450.0" />
          <values at="01/06/2011" exposure="1300.0" />
          <values at="01/01/2013" exposure="1150.0" />
        </data>
      </asset>
    </obligor>
    <obligor rating="CCC" sector="S2" id="000003">
      <belongs-to segmentation="sectors" segment="S2"/>
      <belongs-to segmentation="size" segment="medium"/>
      <asset id="op4" date="01/01/1999" recovery="beta(2.5,2.7)">
        <belongs-to segmentation="offices" segment="0003"/>
        <belongs-to segmentation="products" segment="bond"/>
        <data>
          <values at="01/01/2000" exposure="2400.0" />
          <values at="01/01/2001" exposure="2300.0" />
          <values at="01/01/2002" exposure="2200.0" />
          <values at="01/01/2003" exposure="2100.0" />
          <values at="01/01/2004" exposure="lognormal(6.5,1.0)" />
          <values at="01/01/2005" exposure="1900.0" />
          <values at="01/01/2006" exposure="exponential(1800.0)" />
          <values at="01/01/2007" exposure="1700.0" />
          <values at="01/01/2008" exposure="uniform(1500.0,1700.0)" />
          <values at="01/01/2009" exposure="1500.0" />
          <values at="01/01/2010" exposure="gamma(2800.0,0.5)" />
          <values at="01/01/2011" exposure="1300.0" />
          <values at="01/01/2012" exposure="normal(1200.0,100.0)" />
          <values at="01/01/2013" exposure="1100.0" />
        </data>
      </asset>
    </obligor>
  </portfolio>

</ccruncher>

