JSterz

Realized Volatility

JSterz Güncellendi   
Realized / Historical Volatility
Calculates historical, i.e. realized volatility of any underlying. If frequency is not the daily, but for example 6h, 30min, weeks or months, it scales the initial setting to be suitable for the different time frame.

Examples with default settings (30 day volatility, 365 days per year):

A) Frequency = Daily:
Returns 30 day historical volatility, under the assumption that there are 365 trading days in a year.

B) Frequency = 6h:
Still returns 30 day historical volatility, under the assumption that there are 365 trading days in a year. However, since 6h granularity fits 4 times in 24 hours, it rescales the look back period to rather 30*4 = 120 units to still reflect 30 day historical volatility.
Sürüm Notları:
- there is originally by TradingView a mean adjustment in the stdev function (normal mean adjusted std deviation), now we use absolute variance
- now it is possible to use EWMA vol, which introduces a decay factor, this reduces the weight of price jumps in the past
Sürüm Notları:
Changed color and chart
Sürüm Notları:
Implemented multiple design and default changes. In particular now it selects basis = 365 automatically if the underlying is "crypto" and else uses a basis of 255. Please let me know if you want any other changes.
Sürüm Notları:
Minor bugfix
Sürüm Notları:
Changed default plot and added a tooltop.

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu betiğin yazarı, yatırımcının anlayabilmesi ve doğrulayabilmesi için onu açık kaynak olarak yayınladı. Yazarın eline sağlık! Bunu ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları ile yönetilir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?