loxx

Parkinson's Historical Volatility Bands [Loxx]

loxx Atualizado   
Parkinson's Historical Volatility Bands are constructed using:

  • Average as the middle line.
  • Upper and lower bands using the Parkinson's historical volatility (instead of "regular" Historical Volatility) for bands calculation.

What is Parkinson's Historical Volatility?
The Parkinson's number, or High Low Range Volatility developed by the physicist, Michael Parkinson in 1980, aims to estimate the Volatility of returns for a random walk using the High and Low in any particular period. IVolatility.com calculates daily Parkinson values. Prices are observed on a fixed time interval: n = 10, 20, 30, 60, 90, 120, 150, 180 days.

  • SH is stock's High price in t day.
  • SL is stock's Low price in t day.
  • High/Low Return (xt^HL) is calculated as the natural logarithm of the ratio of a stock's High price to stock's Low price.
  • Return:
  • And Parkinson's number: 1 / (4 * math.log(2)) * 252 / n * Σ (n, t =1) {math.log(Ht/Lt)^2}

An important use of the Parkinson's number is the assessment of the distribution prices during the day as well as a better understanding of the market dynamics. Comparing the Parkinson's number and periodically sampled volatility helps traders understand the tendency towards mean reversion in the market as well as the distribution of stop-losses.

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
Notas de Lançamento:
Updated to handle all timeframes. This calculation is without annualized modification so that it's relevant to the current timeframe only.

Public Telegram Group, t.me/algxtrading_public

VIP Membership Info: www.patreon.com/algxtrading/membership
Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?