loxx

Garman-Klass-Yang-Zhang Historical Volatility Bands [Loxx]

loxx ที่อัปเดต:   
Garman-Klass-Yang-Zhang Historical Volatility Bands are constructed using:

  • Average as the middle line.
  • Upper and lower bands using the Garman-Klass-Yang-Zhang Historical Volatility Bands for bands calculation.

What is Garman-Klass-Yang-Zhang Historical Volatility?
Yang and Zhang derived an extension to the Garman Klass historical volatility estimator that allows for opening jumps. It assumes Brownian motion with zero drift. This is currently the preferred version of open-high-low-close volatility estimator for zero drift and has an efficiency of 8 times the classic close-to-close estimator. Note that when the drift is nonzero, but instead relative large to the volatility, this estimator will tend to overestimate the volatility. The Garman-Klass-Yang-Zhang Historical Volatility calculation is as follows:

GKYZHV = sqrt((Z/n) * sum((log(open(k)/close(k-1)))^2 + (0.5*(log(high(k)/low(k)))^2) - (2*log(2) - 1)*(log(close(k)/open(2:end)))^2))

The color of the middle line, unlike the bands colors, has 3 colors. When colors of the bands are the same, then the middle line has the same color, otherwise it's white.

Included
  • Alerts
  • Signals
  • Loxx's Expanded Source Types
  • Bar coloring

Related Indicators
Garman & Klass Estimator Historical Volatility Bands
เอกสารเผยแพร่:
Garman-Klass-Yang-Zhang Historical Volatility isn't meant for intraday time frames, but you can use this for intraday now. You'll have to adjust the multiplier value to accommodate the asset. Forex will generally require a number of 10, other tickers a value of 100. Low sat coins a value less than 1 but greater than 0.
เอกสารเผยแพร่:
Updated to handle all timeframes and all tickers. gkyzvol() returns the pre-annualized percent volatility value to be injected into the bands calculation. enjoy!

Public Telegram Group, t.me/algxtrading_public

VIP Membership Info: www.patreon.com/algxtrading/membership
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?