The Yang Zhang extension of the Garman-Klass volatility is considered to be the second most precise method to evaluate ex-ante volatility. For all the people using Time Series Momentum (TSMOM) or Dual Momentum strategies, this volatility indicator is the main system to size positions.
Blue skies
1 2 3 4 5 6 7 8 9 10 11 12 13 |
//YANG-ZHANG extention of the GARMAN-KLASS volatility p=22 corr=sqrt(p/(p-1)) gkyzoc=log(open/close[1])*log(open/close[1]) gkyzhl=0.5*log(high/low)*log(high/low) gkyzco=(2*log(2)-1)*log(close/open)*log(close/open) gkyz=sqrt(summation[p](gkyzoc+gkyzhl-gkyzco))*sqrt(256/p) gkyzvolatility=gkyz*corr return gkyzvolatility as "Garman-Klass Yang-Zhang" |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials