Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Price European or American lookback options using Monte Carlo simulations

```
[Price,Paths,Times,Z]
= lookbackbyls(RateSpec,StockSpec,OptSpec,Strike,Settle,ExerciseDates)
```

```
[Price,Paths,Times,Z]
= lookbackbyls(___,Name,Value)
```

`[`

returns prices of lookback options using the Longstaff-Schwartz model for Monte Carlo
simulations. `Price`

,`Paths`

,`Times`

,`Z`

]
= lookbackbyls(`RateSpec`

,`StockSpec`

,`OptSpec`

,`Strike`

,`Settle`

,`ExerciseDates`

)`lookbackbyls`

computes prices of European and American
lookback options.

For American options, the Longstaff-Schwartz least squares method calculates the early exercise premium.

`lookbackbyls`

calculates values of fixed- and floating-strike
lookback options. To compute the value of a floating-strike lookback option,
`Strike`

must be specified as `NaN`

.

[1] Hull, J. C. *Options, Futures, and Other Derivatives* 5th
Edition. Englewood Cliffs, NJ: Prentice Hall, 2002.

`intenvset`

| `lookbackbycvgsg`

| `lookbacksensbycvgsg`

| `lookbacksensbyls`

| `stockspec`