Yuhui_w

Value-at-Risk

Value-at-Risk is a risk measurement tool widely used by banks and institutions.

This script uses historical simulation method for the calculation of VaR. The default settings are 250-days period. 1 percentile (or 99 percentile confidence level.)
This means the daily loss for the past 250 days should not exceed the risk measure 99% of the time.

traders can calculate the desired level of risk by converting the timeframe OR by multiplying the square root (expected holding period) to find out the VaR value for 5 days, 25 days, 250 days etc.

Do take note that the default assumes a long position, if you are taking a short position, the percentile value has to be adjusted accordingly (to find the worst 1 percent loss for shorts will require changing the input to 99)
Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?