Realized Profit & Loss [StratifyTrade]

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.

Join our free discord for updates :

All scripts & content provided by StratifyTrade are for informational & educational purposes only.

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。