We need to keep a few things in mind before we move on. REMEMBER this: We want to buy when implied volatility is low and sell when implied volatility is high. Moreover, we want to buy when implied volatility is less than historical volatility and sell when implied volatility is greater than historical volatility.

Lets go over the inputs for our model:

- Historical Stock Prices (a text file full of closing prices, similar to the Pair Trading Program)
- Current Stock Price
- Strike Price
- Days to Expiration
- Call or Put
- Listed Option Premium
- Listed Implied Volatility
- Delta Value
- Vega Value

- Historical/Statistical Volatility (annualized)
- Indicator as to whether HV/SV is greater than, less than, or equal to IV
- One Standard Deviation Range of Stock Prices based on IV (at expiration with standard normal curve)
- Volatility change needed to hit upper and lower bound of Standard Dev. Range based on Vega
- Corresponding new THEORETICAL option premium price after the hitting upper or lower bound of the range
- Profit Per Contract based on theoretical new option premium

- To calculate HV/SV, we will read in the last 30 data points for closing prices of a given security, we will make a list of the day to day price changes, then we will calculate the standard deviation of the list and annualize it by multiplying by the square root of 254.
- Now that we have a number for HV/SV, we will compare it to the IV number that was an input. If HV > IV, then we will output a BUY decision. If HV < IV, then we will output a SELL decision.
- We will take the Current Stock price that was given as an input, and we will multiply it by the Implied Volatility input and the square root of the days to expiration. Lastly, we will divide this number by the square root of 254, and add and subtract this number from the current price to get our range.
- After we have calculated an upper bound from step three, we will take the upper bound number and subtract the current stock price from it. Once we have this difference, we will multiply it by the delta value, then divide by the Vega value to come up with the necessary change in % of volatility.
- This was already calculated in the last step, but the new THEORETICAL option premium is equal to the current premium plus the difference in the current stock price and upper bound of the range calculated in step 3 multiplied by Delta.
- Simply, the theoretical option price minus the current option premium multiplied by 100.

I know this is a lot to digest...So again, if you have any question please email me at programtotrade@gmail.com

Part 3 will consist of links to the actual source code, as well as a demonstration of the tool using a current option.

## No comments:

## Post a Comment