Realized Price Profit/Loss Margin [VWAP Optimized]
Oct 10, 2024

The Realized Price Profit/Loss Margin [VWAP Optimized] indicator provides a volume-weighted approximation of Net Unrealized Profit/Loss (NUPL) to help traders identify market sentiment and potential price reversals based on participant profitability.
Usage
The Usage section focuses on interpreting the oscillator's position relative to the zero line and key threshold levels. When the oscillator is above zero, the market is in a state of net unrealized profit, often indicating bullish sentiment. Conversely, values below zero suggest the market is in an unrealized loss, which can signal capitulation or value opportunities.
Traders can use the specific horizontal lines to identify extreme market conditions:
- Positive Extremes (40%, 70%): These levels indicate high to extreme profitability, which historically aligns with market tops and periods of intense overextension.
- Negative Extremes (-12%, -37%): These levels represent deep value and extreme unrealized loss, often coinciding with market bottoms or accumulation phases.
Details
This tool utilizes a Volume Weighted Moving Average (VWMA) as a proxy for "Realized Price." In on-chain analysis, Realized Price represents the average price at which all coins last moved. By using VWAP/VWMA, this script approximates that value using only price and volume data available on the chart. This makes the concept of Net Unrealized Profit/Loss (NUPL) accessible on any timeframe or asset without requiring external on-chain data feeds. The result is a more responsive and volume-sensitive metric that reflects the "cost basis" of the market.
Settings
Main Settings
- Smoothing Length: Determines the period for the Simple Moving Average (SMA) applied to the final oscillator to reduce noise.
- Realized Price Length: Sets the lookback period for the VWMA used to estimate the market's realized price/cost basis.
FAQ
How do I use the Realized Price Profit/Loss Margin [VWAP Optimized]?
You can use it to gauge market overheating or capitulation by watching the oscillator move between the designated threshold lines. Green shading typically represents profit zones, while red shading represents loss zones.
What is the advantage of the VWAP optimization?
The VWAP optimization allows the indicator to stay responsive to price action and volume fluctuations, providing a real-time approximation of market profitability without the lag or data requirements of traditional on-chain metrics.
How can I access this tool?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.