Options
- 1 Modeling a bear spread using Python A bear spread is formed by buying a put option at strike price K1, and selling a put option at K2 where K2 > K1. The python example forms a bear spread and computes the payoff for upward and downward price movements. 22 Mar 2019
- 2 Modeling of a box spread using Python The payoff the box spread is always k2-k1.It is constructed by a combination of a bull spread and a bear spread.The Python example models the payoffs of a box spread for upward and downward price movements. 25 Mar 2019
- 3 Modelling of a bull spread using Python A bull spread offers zero to limited profit potential in a bullish market. The Python example models a bull spread where initial St=4500 and K1=4600, K2=4700. It prints the option payoff for various upward and downward movements of the stock price. 22 Mar 2019
- 4 Modeling a butterfly spread using Python A butterfly spread involves buying a call option with strike price K1 and buying of another call option with strike price K2 and selling of two call options with strike price K3 in such a ways that k1<k2<k3. The Python examples models the butterfly spread for a stock and computes the payoffs for upward price momentum and downward price momentum. 22 Mar 2019