OPEN-SOURCE SCRIPT

trailing_drawdown

已更新

Description:
Drawdown was a tool to measure historical risk, derived from measuring current wealth from its previous peak, casually from portfolio construction (weights allocation), will consider to having a minimum drawdown. In this indicator, the drawdown for individual assets is utilized to measure its value or percentage from its trailing peak (default to 1-yr period).

Drawdown:
drawdown = (price/peaks)-1

Feature:
  • Static: display drawdown as percentage
  • Dynamic: display drawdown as value
版本注释
Update chart

Feature:
快照
版本注释
a slight adjustment on the array, and add current-level horizontal line options
版本注释
.
版本注释
group and default lookback period adjustment
drawdownhistoricalriskHistorical VolatilityPortfolio managementriskstatistics

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明