Price European or American lookback options using Monte Carlo simulations

`[`

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`