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.
Informacje o Wersji:
Updated total amount calculation and font size
Informacje o Wersji:
Updated incremental step size
Informacje o Wersji:
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
Informacje o Wersji:
Fixed calculation bug and rounded total money value to 2 digits
Informacje o Wersji:
Fixed wrong calculation in profit USD