Bribri333

Liquidity Pair Impermanent Asset Loss

Bribri333 已更新   
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..
發布通知:
Calculation Output Error Fixed. Code Cleaned up.
發布通知:
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.
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?