Monte Carlo Pricer

Value any payoff that you can write as a formula of the spot on a set of dates: averages, extremes, conditions, products.
The spot follows a geometric Brownian motion.

Market and Dates

iSpot, rate, dividend yield and volatility as in Black-Scholes. The path is simulated on \(n\) evenly spaced dates \(t_j = jT/n\), the last one at maturity \(T\). The payoff is paid at \(T\).

Payoff

iA formula for the payoff at maturity. Upper or lower case does not matter.

Variables: ST the spot at maturity, S0 the spot today, S1 to Sn the spot on the dates, Savg the average of S1 to Sn, Smax and Smin the highest and lowest of S0 to Sn.
Operators: + - * / ^ and comparisons < > <= >= == !=, which give 1 or 0. Multiply them to combine conditions.
Functions: max, min, abs, sqrt, log, exp, sin, cos, if(condition, a, b), constants pi and e.

Barriers are checked only on the dates. For a barrier watched all the time use the Path-Dependent Calculator.

Examples:
Call: max(ST - 100, 0)
Asian call on the average of the dates: max(Savg - 100, 0)
Lookback call, floating strike: ST - Smin
Down-and-out call, barrier 80 checked on the dates: max(ST - 100, 0) * (Smin > 80)
Digital call: ST > 100
Capped call on the best date: min(max(Smax - 100, 0), 30)
Power call: max(ST - 100, 0)^2 / 100
Pays 10 if the spot stays between 85 and 115: 10 * (Smin > 85) * (Smax < 115)