S&C 2012-12 | Using VIX To Forecast The S&P 500 (Gardner)
Author: Eugene
Creation Date: 11/8/2012 5:13 AM
profile picture

Eugene

#1
Code for S&C 2012-12 | Using VIX To Forecast The S&P 500 (Gardner) strategy published. For more details, please visit this Wiki link.

We recommend downloading it directly using the convenient "Strategy Download" feature (found in Wealth-Lab's "Open Strategy" dialog).



Requires latest version of the Community Indicators library.
profile picture

Eugene

#2
dicknorth asked:

When I down loaded the canned program
Using VIX to forecast the S&P...

I get this error

error CSO246- namespace name Community could not be found.
Not sure where to look for error correction.

This the first part of the code:

CODE:
Please log in to see this code.
profile picture

Eugene

#3
Next time you see an error, don't hesitate to read the Errors section. In particular:

Errors | Strategy > "Compiler error messages"

Reading the Strategy's description is also helpful:

TASC 2012-12 | Using VIX To Forecast The S&P 500 (Gardner)

QUOTE:
Counting how many times a DataSeries was above/below another DataSeries (e.g. a moving average) can be performed using the SeriesIsAbove/SeriesIsBelow indicators available in our "Community Indicators" library
...
The additional library is available for download to Wealth-Lab customers from our site www.wealth-lab.com ("Extensions" section).
profile picture

Eugene

#4
rmandel00 asked in a deleted duplicate thread (search the forum before creating threads, please):

QUOTE:
I downloaded this strategy and attempted to run it with SPY but get a runtime error
Object Reference not set to an instance of an object
At WealthLab.Strategies.Gardner 12_2012 Execute()
At WealthLab WealthSCript SetContext(String symbol.Boolean synchronize)
At WealthLAb.Bars.ctor(Bars b)

What is the problem and how can I fix it or how can I trace it down?
Thanks,
Rich Man
profile picture

Eugene

#5
You don't have the ^VIX data required by the code:

CODE:
Please log in to see this code.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).