How to creat VIX and TRIN
Author: ayc868
Creation Date: 7/22/2008 1:19 AM
profile picture

ayc868

#1

I have following codes
CODE:
Please log in to see this code.
profile picture

Eugene

#2
1. SetPrimarySeries = SetContext

2. SMASeries = SMA.Series

3. SubtractSeries = "-" e.g. Close - maVIX

4. DivideSeries = "/" e.g. DeltaVIX / ...

5. StdDevSeries = StdDev.Series

6. RestorePrimarySeries = RestoreContext
profile picture

Eugene

#3
In other words:

CODE:
Please log in to see this code.


Another way to calculate VIX:

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).