Can anyone figure out how to get the historic and implied volatility chart percentages to match the ones on the Options Councils ivolatility chart (pls see S&P 500 images)?
In August, for example, on ivolatility implied volatility (IV) is higher than historic volatility (HV) until about half way through the month when HV rises above IV. On my version these two HV and IV lines initially never even crossed (pls see my PRT (NO RANK) image), so I amended the code to use Rank and only then can I get the lines to look something like the Options Council ivolatility chart, but then I don’t get the absolute % values like the peak of just over 20% IV in August on the right hand scale (my HV and IV are up near the 80% area because of Rank).
If I leave the Ranking out of the indicator code, the two IV and HV lines never hit 20% (in August) and in fact never even cross each other (pls see my PRT (NO RANK) image).
So are the HV and IV codes wrong or how do I get this code to work to either show absolute values like 15% or 20% (like ivolatility does) because without the Ranking code the IV only reaches around 10% and the HV seems to be about 5% too great at 25% when it shoudn’t be more than 20%?
RETURNHVolcoloured(r1,g1,b1)as"Historical Volatility",wvflevcoloured(r,g,b)style(line,3)as"Williams High IV Vix Fix",HVRcoloured(102,255,255)style(line,2)as"Historical Volatility Rank"
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue