Bribri333

Liquidity Pair Impermanent Asset Loss

Bribri333 Cập nhật   
With limited tracking of impermanent loss for liquidity pairs across all chains, I wanted a very simple display of live dollar value loss in an asset pair. This should allow you to set alerts based on how much you are down and take action if needed. The output column is by default set to show your losses in USD. For those that need it, I also setup an option to track the output in something other than USDT, e.g., GBP or ETH, etc..
Phát hành các Ghi chú:
Calculation Output Error Fixed. Code Cleaned up.
Phát hành các Ghi chú:
The more I consider LPs (liquidity pools), the more I realize impermanent loss is simply an incomplete snapshot of your total dollar loss at that minute. It doesn't account for opportunity costs. Case in point: I love Asset A, but I want earnings so I buy 50% of Asset B so I can enter the LP. I'm happily earning away seeing low total dollar losses, but ignorant of my dwindling supply of Asset A. So the question that should be answered is where would my investment be had I just kept Asset A all along. There's a checkbox to display this information now.
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?