FinMath.Parity Method
Parameters
- P
- double
option price
- S
- double
spot price of underlying asset
- X
- double
option exercise (strike) price
- t
- double
time till exercise (fraction of year, f.ex. 0.5 for six months)
- r
- double
risk-free interst rate (continuous, decimal, f.ex. 0.1 for 10%)
- PutCall
- EPutCall
EPutCall.Call
EPutCall.Put
Return Value
double
This function returns parity price of corresponding put for EOptionType.kCall
Parity = P - (S-X*exp(-r*t))
This function returns parity price of corresponding call for EOptionType.kPut
Parity = P + (S-X*exp(-r*t))
Parity = P - (S-X*exp(-r*t))
This function returns parity price of corresponding call for EOptionType.kPut
Parity = P + (S-X*exp(-r*t))