Logarithmischer Trendkanal (sichtbar, in Preisskala + Stilwahl)3. verbesserte Version des frei konfigurierbaren Trendkanals für log Charts
Indicadores e estratégias
Range & Pct Change Table (Interactive)Indicator creates an interactive element that displays two key metrics for any selected candle:
1. Range - The difference between high and low prices (H-L)
2. Percentage Change - The percent change from open to close ((C-O)/O × 100)
Key Features
- Interactive Reference Point: Users can select any candle as a reference point using the time input
- Customizable Table: The table can be shown/hidden and positioned in different chart locations
This indicator is particularly useful for quickly analyzing the volatility (range) and directional movement (percentage change) of specific candles without having to manually calculate these values.
MVRV | Lyro RS📊 MVRV | Lyro RS is a powerful on-chain valuation tool designed to assess the relative market positioning of Bitcoin (BTC) or Ethereum (ETH) based on the Market Value to Realized Value (MVRV) ratio. It highlights potential undervaluation or overvaluation zones, helping traders and investors anticipate cyclical tops and bottoms.
✨ Key Features :
🔁 Dual Asset Support: Analyze either BTC or ETH with a single toggle.
📐 Dynamic MVRV Thresholds: Automatically calculates median-based bands at 50%, 64%, 125%, and 170%.
📊 Median Calculation: Period-based median MVRV for long-term trend context.
💡 Optional Smoothing: Use SMA to smooth MVRV for cleaner analysis.
🎯 Visual Threshold Alerts: Background and bar colors change based on MVRV position relative to thresholds.
⚠️ Built-in Alerts: Get notified when MVRV enters under- or overvalued territory.
📈 How It Works :
💰 MVRV Calculation: Uses data from IntoTheBlock and CoinMetrics to obtain real-time MVRV values.
🧠 Threshold Bands: Median MVRV is used as a baseline. Ratios like 50%, 64%, 125%, and 170% signal various levels of market extremes.
🎨 Visual Zones: Green zones for undervaluation and red zones for overvaluation, providing intuitive visual cues.
🛠️ Custom Highlights: Toggle individual threshold zones on/off for a cleaner view.
⚙️ Customization Options :
🔄 Switch between BTC or ETH for analysis.
📏 Adjust period length for median MVRV calculation.
🔧 Enable/disable threshold visibility (50%, 64%, 125%, 170%).
📉 Toggle smoothing to reduce noise in volatile markets.
📌 Use Cases :
🟢 Identify undervalued zones for long-term entry opportunities.
🔴 Spot potential overvaluation zones that may precede corrections.
🧭 Use in confluence with price action or macro indicators for better timing.
⚠️ Disclaimer :
This indicator is for educational purposes only. It should not be used in isolation for making trading or investment decisions. Always combine with price action, fundamentals, and proper risk management.
StockLeave PullbackThe indicator is made to locate pullbacks that occur in response to momentum moves. It shows potential pullback setups based on envelopes, mean spread conditions and price structure. It provides a reference for discretionary interpretation, not a replacement for it.
Momentum Condition
When price remains inside the envelope, it is considered normal behavior based on recent conditions. When price touches or exceeds the outer envelope, constructed from the mean ± ATR multiplier, it could indicate directional pressure. This suggests that price is moving with enough force to exceed its recent average range, which could correspond to meaningful momentum.
Blue colors show upward momentum
Red colors show downward momentum
This marks a momentum move that could be of interest if a pullback develops.
Pullback Condition
After a momentum move has been identified, the indicator monitors for one of two standardized pullback conditions:
A reversion to the mean zone, low threshold ATR around the mean value
A zero-line spread convergence, where the difference between two MA’s contracts near zero
When either condition is met following a prior momentum move, a triangle is plotted on the chart to indicate that a pullback has occurred. This is limited to one signal per condition for each momentum move.
Applied Discretion
These visual cues do not imply that an entry should be taken; they simply indicate that a pullback location has been reached in response to a momentum move. Manual evaluation is still required to determine whether the setup aligns with structure and context:
Whether the trend structure remains intact
Whether the pullback is controlled
Whether the trade aligns with the broader context
If these conditions are met, entries can be made based on a preferred execution pattern, such as a break above or below the prior bar.
Trend Reversal
This indicator is made to locate pullbacks in response to a momentum move. It does not aim to capture a trend reversal phase, as those moves often require further price movement before structure can be confirmed. For this reason, there will be no plots in the earlier phase since price will not exceed the envelope.
The better approach for those scenarios is to observe price action in combination with the Momentum H/L indicator , which measures changes in momentum and highlights extremes that could lead to initiation or exhaustion.
Settings Overview
Pullback Mode
None: No triangles plotted (default)
Mean Zone: Triangle when price pulls back into the mean zone
Zero Line: Triangle when moving average spread contracts near zero
Dual: Plots one triangle per momentum move, based on the first condition met
Show Envelope: Toggle envelope visibility
Show Mean Zone: Toggle mean zone visibility
Bar Colors: Set colors for bars during momentum moves
Ehlers Ultimate Bands (UBANDS)UBANDS: ULTIMATE BANDS
🔍 OVERVIEW AND PURPOSE
Ultimate Bands, developed by John F. Ehlers, are a volatility-based channel indicator designed to provide a responsive and smooth representation of price boundaries with significantly reduced lag compared to traditional Bollinger Bands. Bollinger Bands typically use a Simple Moving Average for the centerline and standard deviations from it to establish the bands, both of which can increase lag. Ultimate Bands address this by employing Ehlers' Ultrasmooth Filter for the central moving average. The bands are then plotted based on the volatility of price around this ultrasmooth centerline.
The primary purpose of Ultimate Bands is to offer traders a clearer view of potential support and resistance levels that react quickly to price changes while filtering out excessive noise, aiming for nearly zero lag in the indicator band.
🧩 CORE CONCEPTS
Ultrasmooth Centerline: Employs the Ehlers Ultrasmooth Filter as the basis (centerline) for the bands, aiming for minimal lag and enhanced smoothing.
Volatility-Adaptive Width: The distance between the upper and lower bands is determined by a measure of price deviation from the ultrasmooth centerline. This causes the bands to widen during volatile periods and contract during calm periods.
Dynamic Support/Resistance: The bands serve as dynamic levels of potential support (lower band) and resistance (upper band).
🧮 CALCULATION AND MATHEMATICAL FOUNDATION
Ehlers' Original Concept for Deviation:
John Ehlers describes the deviation calculation as: "The deviation at each data sample is the difference between Smooth and the Close at that data point. The Standard Deviation (SD) is computed as the square root of the average of the squares of the individual deviations."
This describes calculating the Root Mean Square (RMS) of the residuals:
Smooth = UltrasmoothFilter(Source, Length)
Residuals = Source - Smooth
SumOfSquaredResiduals = Sum(Residuals ^2) for i over Length
MeanOfSquaredResiduals = SumOfSquaredResiduals / Length
SD_Ehlers = SquareRoot(MeanOfSquaredResiduals) (This is the RMS of residuals)
Pine Script Implementation's Deviation:
The provided Pine Script implementation calculates the statistical standard deviation of the residuals:
Smooth = UltrasmoothFilter(Source, Length) (referred to as _ehusf in the script)
Residuals = Source - Smooth
Mean_Residuals = Average(Residuals, Length)
Variance_Residuals = Average((Residuals - Mean_Residuals)^2, Length)
SD_Pine = SquareRoot(Variance_Residuals) (This is the statistical standard deviation of residuals)
Band Calculation (Common to both approaches, using their respective SD):
UpperBand = Smooth + (NumSDs × SD)
LowerBand = Smooth - (NumSDs × SD)
🔍 Technical Note: The Pine Script implementation uses a statistical standard deviation of the residuals (differences between price and the smooth average). Ehlers' original text implies an RMS of these residuals. While both measure dispersion, they will yield slightly different values. The Ultrasmooth Filter itself is a key component, designed for responsiveness.
📈 INTERPRETATION DETAILS
Reduced Lag: The primary advantage is the significant reduction in lag compared to standard Bollinger Bands, allowing for quicker reaction to price changes.
Volatility Indication: Widening bands indicate increasing market volatility, while narrowing bands suggest decreasing volatility.
Overbought/Oversold Conditions (Use with caution):
• Price touching or exceeding the Upper Band may suggest overbought conditions.
• Price touching or falling below the Lower Band may suggest oversold conditions.
Trend Identification:
• Price consistently "walking the band" (moving along the upper or lower band) can indicate a strong trend.
• The Middle Band (Ultrasmooth Filter) acts as a dynamic support/resistance level and indicates the short-term trend direction.
Comparison to Ultimate Channel: Ehlers notes that the Ultimate Band indicator does not differ from the Ultimate Channel indicator in any major fashion.
🛠️ USE AND APPLICATION
Ultimate Bands can be used similarly to how Keltner Channels or Bollinger Bands are used for interpreting price action, with the main difference being the reduced lag.
Example Trading Strategy (from John F. Ehlers):
Hold a position in the direction of the Ultimate Smoother (the centerline).
Exit that position when the price "pops" outside the channel or band in the opposite direction of the trade.
This is described as a trend-following strategy with an automatic following stop.
⚠️ LIMITATIONS AND CONSIDERATIONS
Lag (Minimized but Present): While significantly reduced, some minimal lag inherent to averaging processes will still exist. Increasing the Length parameter for smoother bands will moderately increase this lag.
Parameter Sensitivity: The Length and StdDev Multiplier settings are key to tuning the indicator for different assets and timeframes.
False Signals: As with any band indicator, false signals can occur, particularly in choppy or non-trending markets.
Not a Standalone System: Best used in conjunction with other forms of analysis for confirmation.
Deviation Calculation Nuance: Be aware of the difference in deviation calculation (statistical standard deviation vs. RMS of residuals) if comparing directly to Ehlers' original concept as described.
📚 REFERENCES
Ehlers, J. F. (2024). Article/Publication where "Code Listing 2" for Ultimate Bands is featured. (Specific source to be identified if known, e.g., "Stocks & Commodities Magazine, Vol. XX, No. YY").
Ehlers, J. F. (General). Various publications on advanced filtering and cycle analysis. (e.g., "Rocket Science for Traders", "Cycle Analytics for Traders").
Confluence of AlertsThis Pine Script code is designed to create an indicator called "Confluence of Alerts" that monitors multiple conditions across different timeframes and triggers alerts when all specified conditions are met simultaneously.
Regime Scope | mad_tiger_slayerRegimeScope by mad_tiger_slayer
Adapt to the Market’s Mood. Trade in Sync with Regime Scope.
Overview
Regime Scope is an advanced multi-factor market regime identifier meticulously engineered to determine whether an asset is exhibiting trending behavior (Markup/Markdown phases) or mean-reverting dynamics (Sideways - Accumulation/Distribution). By integrating and synthesizing outputs from nine rigorously chosen statistical and volatility-based models, this tool offers a unified framework for assessing regime conditions with precision.
This indicator is best used in conjunction with other tools in your trading arsenal—serving not as a standalone signal generator, but as a high-value filter for confluence and strategic alignment. Whether you're trading breakouts, reversals, or mean-reversion setups, Regime Scope can elevate your system’s contextual awareness and execution timing.
How It Works – Part 1
Regime Scope calculates a composite "regime score" by normalizing and averaging a range of volatility and statistical measures. This score, which ranges between -1 and +1, indicates the likelihood of the market being in a trending versus mean-reverting state.
Values near +1 suggest a strong trending environment.
Values near -1 suggest strong mean-reversion (sideways, volatile) conditions.
Values between -0.30 and +0.30 are considered neutral and indicate choppy or range-bound market behavior.
When the average regime score crosses above the upper threshold, the asset likely enters a trending state.
When it crosses below the lower threshold, the market likely shifts to a volatile, mean-reverting state.
The histogram and dynamic background color provide an intuitive visual guide to the current regime.
How It Works – Part 2: Components
Each of the following sub-models has been carefully selected for its contribution to understanding price behavior. All components are normalized to create a consistent, unified score:
Phillips-Perron Test: Detects the presence of a unit root to infer stationarity and mean-reverting characteristics.
Hurst Exponent: Measures long-term memory in a time series to identify persistence or anti-persistence.
KPSS Test: Tests for level stationarity to contrast against unit-root behavior and validate trending assumptions.
GARCH Volatility: Captures volatility clustering and regime shifts in conditional variance.
Wavelet Transform: Decomposes price action into time-frequency space to extract non-linear and localized dynamics.
Half-Life of Mean Reversion: Estimates the speed at which price returns to its mean, enhancing the timing of reversion plays.
Augmented Dickey-Fuller (ADF) Test: Statistically verifies whether a series exhibits mean-reverting tendencies.
Garman-Klass-Yang-Zhang Volatility: A robust historical volatility measure using open-high-low-close data.
ADX (Average Directional Index): A classic technical tool for quantifying the strength of trend directionality.
How It Works – Part 3: Output Interpretation
All sub-models are normalized and synthesized into a single histogram plot shown in the lower chart panel.
+1.0 to +0.30: Indicates high probability of a directional, trending market.
-1.0 to -0.30: Indicates high probability of a sideways, mean-reverting regime.
-0.30 to +0.30: Suggests a neutral, uncertain market condition.
Transitions above or below these thresholds signal regime shifts.
Background shading adapts in real-time to visually reflect regime classification.
Features
Customizable thresholds to fine-tune sensitivity for regime classification.
Visual overlay positioning (choose from top-left, bottom-right, etc.).
Toggleable reference lines for regime thresholds.
Cross-timeframe consistency through dynamic normalization.
Each sub-model includes adjustable settings for personalized optimization.
Use Cases
Dynamically switch between trend-following and mean-reversion strategies.
Filter out choppy, low-probability zones by avoiding neutral regime periods.
Use regime score as confluence with entry/exit signals from other indicators.
Adapt strategies across timeframes—works well from scalping to swing trading.
Best used on timeframes ≥12H for macro regime context, but scalpers can benefit by using it on shorter windows with tuned parameters.
Scalping Use Case
Overlay the regime score on low timeframes (e.g., 1m–15m) and use it to avoid high chop zones or confirm breakout volume spikes during trending periods.
Long-Term Use Case
On 1D–1W charts, Regime Scope can filter false breakouts and confirm macro trend alignment for position trades or swing setups.
Tip
Combine Regime Scope with traditional technical tools like RSI, MACD, Bollinger Bands, or moving average crossovers to enhance strategic coherence.
For example, only act on breakout or trend-following signals when the regime score exceeds the upper threshold, confirming a high-trend environment.
Conversely, mean-reversion strategies like fading RSI extremes or trading Bollinger Band bounces work best when the regime score is in the lower range.
Aligning your tactical entries with the broader regime can significantly reduce false signals, enhance trade probability, and improve overall system robustness.
Anchored Probability Cone by TenozenFirst of all, credit to @nasu_is_gaji for the open source code of Log-Normal Price Forecast! He teaches me alot on how to use polylines and inverse normal distribution from his indicator, so check it out!
What is this indicator all about?
This indicator draws a probability cone that visualizes possible future price ranges with varying levels of statistical confidence using Inverse Normal Distribution , anchored to the start of a selected timeframe (4h, W, M, etc.)
Feutures:
Anchored Cone: Forecasts begin at the first bar of each chosen higher timeframe, offering a consistent point for analysis.
Drift & Volatility-Based Forecast: Uses log returns to estimate market volatility (smoothed using VWMA) and incorporates a trend angle that users can set manually.
Probabilistic Price Bands: Displays price ranges with 5 customizable confidence levels (e.g., 30%, 68%, 87%, 99%, 99,9%).
Dynamic Updating: Recalculates and redraws the cone at the start of each new anchor period.
How to use:
Choose the Anchored Timeframe (PineScript only be able to forecast 500 bars in the future, so if it doesn't plot, try adjusting to a lower anchored period).
You can set the Model Length, 100 sample is the default. The higher the sample size, the higher the bias towards the overall volatility. So better set the sample size in a balanced manner.
If the market is inside the 30% conifidence zone (gray color), most likely the market is sideways. If it's outside the 30% confidence zone, that means it would tend to trend and reach the other probability levels.
Always follow the trend, don't ever try to trade mean reversions if you don't know what you're doing, as mean reversion trades are riskier.
That's all guys! I hope this indicator helps! If there's any suggestions, I'm open for it! Thanks and goodluck on your trading journey!
Bitcoin Power Law OscillatorThis is the oscillator version of the script. The main body of the script can be found here.
Understanding the Bitcoin Power Law Model
Also called the Long-Term Bitcoin Power Law Model. The Bitcoin Power Law model tries to capture and predict Bitcoin's price growth over time. It assumes that Bitcoin's price follows an exponential growth pattern, where the price increases over time according to a mathematical relationship.
By fitting a power law to historical data, the model creates a trend line that represents this growth. It then generates additional parallel lines (support and resistance lines) to show potential price boundaries, helping to visualize where Bitcoin’s price could move within certain ranges.
In simple terms, the model helps us understand Bitcoin's general growth trajectory and provides a framework to visualize how its price could behave over the long term.
The Bitcoin Power Law has the following function:
Power Law = 10^(a + b * log10(d))
Consisting of the following parameters:
a: Power Law Intercept (default: -17.668).
b: Power Law Slope (default: 5.926).
d: Number of days since a reference point(calculated by counting bars from the reference point with an offset).
Explanation of the a and b parameters:
Roughly explained, the optimal values for the a and b parameters are determined through a process of linear regression on a log-log scale (after applying a logarithmic transformation to both the x and y axes). On this log-log scale, the power law relationship becomes linear, making it possible to apply linear regression. The best fit for the regression is then evaluated using metrics like the R-squared value, residual error analysis, and visual inspection. This process can be quite complex and is beyond the scope of this post.
Applying vertical shifts to generate the other lines:
Once the initial power-law is created, additional lines are generated by applying a vertical shift. This shift is achieved by adding a specific number of days (or years in case of this script) to the d-parameter. This creates new lines perfectly parallel to the initial power law with an added vertical shift, maintaining the same slope and intercept.
In the case of this script, shifts are made by adding +365 days, +2 * 365 days, +3 * 365 days, +4 * 365 days, and +5 * 365 days, effectively introducing one to five years of shifts. This results in a total of six Power Law lines, as outlined below (From lowest to highest):
Base Power Law Line (no shift)
1-year shifted line
2-year shifted line
3-year shifted line
4-year shifted line
5-year shifted line
The six power law lines:
Bitcoin Power Law Oscillator
This publication also includes the oscillator version of the Bitcoin Power Law. This version applies a logarithmic transformation to the price, Base Power Law Line, and 5-year shifted line using the formula: log10(x) .
The log-transformed price is then normalized using min-max normalization relative to the log-transformed Base Power Law Line and 5-year shifted line with the formula:
normalized price = log(close) - log(Base Power Law Line) / log(5-year shifted line) - log(Base Power Law Line)
Finally, the normalized price was multiplied by 5 to map its value between 0 and 5, aligning with the shifted lines.
Interpretation of the Bitcoin Power Law Model:
The shifted Power Law lines provide a framework for predicting Bitcoin's future price movements based on historical trends. These lines are created by applying a vertical shift to the initial Power Law line, with each shifted line representing a future time frame (e.g., 1 year, 2 years, 3 years, etc.).
By analyzing these shifted lines, users can make predictions about minimum price levels at specific future dates. For example, the 5-year shifted line will act as the main support level for Bitcoin’s price in 5 years, meaning that Bitcoin’s price should not fall below this line, ensuring that Bitcoin will be valued at least at this level by that time. Similarly, the 2-year shifted line will serve as the support line for Bitcoin's price in 2 years, establishing that the price should not drop below this line within that time frame.
On the other hand, the 5-year shifted line also functions as an absolute resistance , meaning Bitcoin's price will not exceed this line prior to the 5-year mark. This provides a prediction that Bitcoin cannot reach certain price levels before a specific date. For example, the price of Bitcoin is unlikely to reach $100,000 before 2021, and it will not exceed this price before the 5-year shifted line becomes relevant. After 2028, however, the price is predicted to never fall below $100,000, thanks to the support established by the shifted lines.
In essence, the shifted Power Law lines offer a way to predict both the minimum price levels that Bitcoin will hit by certain dates and the earliest dates by which certain price points will be reached. These lines help frame Bitcoin's potential future price range, offering insight into long-term price behavior and providing a guide for investors and analysts. Lets examine some examples:
Example 1:
In Example 1 it can be seen that point A on the 5-year shifted line acts as major resistance . Also it can be seen that 5 years later this price level now corresponds to the Base Power Law Line and acts as a major support at point B(Note: Vertical yearly grid lines have been added for this purpose👍).
Example 2:
In Example 2, the price level at point C on the 3-year shifted line becomes a major support three years later at point D, now aligning with the Base Power Law Line.
Finally, let's explore some future price predictions, as this script provides projections on the weekly timeframe :
Example 3:
In Example 3, the Bitcoin Power Law indicates that Bitcoin's price cannot surpass approximately $808K before 2030 as can be seen at point E, while also ensuring it will be at least $224K by then (point F).
StockLeave Signal BarThe indicator identifies potential trade entries by highlighting expansion and reversal bars. These are defined by individual bar characteristics and refined by contextual factors such as price position relative to structural boundaries. The purpose is to locate bars that could indicate potential market initiation.
Expansion Bars
The expansion captures bars that breakout from a period of reduced volatility. These often initiate directional movement and are recognized using a two-part definition:
Range Expansion The current bar’s range must exceed the average range. This ensures the move is comparatively large and stands out from recent behavior.
Range Compression The bars before the expansion must be below a threshold of the average range. This confirms a low-volatility lead-up, strengthening the likelihood that the expansion has significance.
This script applies additional filters. A local breakout ensures price breaks the previous bar’s high or low. A strong close confirms directional intent by requiring the close near the bar’s extreme. Mean proximity checks that expansion starts near the mean price using a dynamic buffer relative to bar size. A directional filter blocks signals during extended directional runs. Consecutive suppression prevents multiple expansions to show in succession.
Reversal Bars
Reversal setups aim to identify potential turning points after price has reached a zone of imbalance or extension. These bars typically exhibit long tails and occur near structural boundaries such as the outer Keltner bands. Their design favors short-term price rejection and potential reversal.
Tail Dominance The wick must be at least twice the body and make up a significant portion of the bar’s total range, signaling strong rejection rather than indecision.
Close Location The close should be near the opposite end of the wick, near the low for bearish signals and near the high for bullish, confirming pressure in the reversal direction.
This script applies additional filters. Local extreme ensures the bar marks a local turning point to confirm reversals occur after extension, not within structure. Boundary proximity requires the bar to appear near the outer envelope, aligning bearish signals with the upper band and bullish with the lower, indicating price has reached an area of likely imbalance.
This section also incorporate snapback reversals, designed to capture failed extensions beyond structural boundaries. Unlike single-bar rejections, snapbacks use a two-bar sequence: a strong impulse bar that closes outside the envelope, followed by a reversal bar that closes back inside.
Alert Configuration
The Signal Bars indicator includes an alert function with two built-in conditions to help reduce screen time and focus attention when predefined conditions are met.
Expansion: Alerts when a bar meets all conditions for a valid expansion.
Reversal: Alerts when a bar meets the criteria for a pin bar or snapback reversal.
These are built into the indicator with the alertcondition() function and can be turned on whenever the indicator is applied to a chart. Each alert includes a default message that uses dynamic placeholders; {{ticker}} for the symbol and {{interval}} for the timeframe.
Create a new alert and select the condition “StockLeave Signal Bars.”
Then select from the two options: Expansion and Reversal.
For expansions, select “once per bar” to capture developing momentum.
For reversals, use “once per bar close” to confirm rejection setups.
Apply alerts across multiple timeframes to improve coverage. Lower timeframes are better suited for fast-moving markets, while higher timeframes work well in slower or more selective environments. This process only needs to be done once. The created alerts can then be toggled on or off from the Alerts panel as preferred, without requiring reconfiguration.
Applied Discretion
The indicator functions on fixed logic, but interpretation always takes precedence. Consider price action, structure, volatility, and broader market context. Most signals will not lead to trades; while many may appear in a session, only a select few will align with context and warrant execution based on discretion.
Bitcoin Power LawThis is the main body version of the script. The Oscillator version can be found here.
Understanding the Bitcoin Power Law Model
Also called the Long-Term Bitcoin Power Law Model. The Bitcoin Power Law model tries to capture and predict Bitcoin's price growth over time. It assumes that Bitcoin's price follows an exponential growth pattern, where the price increases over time according to a mathematical relationship.
By fitting a power law to historical data, the model creates a trend line that represents this growth. It then generates additional parallel lines (support and resistance lines) to show potential price boundaries, helping to visualize where Bitcoin’s price could move within certain ranges.
In simple terms, the model helps us understand Bitcoin's general growth trajectory and provides a framework to visualize how its price could behave over the long term.
The Bitcoin Power Law has the following function:
Power Law = 10^(a + b * log10(d))
Consisting of the following parameters:
a: Power Law Intercept (default: -17.668).
b: Power Law Slope (default: 5.926).
d: Number of days since a reference point(calculated by counting bars from the reference point with an offset).
Explanation of the a and b parameters:
Roughly explained, the optimal values for the a and b parameters are determined through a process of linear regression on a log-log scale (after applying a logarithmic transformation to both the x and y axes). On this log-log scale, the power law relationship becomes linear, making it possible to apply linear regression. The best fit for the regression is then evaluated using metrics like the R-squared value, residual error analysis, and visual inspection. This process can be quite complex and is beyond the scope of this post.
Applying vertical shifts to generate the other lines:
Once the initial power-law is created, additional lines are generated by applying a vertical shift. This shift is achieved by adding a specific number of days (or years in case of this script) to the d-parameter. This creates new lines perfectly parallel to the initial power law with an added vertical shift, maintaining the same slope and intercept.
In the case of this script, shifts are made by adding +365 days, +2 * 365 days, +3 * 365 days, +4 * 365 days, and +5 * 365 days, effectively introducing one to five years of shifts. This results in a total of six Power Law lines, as outlined below (From lowest to highest):
Base Power Law Line (no shift)
1-year shifted line
2-year shifted line
3-year shifted line
4-year shifted line
5-year shifted line
The six power law lines:
Bitcoin Power Law Oscillator
This publication also includes the oscillator version of the Bitcoin Power Law. This version applies a logarithmic transformation to the price, Base Power Law Line, and 5-year shifted line using the formula: log10(x) .
The log-transformed price is then normalized using min-max normalization relative to the log-transformed Base Power Law Line and 5-year shifted line with the formula:
normalized price = log(close) - log(Base Power Law Line) / log(5-year shifted line) - log(Base Power Law Line)
Finally, the normalized price was multiplied by 5 to map its value between 0 and 5, aligning with the shifted lines.
Interpretation of the Bitcoin Power Law Model:
The shifted Power Law lines provide a framework for predicting Bitcoin's future price movements based on historical trends. These lines are created by applying a vertical shift to the initial Power Law line, with each shifted line representing a future time frame (e.g., 1 year, 2 years, 3 years, etc.).
By analyzing these shifted lines, users can make predictions about minimum price levels at specific future dates. For example, the 5-year shifted line will act as the main support level for Bitcoin’s price in 5 years, meaning that Bitcoin’s price should not fall below this line, ensuring that Bitcoin will be valued at least at this level by that time. Similarly, the 2-year shifted line will serve as the support line for Bitcoin's price in 2 years, establishing that the price should not drop below this line within that time frame.
On the other hand, the 5-year shifted line also functions as an absolute resistance , meaning Bitcoin's price will not exceed this line prior to the 5-year mark. This provides a prediction that Bitcoin cannot reach certain price levels before a specific date. For example, the price of Bitcoin is unlikely to reach $100,000 before 2021, and it will not exceed this price before the 5-year shifted line becomes relevant. After 2028, however, the price is predicted to never fall below $100,000, thanks to the support established by the shifted lines.
In essence, the shifted Power Law lines offer a way to predict both the minimum price levels that Bitcoin will hit by certain dates and the earliest dates by which certain price points will be reached. These lines help frame Bitcoin's potential future price range, offering insight into long-term price behavior and providing a guide for investors and analysts. Lets examine some examples:
Example 1:
In Example 1 it can be seen that point A on the 5-year shifted line acts as major resistance . Also it can be seen that 5 years later this price level now corresponds to the Base Power Law Line and acts as a major support at point B (Note: Vertical yearly grid lines have been added for this purpose👍).
Example 2:
In Example 2, the price level at point C on the 3-year shifted line becomes a major support three years later at point D, now aligning with the Base Power Law Line.
Finally, let's explore some future price predictions, as this script provides projections on the weekly timeframe :
Example 3:
In Example 3, the Bitcoin Power Law indicates that Bitcoin's price cannot surpass approximately $808K before 2030 as can be seen at point E, while also ensuring it will be at least $224K by then (point F).
Urals Oil [METIS TRADE free]The "Urals Oil " indicator shows the price of Urals brand oil as a line.
This type of indicator allows you to see the correlation between the price of Urals oil and any other financial instrument, such as the rate of any currency.
You can fix this indicator on a separate panel and place it above or below your main chart.
G2 Money Supply (USD) - 10 Week Lead (Stocks & BTC)This script plots the G2 Money Supply (USD) with a 10-week leading offset, helping traders visualize global liquidity trends ahead of time. It aggregates M2 money supply from the US, Eurozone, China, Japan, and the UK, and converts them into USD using real-time FX rates.
Two leading views are provided:
50-bar offset (Blue Line): For use with traditional markets like stocks, indices, and Forex (5 trading days/week).
70-bar offset (Orange Line): For Crypto assets like Bitcoin, which trade 7 days/week.
This tool is ideal for macro-focused traders and investors who want to track the impact of global liquidity on risk assets like BTC, SPX, or QQQ. Use it to anticipate major market shifts tied to central bank policy, QE, or tightening cycles.
IU Three Line Strike Candlestick PatternIU Three Line Strike Candlestick Pattern
This indicator identifies the Three Line Strike candlestick pattern — a rare yet powerful 4-bar reversal setup that captures exhaustion and momentum shifts at the end of strong trends.
Pattern Logic:
The Three Line Strike is a 4-candle pattern that typically signals a sharp reversal after a sustained directional move. This script detects both bullish and bearish variations using strict criteria to ensure accuracy.
Bullish Three Line Strike:
* Previous three candles must be bearish (red)
* Each of these candles must close progressively lower (indicating a strong downtrend)
* The current candle must:
* Be bullish (green)
* Open below the prior close
* Completely engulf the previous three candles by closing above the first candle's open
* And make a higher high than the last 3 bars — confirming a strong reversal
* Once confirmed, a green shaded box is drawn around the 4-bar zone to highlight the pattern
Bearish Three Line Strike:
* Previous three candles must be bullish (green)
* Each must close progressively higher (indicating a strong uptrend)
* The current candle must:
* Be bearish (red)
* Open above the prior close
* Completely engulf the prior three candles by closing below the first candle's open
* And make a lower low than the last 3 bars — confirming downside strength
* A red shaded box is plotted around the 4-bar formation to emphasize the reversal zone
Why this is unique:
Most candlestick tools focus on 1–2 bar patterns. The Three Line Strike goes a step further by combining trend exhaustion (3 same-colored candles) with a full reversal engulfing candle. This pattern is both rare and highly expressive of sentiment shift, making it a standout signal for discretionary and algorithmic traders alike.
How users can benefit:
* High-probability setups: Filters out weak signals using multi-bar confirmation logic
* Clear visual cues: Dynamic shaded boxes and labels make spotting reversals effortless
* Cross-timeframe compatible: Works on intraday and higher timeframes across all markets
* Real-time alerts: Get notified instantly when a bullish or bearish setup forms
This indicator is a valuable addition for traders who want to capture key reversals backed by strong multi-bar price action logic. Whether you are a price action purist or a pattern-based strategist, the IU Three Line Strike gives you a reliable edge.
Disclaimer:
This script is for educational purposes only and does not constitute financial advice. Trading involves risk, and past performance is not indicative of future results. Always do your own research and consult with a licensed financial advisor before making trading decisions.
VWAP + Engulfing CandlesHere’s a clear breakdown of what your merged Pine Script does:
---
### 📌 **Indicator Name: VWAP + Engulfing Candles**
* This custom TradingView indicator **plots VWAP (Volume Weighted Average Price)** along with **up to 3 dynamic bands** around it.
* It also **detects Bullish and Bearish Engulfing Candlestick Patterns**, displaying visual markers and triggering alerts.
---
## 🔹 **1. VWAP Section**
### ➤ **Main Features:**
* Calculates VWAP anchored to a **customizable time period**:
* Options: Session, Week, Month, Quarter, Year, Decade, Century, Earnings, Dividends, Splits.
* Optional **hiding of VWAP on Daily/Weekly/Monthly charts** to reduce clutter.
### ➤ **Bands Around VWAP:**
* Up to **3 bands** can be plotted above and below the VWAP.
* Bands can be based on either:
* **Standard Deviation** of the price from VWAP (volatility-based), or
* **Percentage** deviation from VWAP (fixed range).
* You can control:
* Whether each band is shown
* Band width via multiplier (e.g., 1x, 2x, 3x)
### ➤ **Plot Colors:**
* VWAP: Blue
* Bands: Green (1x), Olive (2x), Teal (3x)
* Band fill areas are semi-transparent.
---
## 🔹 **2. Engulfing Candlestick Pattern Detector**
### ➤ **Bullish Engulfing Criteria:**
* Current candle opens **below** or **equal to** the close of the previous candle.
* Current candle opens **below** the previous candle's open.
* Current candle closes **above** the previous candle’s open.
### ➤ **Bearish Engulfing Criteria:**
* Current candle opens **above** or **equal to** the close of the previous candle.
* Current candle opens **above** the previous candle’s open.
* Current candle closes **below** the previous candle’s open.
### ➤ **Visual Signals:**
* 🔼 Green triangle **below bar** for **Bullish Engulfing**
* 🔽 Red triangle **above bar** for **Bearish Engulfing**
### ➤ **Alerts:**
* The script includes two alert conditions:
* One for Bullish Engulfing
* One for Bearish Engulfing
These alerts can be used to automate notifications for potential reversal points.
---
## 🛠️ **Use Cases**
* **Trend following or reversal spotting**: VWAP helps identify the average trading price; engulfing patterns often signal reversals.
* **Intraday and swing trading**: Works best on timeframes like 5m, 15m, 1h for intraday, or 4h, 1D for swing.
* **Mean reversion strategies**: Bands help spot overbought/oversold areas relative to VWAP.
VWMA and SMA Crossover AlertUsing SMA and VWMA to find crossovers for buy and sell signals. The indicator has a bult in buy sell signal.
ETH Z-Pulse | QuantumResearchETH Z-Pulse | QuantumResearch
📉 Ethereum On-Chain Z-Score Composite for Trend Detection
ETH Z-Pulse is a custom on-chain valuation indicator developed by QuantumResearch, designed to identify key trend shifts in Ethereum based on three powerful on-chain metrics: NUPL, SOPR, and MVRV. It computes a composite Z-Score signal to detect statistically significant bullish or bearish phases in the market.
🔍 Core Components:
📈 NUPL Z-Score — Measures Unrealized Profit/Loss using Glassnode’s Market Cap vs. Realized Cap
📊 SOPR Z-Score — Spent Output Profit Ratio smoothed with an EMA filter
📉 MVRV Z-Score — Market Value to Realized Value comparison for Ethereum
The result is a single composite oscillator (On_chainz) that dynamically signals trend strength and valuation extremes.
⚙️ Signal Logic:
Bullish (Long Bias): When the composite Z-Score > +0.83
Bearish (Short Bias): When the Z-Score < -0.58
Neutral Zone: Values between thresholds (continuous signal)
Color-coded plots and chart bars visually highlight trend shifts and help distinguish accumulation vs. distribution phases.
🧠 Use Case:
Ideal for:
Long-term investors looking to assess ETH valuation cycles
Swing traders seeking macro trend confirmation
Analysts comparing on-chain signals with technical setups
📌 Technical Notes:
Requires on-chain data feeds from Glassnode and CoinMetrics
Designed specifically for Ethereum (ETH) on daily timeframe
Customizable Z-Score lengths for fine-tuning
Non-overlay indicator
⚠️ Disclaimer:
This tool is for educational and research purposes only.
Past performance is not indicative of future results.
On-chain metrics are probabilistic, not predictive. Always combine with other forms of analysis and risk management.
Not financial advice.
📊 Portfolio TrackerPortfolio Tracker
🧠 How This Script Works
This Pine Script generates a dynamic portfolio table in the upper-right corner of your chart. It:
Monitors your positions in: BTC, SOL, ADA, XRP, and XAU (Gold).
Calculates for each asset:
Current value,
Profit/Loss in your currency ,
Percentage change.
Color-coded output:
🟢 Green = Profit
🔴 Red = Loss
Automatically updates every few candles.
Tracks total portfolio value, PnL, and % return.
Triggers custom alerts when:
Total portfolio profit exceeds +5% or +10%.
🛠️ How to Customize It for Your Own Portfolio
🔹 1. Update your personal asset data
Inside the // === INPUTS === section of the code, modify these lines:
btc1_qty = 0.0013
btc1_entry = 72831.80
Repeat for each asset you own:
Replace xxx_qty with your amount.
Replace xxx_entry with your buy price (in your currency).
Make sure the request.security(...) line fetches the correct symbol.
🔹 2. Add more assets (optional)
Duplicate any block like ADA and change the variable names and symbols:
new_qty = ...
new_entry = ...
new_price = request.security("BINANCE:NEWTOKENUSD", timeframe.period, close)
Also include the new asset in:
total_pnl += ...
total_value_now += ...
total_cost += ...
The table.cell(...) block to show it in the table.
Why This Tool Rocks
Tracks all your holdings in one chart panel.
Requires no API or external data feed.
Real-time updates based on TradingView chart prices.
Fully editable and extendable to any other token or asset.
Liquidity + OB + FVG + Market Structure [v2]BB, RSI, and 9 and/ 200 SMA. Alongside with confirmations showing Liquidity sweep + OB + FVG + Bos/Choch. Smart Money traders perceptions!