Like any swap, you agree that at some point in the future you going to get paid the difference between some current level and the value that actually realizes. In this case, it would be the value of realized variance against the pre-agreed strike K:Can you kindly explain in layperson's language what is variance swap?
Code:
return[i] = log( SPX[i]/SPX[i-1] )
V = sum{i=1 to N} return[i]^2/N
pnl = Notional * (V - K^2)/(2*K)
100k * (17.8^2 - 64*2)/(2*17.8)

