Hey guys,
I am currently backtesting a volatility strategy in Excel 2007 and have stumbled upon some problems automating things. Seems hard to post a snapshot so I'm just gonna describe my sheet and problem...
Column 1: 20 day moving average of volatility
Column 2: 50 day moving average of volatility
Column 3: MA20/MA50 cross over or cross under, i.e. what generates buy/sell signal
Here I used =IF(G255>H255, "MA20/MA50 cross over", "MA20/MA50 cross under".
Column 4: MA20/MA50 signal
Here I used =IF(K256=K255,"","BUY") and THE FIRST PROBLEM here is that I obviously only get BUY SIGNALS even if it's a cross under. How do I get buy OR sell signal only for the instances where it changes from cross over to cross under or vice versa?
SECOND PROBLEM:
Column 5: Volatility index returns
When the 20 day MA crosses the 50 day MA (i.e. BUY/SELL signal), I want to automatically go LONG/SHORT the VIX-index (volatility) and measure the returns on these trades. Ideas on how to generate this without doing it manually?
Appreciate any help on this guys! Thanks in advance.
I am currently backtesting a volatility strategy in Excel 2007 and have stumbled upon some problems automating things. Seems hard to post a snapshot so I'm just gonna describe my sheet and problem...
Column 1: 20 day moving average of volatility
Column 2: 50 day moving average of volatility
Column 3: MA20/MA50 cross over or cross under, i.e. what generates buy/sell signal
Here I used =IF(G255>H255, "MA20/MA50 cross over", "MA20/MA50 cross under".
Column 4: MA20/MA50 signal
Here I used =IF(K256=K255,"","BUY") and THE FIRST PROBLEM here is that I obviously only get BUY SIGNALS even if it's a cross under. How do I get buy OR sell signal only for the instances where it changes from cross over to cross under or vice versa?
SECOND PROBLEM:
Column 5: Volatility index returns
When the 20 day MA crosses the 50 day MA (i.e. BUY/SELL signal), I want to automatically go LONG/SHORT the VIX-index (volatility) and measure the returns on these trades. Ideas on how to generate this without doing it manually?
Appreciate any help on this guys! Thanks in advance.