Sorry, JavaScript must be enabled.
Change your browser options, then try again.

ThetaML Playground Learn more Thetaris Home
  Product Definition switch to Process Definition
Payoff
Strike (K)



Payoff type


Asian average


Maturity time (T)


Early Excercise enable
Barrier enable
Hedge enable

model product
import S "Stock price"
import EUR "Discount factor"
import K "Strike price"
import T "Maturity time"
export V "Option price"
export A "Asian average"

P = E(V!)

% Compute arithmetic average A of process S
fork
A = S; count = 1
loop T*250
Theta 1/250
A = (A*count)/(count+1) + S/(count+1)
count = count + 1
end
end

Theta T

V = max(K - AS,0)*EUR
V = max(AS - K,0)*EUR
end

Result Explorer
Estimated option price P = 1.27 +- 0.03 (risk-neutral expectation)
Probability density
 
Series of Paths
 
Histogram t=0
 
Histogram t=T