BK_EquityLinkedFXO





http://www.QuantTools.com
CapeTools Storage function list

Welcome | Documentation format | QuantTools Groups | QuantTools Categories | Licence

Key TAGs | Excel Index | API Index



In an equity-linked foreign-exchange option, the quantity of the face value will be linked to the level of the forward price of a stock or equity index.

this is an ideal option for an investor who wants to speculate directly in a foreign equity market but wishes to place a floor on the currency exposure.

This function utilizes an analytical (closed-form) algorithm.

Note that the risk (greek) numbers produced are the mathematically defined equivalent of a derivative (instantaneous change).

You can convert the risk number to your own definition of risk by multiplying by the shift you require.

For example, for a typical definition of VANNA, (change in underlying and volatility), where one defines the change in the underlying as a single unit of change (1.0) and the change in volatility as a one percent change (0.01), simply multiply the VANNA result calculated by (1.0*0.01).

For VEGA, change in volatility of one percent (0.01), simply multiply the VEGA result by 0.01. Within option contracts THETA is negative, however the mathematically defined equivalent of THETA (instantaneous FORWARD change in time) is positive.

Internally we have negated this value for you.

To express THETA as THETA per day, simply multiply the THETA result by 1/365 or 1/252 (depending on whether you require calendar days or business days).

This function stores a portfolio of equity, commodities, futures or FX options in memory and returns a key.

This allows you to price or query the portfolio for different value dates via just the portfolio key.

You can price the portfolio via the PriceOptionBook() function.

You can view the trades within the portfolio via the DisplayOptionBook() function.

The DisplayOptionBook() function allows you to sort the portfolio using any column (or combination of columns).

A column is simply the NAME of any of the parameters within this function (excluding the 'TradeKey' and 'Reload' parameters).

In addition you can create a new portfolio object from this object by grouping trades within the portfolio, for example by Currency, Units, Sector etc..., using the GroupOptionBook() function.

You simply provide the NAME of the parameters that you wish to group.

Groups can represent more than one column and thus enables you to price a portion of the portfolio (a group) using the same PriceOptionBook() function.

You can view the grouped names within the grouped portfolio via the DisplayOptionGroups() function.

You can view the trades within a group via the DisplayGRPOptionBook() function.

Furthermore you can create a new portfolio from this portfolio object by selecting a portion of the trades (via a sql-like language).

Again this portfolio can be priced via the PriceOptionBook() function.

You can also execute the WriteXLRange(), WriteXLRange2() or WriteXLRange3() and the corresponding ReadXLRange(), ReadXLRange2() or ReadXLRange3() functions in order to read and write the portfolio data to file (XML).

WriteXLRange2() is preferable as you can save each of the ranges of this function to different slots (total of 15) within the XML file.



This function creates an object and returns a string-key value to represent this created object.
The TAG value of the string-key returned (second part of the key) is : "EquityLinkedFXO"



Note: Within Excel, the function is named - CT.BK_EquityLinkedFXO




High level graphic of BK_EquityLinkedFXO() function with parameters. Blue square node is the actual function with the parameters ordered.



Parameter Description


  1. TradeKey parameter

    User Handle used to retrieve the object
  2. Reload parameter

    When creating this object for the first time, set this parameter to a positive value. Within Excel, when recomputing a worksheet where you do not wish to recreate the object, set this parameter to zero (0).
  3. ID parameter

    Identifier of deal. Used in order to index within the portfolio.
  4. TAG parameter

    User defined Tag. The information within this column can be used within the 'CapeTools Select Sub-Portfolios' or 'CapeTools Group Sub-Portfolios' categories of functions.
  5. Ccy parameter

    Currency of the portfolio.
  6. Units parameter

    Number of option contracts you wish to trade in (positive value).
  7. Position parameter

    Whether you are long or short the option.
  8. CallPut parameter

    Option Types (C)all or (P)ut
  9. E parameter

    Spot exchange rate specified in units of domestic currency per unit of foreign currency.
  10. S parameter

    Underlying price in foreign currency
  11. X parameter

    Currency strike price in domestic currency
  12. T parameter

    Time to option maturity.
  13. r parameter

    Domestic interest rate
  14. rf parameter

    Foreign interest rate.
  15. q parameter

    Instantaneous proportional dividend payout rate of the underlying asset
  16. vS parameter

    Volatility of the underlying asset.
  17. vE parameter

    Volatility of the domestic exchange rate.
  18. rho parameter

    Correlation between the asset and the domestic exchange rate.


Extended information

Function Syntax

VB Syntax


String CTStorage.BK_EquityLinkedFXO( _
String TradeKey, _
Long Reload, _
Variant ID, _
Variant TAG, _
Variant Ccy, _
Variant Units, _
Variant Position, _
Variant CallPut, _
Variant E, _
Variant S, _
Variant X, _
Variant T, _
Variant r, _
Variant rf, _
Variant q, _
Variant vS, _
Variant vE, _
Variant rho)


Excel Spreadsheet Syntax


=CT.BK_EquityLinkedFXO(
Excel String Cell TradeKey,
Excel Numeric Cell Reload,
XLRange ID,
XLRange TAG,
XLRange Ccy,
XLRange Units,
XLRange Position,
XLRange CallPut,
XLRange E,
XLRange S,
XLRange X,
XLRange T,
XLRange r,
XLRange rf,
XLRange q,
XLRange vS,
XLRange vE,
XLRange rho)


C++ Syntax


static std::string BK_EquityLinkedFXO(
std::string TradeKey,
long Reload,
CTRangeDataCPP ID,
CTRangeDataCPP TAG,
CTRangeDataCPP Ccy,
CTRangeDataCPP Units,
CTRangeDataCPP Position,
CTRangeDataCPP CallPut,
CTRangeDataCPP E,
CTRangeDataCPP S,
CTRangeDataCPP X,
CTRangeDataCPP T,
CTRangeDataCPP r,
CTRangeDataCPP rf,
CTRangeDataCPP q,
CTRangeDataCPP vS,
CTRangeDataCPP vE,
CTRangeDataCPP rho);


DotNET Syntax


System.String CTStorageSA.BK_EquityLinkedFXO(
System.String TradeKey,
System.Int32 Reload,
CTRangeData ID,
CTRangeData TAG,
CTRangeData Ccy,
CTRangeData Units,
CTRangeData Position,
CTRangeData CallPut,
CTRangeData E,
CTRangeData S,
CTRangeData X,
CTRangeData T,
CTRangeData r,
CTRangeData rf,
CTRangeData q,
CTRangeData vS,
CTRangeData vE,
CTRangeData rho);

Parameter data types

ArgNameArgTypeIsKey
TradeKeyStringFALSE
ReloadLongFALSE
IDRangeFALSE
TAGRangeFALSE
CcyRangeFALSE
UnitsRangeFALSE
PositionRangeFALSE
CallPutRangeFALSE
ERangeFALSE
SRangeFALSE
XRangeFALSE
TRangeFALSE
rRangeFALSE
rfRangeFALSE
qRangeFALSE
vSRangeFALSE
vERangeFALSE
rhoRangeFALSE


Example Inputs

The first column represents the name of the parameters. The second column specifies whether the parameters are optional or not. Finally the last column provides some sample input data.
Function call input string-keys are always in the format : "NAME.EXTTAG.TICKER" The "EXTTAG.TICKER" part is determined from the output of other, capetools, object creation functions.


ArgNameIsOptional (Excel only)Example
TradeKeyFALSEMyBK_EquityLinkedFXODeal
ReloadFALSE1
IDFALSEBK_EquityLinkedFXO_ID_Range (creates a range object)
TAGFALSEBK_EquityLinkedFXO_TAG_Range (creates a range object)
CcyFALSEBK_EquityLinkedFXO_Ccy_Range (creates a range object)
UnitsFALSEBK_EquityLinkedFXO_Units_Range (creates a range object)
PositionFALSEBK_EquityLinkedFXO_Position_Range (creates a range object)
CallPutFALSEBK_EquityLinkedFXO_CallPut_Range (creates a range object)
EFALSEBK_EquityLinkedFXO_E_Range (creates a range object)
SFALSEBK_EquityLinkedFXO_S_Range (creates a range object)
XFALSEBK_EquityLinkedFXO_X_Range (creates a range object)
TFALSEBK_EquityLinkedFXO_T_Range (creates a range object)
rFALSEBK_EquityLinkedFXO_r_Range (creates a range object)
rfFALSEBK_EquityLinkedFXO_rf_Range (creates a range object)
qFALSEBK_EquityLinkedFXO_q_Range (creates a range object)
vSFALSEBK_EquityLinkedFXO_vS_Range (creates a range object)
vEFALSEBK_EquityLinkedFXO_vE_Range (creates a range object)
rhoFALSEBK_EquityLinkedFXO_rho_Range (creates a range object)


Example range for parameter : ID

Within Excel, a range such as this can be passed directly into the ID parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : ID



CTQL.CTRangeData BK_EquityLinkedFXO_ID;


string[] arrBBK_EquityLinkedFXO_ID = {
"DEAL-11",
"DEAL-12",
"DEAL-13",
"DEAL-14",
"DEAL-15",
"DEAL-16",
"DEAL-17",
"DEAL-18",
"DEAL-19",
"DEAL-20",
"DEAL-21",
"DEAL-22",
"DEAL-23",
"DEAL-24",
"DEAL-25",
"DEAL-26",
"DEAL-27",
"DEAL-28",
"DEAL-29",
"DEAL-30"  //  Array Data

};

CTQL.StringVector arrBK_EquityLinkedFXO_ID =
new  CTQL.StringVector(arrBBK_EquityLinkedFXO_ID);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_ID = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_ID, false);


Example range for parameter : TAG

Within Excel, a range such as this can be passed directly into the TAG parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : TAG



CTQL.CTRangeData BK_EquityLinkedFXO_TAG;


string[] arrBBK_EquityLinkedFXO_TAG = {
"TAG1",
"TAG1",
"TAG1",
"TAG1",
"TAG1",
"TAG1",
"TAG1",
"TAG1",
"TAG1",
"TAG1",
"TAG2",
"TAG2",
"TAG2",
"TAG2",
"TAG2",
"TAG2",
"TAG2",
"TAG2",
"TAG2",
"TAG2"  //  Array Data

};

CTQL.StringVector arrBK_EquityLinkedFXO_TAG =
new  CTQL.StringVector(arrBBK_EquityLinkedFXO_TAG);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_TAG = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_TAG, false);


Example range for parameter : Ccy

Within Excel, a range such as this can be passed directly into the Ccy parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : Ccy



CTQL.CTRangeData BK_EquityLinkedFXO_Ccy;


string[] arrBBK_EquityLinkedFXO_Ccy = {
"GBP",
"EUR",
"GBP",
"EUR",
"GBP",
"EUR",
"GBP",
"EUR",
"GBP",
"EUR",
"GBP",
"EUR",
"GBP",
"EUR",
"GBP",
"EUR",
"GBP",
"EUR",
"GBP",
"GBP"  //  Array Data

};

CTQL.StringVector arrBK_EquityLinkedFXO_Ccy =
new  CTQL.StringVector(arrBBK_EquityLinkedFXO_Ccy);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_Ccy = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_Ccy, false);


Example range for parameter : Units

Within Excel, a range such as this can be passed directly into the Units parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : Units



CTQL.CTRangeData BK_EquityLinkedFXO_Units;


int[] arrBBK_EquityLinkedFXO_Units = {
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1  //  Array Data

};

CTQL.IntVector arrBK_EquityLinkedFXO_Units =
new  CTQL.IntVector(arrBBK_EquityLinkedFXO_Units);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_Units = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_Units, false);


Example range for parameter : Position

Within Excel, a range such as this can be passed directly into the Position parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : Position



CTQL.CTRangeData BK_EquityLinkedFXO_Position;


string[] arrBBK_EquityLinkedFXO_Position = {
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG",
"LONG"  //  Array Data

};

CTQL.StringVector arrBK_EquityLinkedFXO_Position =
new  CTQL.StringVector(arrBBK_EquityLinkedFXO_Position);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_Position = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_Position, false);


Example range for parameter : CallPut

Within Excel, a range such as this can be passed directly into the CallPut parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : CallPut



CTQL.CTRangeData BK_EquityLinkedFXO_CallPut;


string[] arrBBK_EquityLinkedFXO_CallPut = {
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call",
"Call"  //  Array Data

};

CTQL.StringVector arrBK_EquityLinkedFXO_CallPut =
new  CTQL.StringVector(arrBBK_EquityLinkedFXO_CallPut);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_CallPut = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_CallPut, false);


Example range for parameter : E

Within Excel, a range such as this can be passed directly into the E parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : E



CTQL.CTRangeData BK_EquityLinkedFXO_E;


double[] arrBBK_EquityLinkedFXO_E = {
1.5672,
1.5382,
1.4926,
1.408,
1.4823,
1.6292,
1.4857,
1.6054,
1.6351,
1.4112,
1.4929,
1.4993,
1.382,
1.5592,
1.4582,
1.3513,
1.4577,
1.6126,
1.4315,
1.5  //  Array Data

};

CTQL.DoubleVector arrBK_EquityLinkedFXO_E =
new  CTQL.DoubleVector(arrBBK_EquityLinkedFXO_E);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_E = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_E, false);


Example range for parameter : S

Within Excel, a range such as this can be passed directly into the S parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : S



CTQL.CTRangeData BK_EquityLinkedFXO_S;


double[] arrBBK_EquityLinkedFXO_S = {
109.9517,
109.5514,
94.4765,
102.2781,
109.8926,
97.7414,
90.8686,
95.2162,
109.7356,
107.2406,
100.2859,
98.219,
91.9624,
91.854,
97.5638,
98.031,
102.5899,
94.7811,
109.3537,
100.0  //  Array Data

};

CTQL.DoubleVector arrBK_EquityLinkedFXO_S =
new  CTQL.DoubleVector(arrBBK_EquityLinkedFXO_S);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_S = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_S, false);


Example range for parameter : X

Within Excel, a range such as this can be passed directly into the X parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : X



CTQL.CTRangeData BK_EquityLinkedFXO_X;


double[] arrBBK_EquityLinkedFXO_X = {
1.547,
1.3912,
1.6331,
1.4129,
1.3742,
1.4417,
1.4421,
1.5732,
1.5999,
1.4566,
1.5249,
1.6256,
1.5284,
1.4905,
1.4335,
1.6411,
1.4212,
1.4613,
1.4328,
1.52  //  Array Data

};

CTQL.DoubleVector arrBK_EquityLinkedFXO_X =
new  CTQL.DoubleVector(arrBBK_EquityLinkedFXO_X);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_X = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_X, false);


Example range for parameter : T

Within Excel, a range such as this can be passed directly into the T parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : T



CTQL.CTRangeData BK_EquityLinkedFXO_T;


int[] arrBBK_EquityLinkedFXO_T = {
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy"),
CTQL.Date.serialNumber("17/1/2006", "dd/mm/yyyy")  //  Array Data

};

CTQL.IntVector arrBK_EquityLinkedFXO_T =
new  CTQL.IntVector(arrBBK_EquityLinkedFXO_T);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_T = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_T, false);


Example range for parameter : r

Within Excel, a range such as this can be passed directly into the r parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : r



CTQL.CTRangeData BK_EquityLinkedFXO_r;


double[] arrBBK_EquityLinkedFXO_r = {
0.0859,
0.0823,
0.0846,
0.074,
0.0759,
0.0746,
0.0805,
0.0757,
0.0747,
0.0868,
0.0858,
0.0821,
0.0727,
0.0767,
0.0721,
0.0831,
0.0816,
0.0824,
0.0741,
0.08  //  Array Data

};

CTQL.DoubleVector arrBK_EquityLinkedFXO_r =
new  CTQL.DoubleVector(arrBBK_EquityLinkedFXO_r);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_r = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_r, false);


Example range for parameter : rf

Within Excel, a range such as this can be passed directly into the rf parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : rf



CTQL.CTRangeData BK_EquityLinkedFXO_rf;


double[] arrBBK_EquityLinkedFXO_rf = {
0.0468,
0.0539,
0.0504,
0.0472,
0.0496,
0.0485,
0.0501,
0.0495,
0.0506,
0.0537,
0.0522,
0.0528,
0.0543,
0.0546,
0.0468,
0.05,
0.0525,
0.0533,
0.053,
0.05  //  Array Data

};

CTQL.DoubleVector arrBK_EquityLinkedFXO_rf =
new  CTQL.DoubleVector(arrBBK_EquityLinkedFXO_rf);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_rf = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_rf, false);


Example range for parameter : q

Within Excel, a range such as this can be passed directly into the q parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : q



CTQL.CTRangeData BK_EquityLinkedFXO_q;


double[] arrBBK_EquityLinkedFXO_q = {
0.0376,
0.0368,
0.0391,
0.038,
0.0398,
0.0407,
0.0386,
0.0403,
0.0408,
0.0397,
0.0369,
0.0369,
0.0373,
0.037,
0.0394,
0.0412,
0.0398,
0.0408,
0.0434,
0.04  //  Array Data

};

CTQL.DoubleVector arrBK_EquityLinkedFXO_q =
new  CTQL.DoubleVector(arrBBK_EquityLinkedFXO_q);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_q = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_q, false);


Example range for parameter : vS

Within Excel, a range such as this can be passed directly into the vS parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : vS



CTQL.CTRangeData BK_EquityLinkedFXO_vS;


double[] arrBBK_EquityLinkedFXO_vS = {
0.2132,
0.1805,
0.2133,
0.2085,
0.2094,
0.2052,
0.1894,
0.2197,
0.208,
0.2029,
0.186,
0.1906,
0.1832,
0.1831,
0.2173,
0.1912,
0.1875,
0.2016,
0.1981,
0.20  //  Array Data

};

CTQL.DoubleVector arrBK_EquityLinkedFXO_vS =
new  CTQL.DoubleVector(arrBBK_EquityLinkedFXO_vS);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_vS = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_vS, false);


Example range for parameter : vE

Within Excel, a range such as this can be passed directly into the vE parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : vE



CTQL.CTRangeData BK_EquityLinkedFXO_vE;


double[] arrBBK_EquityLinkedFXO_vE = {
0.1276,
0.1304,
0.1135,
0.1222,
0.1129,
0.1313,
0.1271,
0.1107,
0.113,
0.1194,
0.131,
0.1281,
0.1235,
0.122,
0.1232,
0.1099,
0.1172,
0.1139,
0.1146,
0.12  //  Array Data

};

CTQL.DoubleVector arrBK_EquityLinkedFXO_vE =
new  CTQL.DoubleVector(arrBBK_EquityLinkedFXO_vE);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_vE = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_vE, false);


Example range for parameter : rho

Within Excel, a range such as this can be passed directly into the rho parameter.


Data is stored within the second column (Vector of data)..

Example C# API usage for setting the range data for parameter : rho



CTQL.CTRangeData BK_EquityLinkedFXO_rho;


double[] arrBBK_EquityLinkedFXO_rho = {
-0.4085,
-0.3779,
-0.3964,
-0.3959,
-0.4076,
-0.3764,
-0.4338,
-0.365,
-0.4358,
-0.4252,
-0.3866,
-0.3884,
-0.4201,
-0.4087,
-0.4072,
-0.4339,
-0.3825,
-0.4057,
-0.3837,
-0.4  //  Array Data

};

CTQL.DoubleVector arrBK_EquityLinkedFXO_rho =
new  CTQL.DoubleVector(arrBBK_EquityLinkedFXO_rho);

// Second parameter determines whether the array is a column array (false) or a row array (true)
BK_EquityLinkedFXO_rho = new  CTQL.CTRangeData(arrBK_EquityLinkedFXO_rho, false);



Example function usage


The C# example below contains all the sub-function calls leading up to this function call. As a result, the example can contain a lot of code.

The VB.NET, J#, C++.NET, Java, Excel VBA, Visual Basic 6 (via COM) and C++ examples below contain function code stubs for the calls leading up to this function call. However, the function call for this function is displayed.
You can easily reproduce the stub functions code from the C# example.


If you are accessing this functrion via the MiniXL libraries, this function is present within the CT.QL.OptionPortfolios20 MiniXL Excel Addin.

Within our Excel Example Addin Generator, we have used the following QuantTools sub-functions in order to prepare the arguments needed to call the BK_EquityLinkedFXO() function. If you are executing this function via the MiniXL libraries, the module addin name, (in brackets, to the right of the sub-functions listed below), indicates the MiniXL library in which the sub-function is held. You will need to load this library into your Excel session (along with any other libraries that the sub-function call within the addin requires (ie - CT.QT.Utils20 addin in almost all cases) in order for the example to compute successfully.


The following four examples demostrate calling this function within a Microsoft .NET environment

The following four examples demostrate calling this function within a non .NET environment

The following is a sample output from executing the BK_EquityLinkedFXO() function call


MyBK_EquityLinkedFXODeal_40.EquityLinkedFXO.0

Copyright (c) 2003-2007 CapeTools - All Rights Reserved.