PROTECTED SOURCE SCRIPT
Cập nhật Hendo's Drawdown Calculator

Are you particularly good at buying tops and selling bottoms while being terrible at math?
Then here's your solution:
A basic script that automatically calculates and plots the drawdown between the highest high (or open/close) and the current price.
Best used on the higher time frames (so you can easily see where the "top is derived from". If it's used on an asset that hasn't topped out yet (unlike 90% of the altcoins) the calculations will not work (since it's not in drawdown).
Comes with 1 setting: The source that should be used to calculate the highest point in price. Options are: High, Close or Open. I've purposely left out "low" and "HL2/OHLC4" because they don't make much sense for a script like this.
Considerate use is advised for people with weak hands. Since the numbers can be overwhelming.
If you encounter any bugs or errors feel free to leave a comment. Enjoy!
Then here's your solution:
A basic script that automatically calculates and plots the drawdown between the highest high (or open/close) and the current price.
Best used on the higher time frames (so you can easily see where the "top is derived from". If it's used on an asset that hasn't topped out yet (unlike 90% of the altcoins) the calculations will not work (since it's not in drawdown).
Comes with 1 setting: The source that should be used to calculate the highest point in price. Options are: High, Close or Open. I've purposely left out "low" and "HL2/OHLC4" because they don't make much sense for a script like this.
Considerate use is advised for people with weak hands. Since the numbers can be overwhelming.
If you encounter any bugs or errors feel free to leave a comment. Enjoy!
Phát hành các Ghi chú
Fixed a small error in the display.Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.