OPEN-SOURCE SCRIPT

EntryPrice Gain&Loss Indicator

Updated
This indicator takes (1) an entry price or average position price and (2) position size (denominator) to calculate current gain or loss and returns those as well as the position change in percent. It will also draw into the Chart and show relevant data in a table.

It is mainly supposed to help tracking an (average) spot position easily.

It is recommended to switch it to invisible when switching to other charts.
You can also use several instances of the indicator to track your positions in different assets.

snapshot

Features:
- table position and text size can be adjusted
- colors can be changed
(recommending 25% opacity for plot backgrounds)
- several instances possible
(recommended to tuen indicator invisible when switching to other charts or analyzing

Version 1.0
Release Notes
updated indicator with correct code
Portfolio managementpositionstatisticstracking

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer