Bribri333

Liquidity Pair Eval

Bribri333 Updated   
While there are many tools for generating your impermanent loss in liquidity pools, depending on your choice of chain, I was mostly concerned about monitoring the creep between the pairs. This V0.1 attempt should give us a general comparison of the selected asset returns given your time period and also display the percent loss assuming the initial purchase price values are input correctly.

This is a work in progress and I am open to suggestions to make this even better.
Release Notes:
Minor IL formula corrections.
Release Notes:
Code cleanup. Bug fix.
Release Notes:
Correct Picture Update
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?