I am calculating option delta using py_vollib.black_scholes
from py_vollib.black_scholes.greeks.analytical import delta
if option_type == 'call':
delta_calc = delta('c', S, K, t, r, sigma)
elif option_type == 'put':
delta_calc = delta('p', S, K, t, r, sigma)
How do I calculate the sigma? Do I need the closing process of the underlying for one year?
Please keep in my mind, I am a python programmer and I do not understand the math behind it.
σ is the standard deviation of continuously compounded annual returns of the stock, which is called volatility.
– Titu Feb 18 '24 at 19:58