esoliman2010

Entry Percent: Essam

This Pine Script code is designed to perform the task of computing and showcasing the profit percentage, profit value, and the duration for which a specific asset is held, all in real-time. The script effectively leverages the built-in resources to provide a seamless and robust experience, as it presents the calculated figures in an easily readable format on the chart, without causing any lag or disruptions to the chart.
Release Notes:
Updated total amount calculation and font size
Release Notes:
Updated incremental step size
Release Notes:
Updated the calculation so that the amount in specified in the number of units purchased from the given asset rather than the total value in USD
Release Notes:
Fixed calculation bug and rounded total money value to 2 digits
Release Notes:
Fixed wrong calculation in profit USD
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?