<?php require('SRC/config.php'); require('SRC/macros.php');
list ($home,$url,$users,$assign,$msg,$host,$sql,$MYCookie,$applet,$os)=courseAll();
$user_nbr=getaUserNbr($$MYCookie);
list ($user_name,$user_home,$user_url,$user_profile)=userid($user_nbr);

myheader('VMARKET applet parameters','..',$myPermit);
?>

<p><font color="#000000"><font size="+2">
Problem defining selectors.
</font></font><br>
<!-------------------------------------------------------------->

The selectors appear on the top of <I>VMARKET</I> plot window and allow you 
to define the type of problem you want to solve. Careful, white spaces count!

<UL>
<LI><B>topic</B> selects the type of the financial product.
   <A NAME="tex2html9"
  HREF="../vmarket/listing.php#TopicNames">Choices include</A>

<BR>   "StckOption", "ZeroCpBond", "BondOption", "IRateSwap", "CreditModel", 
   "RandomWalk", "Exercise".
</LI>
<LI><B>method</B> selects the numerical method.
   <A NAME="tex2html10"
  HREF="../vmarket/listing.php#MethodNames">Choices include</A>

<BR>   "FinDifferen", "FinElements", "Monte-Carlo", "Monte-Carlo*", 
   "DistribFct",  "DistribFct*".
</LI>
<LI><B>scheme</B> selects the flavour of a given product and method.
   <A NAME="tex2html11"
  HREF="../vmarket/listing.php#SchemeNames">Choices include</A>

<BR>   "European",     "European logn", "American",     "American logn", 
   "inBarrier",    "outBarrier",    "particles",    "Binom tree",
   "Exercise 1.01".
</LI>
<LI><B>ic</B> selects the type of initial or terminal condition.
   <A NAME="tex2html12"
  HREF="../vmarket/listing.php#ICNames">Choices include</A>

<BR>   "Put", "Call", "VSpread", "SuperShr", "Discount", "Yield", "Gaussian".
</LI>
</UL>

<A NAME="sHTML:param"></A>
<p><font color="#000000"><font size="+2">
Editable run parameters.
</font></font><br>
<!-------------------------------------------------------------->

The following list of parameters are first preset to 
<A NAME="tex2html13"
  HREF="../vmarket/listing.php#TagDefault">default</A>
values, 
then modified according to the <EM>TAG</EM> parameters (below) and can be 
modified at run time by double-clicking the name appearing on the left 
of the applet:

<UL>
<LI><B>RunTime</B> the run time [years], e.g. 0.25 for 3 months
</LI>
<LI><B>Drift</B>   the relative total drift of the underlying [1/year],
                    e.g. 0.05 for 5%
</LI>
<LI><B>Volatility</B> the relative volatility of the undelying [1/year],
                    e.g. 0.5 for 50%
</LI>
<LI><B>LogNkappa</B> exponent in the random walk, e.g. 1=log- / 0=normal
</LI>
<LI><B>SpotRate</B> the present short term interest (spot) rate [1/year],
                    e.g. 0.03 for 3%
</LI>
<LI><B>Dividend</B> dividend yield [1/years], e.g. 0.04 for 4%
</LI>
<LI><B>StrikePrice</B> the option exercise price at expiry [currency], 
                        e.g. 10 for EUR 10
</LI>
<LI><B>MktPriceRsk</B> market price of risk, e.g. -0.5 for risk averse market
</LI>
<LI><B>MeanRevTarg</B> target of mean reversion rate, e.g. 0.05 for 5%
</LI>
<LI><B>MeanRevVelo</B> speed of mean reversion process, e.g. 2 for 1/2 year
</LI>
<LI><B>Shape0</B> shape parameter or the yield curve amplitude
</LI>
<LI><B>Shape1</B> shape parameter or the yield curve slope
</LI>
<LI><B>Shape2</B> shape parameter or the yield curve convexity
</LI>
<LI><B>MeshLeft</B> the lower end of the price range [currency]
</LI>
<LI><B>MeshLength</B> the price range [currency]
</LI>
<LI><B>MeshPoint</B> the number of mesh points
</LI>
<LI><B>Walkers</B> the number of random walkers
</LI>
<LI><B>TimeStep</B> the step [1/year], e.g. 0.00274 for one day, 
                     0.01923 for one week
</LI>
<LI><B>TimeTheta</B> the implicity parameter for time integration
</LI>
<LI><B>TuneQuad</B> the tunable quadrature parameter for FEM
</LI>
<LI><B>UserInteger</B> the user defined integer value
</LI>
<LI><B>UserDouble</B> the user defined double value
</LI>
</UL>
Only the parameters specified in the applet <EM>TAG</EM> are initially displayed;
switch from <B>Double-click below:</B> to <B>Show all parameters</B> to get a 
complete list

<A NAME="sHTML:tag"></A>
<p><font color="#000000"><font size="+2">
Applet TAG modifiers.
</font></font><br>
<!-------------------------------------------------------------->

The <I>VMARKET</I> applet is included an HTML document with a header of 
the form
<font face="fixed width"><PRE>
&lt;applet codebase="$user_dir/applet/" code=$applet 
        align=center width=780 height=420&gt;
       &lt;param name=topic               value="Exercise"&gt;
       &lt;param name=scheme              value="Exercise 4.07"&gt;
       &lt;param name=ic                  value="Put"&gt;
       &lt;param name=method              value="FinDifferen"&gt;
       &lt;param name=RunTime             value= 0.5&gt;
       &lt;param name=Drift               value= 0.&gt;
       &lt;param name=Volatility          value= 0.4&gt;
       &lt;param name=LogNkappa           value= 1.&gt;
       &lt;param name=SpotRate            value= 0.1&gt;
       &lt;param name=Dividend            value= 0.&gt;
       &lt;param name=StrikePrice         value= 10.&gt;
       &lt;param name=Barrier             value= 0.&gt;
       &lt;param name=MktPriceRsk         value= 1.&gt;
       &lt;param name=MeanRevTarg         value= 0.05&gt;
       &lt;param name=MeanRevVelo         value= 0.1&gt;
       &lt;param name=Shape0              value= 6.&gt;
       &lt;param name=Shape1              value= 4.&gt;
       &lt;param name=Shape2              value=-2.&gt;
       &lt;param name=MeshLeft            value= 0.&gt;
       &lt;param name=MeshLength          value= 20.&gt;
       &lt;param name=MeshPoints          value= 100&gt;
       &lt;param name=Walkers             value= 300&gt;
       &lt;param name=TimeStep            value= 0.00274&gt;
       &lt;param name=TimeTheta           value= 0.7&gt;
       &lt;param name=TuneQuad            value= 0.333&gt;
       &lt;param name=UserInt             value= 0&gt;
       &lt;param name=UserDouble          value= 0.&gt;
&lt;/applet&gt;
</PRE></font>
The first two lines specify the path name of the executable, the position 
and the size of the window. The <EM>TAG</EM> modifiers that follow define the 
default values for the switches and the parameters that will be set when 
the applet first appears in the web page.
They can always be recovered simply by refreshing the webpage.

<P>

<?php myfooter($user_nbr,'..',$myPermit); ?>
