Realized Profit & Loss [BigBeluga]

The Realized Loss & Profit indicator aims to find potential dips and tops in price by utilizing the security function
syminfo.basecurrency + "_LOSSESADDRESSES".

The primary objective of this indicator is to present an average, favorable buying/selling opportunity based on the number of people currently in profit or loss.

The script takes into consideration the syminfo.basecurrency, so it should automatically adapt to the current coin.


Users have the option to enable the display of either Loss or Profit, depending on their preferred visualization.

Examples of displaying Losses:

Example of displaying Profits:


The concept aims to assign a score to the data in the ticker representing the realized losses. This score will provide users with an average of buying/selling points that are better to the typical investor.


Users have complete control over the script settings.

🔹 Calculation
• Profit: Display people in profit on an average of the selected length.
• Loss: Display people in loss on an average of the selected length.

🔹 Candle coloring
• True: Color the candle when data is above the threshold.
• False: Do not color the candle.

🔹 Levels
- Set the level of a specific threshold.
• Low: Low losses (green).
• Normal: Low normal (yellow).
• Medium: Low medium (orange).
• High: Low high (red).

🔹 Z-score Length: Length of the z-score moving window.
🔹 Threshold: Filter out non-significant values.
🔹 Histogram width: Width of the histogram.
🔹 Colors: Modify the colors of the displayed data.


• Since the ticker from which we obtain data works only on the daily timeframe, we are
restricted to displaying data solely from the 1D timeframe.

• If the coin does not have any realized loss data, we can't use this script.

Get Access to BigBeluga indicators:

Join our free discord for updates :

All scripts & content provided by BigBeluga are for informational & educational purposes only.
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.


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?