Ultimate Market Structure [Alpha Extract]Ultimate Market Structure  
A comprehensive market structure analysis tool that combines advanced swing point detection, imbalance zone identification, and intelligent break analysis to identify high-probability trading opportunities.Utilizing a sophisticated trend scoring system, this indicator classifies market conditions and provides clear signals for structure breaks, directional changes, and fair value gap detection with institutional-grade precision.
🔶  Advanced Swing Point Detection 
 
 Identifies pivot highs and lows using configurable lookback periods with optional close-based analysis for cleaner signals. The system automatically labels swing points as Higher Highs (HH), Lower Highs (LH), Higher Lows (HL), and Lower Lows (LL) while providing advanced classifications including "rising_high", "falling_high", "rising_low", "falling_low", "peak_high", and "valley_low" for nuanced market analysis.
 
 swingHighPrice = useClosesForStructure ? ta.pivothigh(close, swingLength, swingLength) : ta.pivothigh(high, swingLength, swingLength)
swingLowPrice = useClosesForStructure ? ta.pivotlow(close, swingLength, swingLength) : ta.pivotlow(low, swingLength, swingLength)
classification = classifyStructurePoint(structureHighPrice, upperStructure, true)
significance = calculateSignificance(structureHighPrice, upperStructure, true) 
🔶  Significance Scoring System 
 
 Each structure point receives a significance level on a 1-5 scale based on its distance from previous points, helping prioritize the most important levels. This intelligent scoring system ensures traders focus on the most meaningful structure breaks while filtering out minor noise.
 
🔶  Comprehensive Trend Analysis 
 
 Calculates momentum, strength, direction, and confidence levels using volatility-normalized price changes and multi-timeframe correlation. The system provides real-time trend state tracking with bullish (+1), bearish (-1), or neutral (0) direction assessment and 0-100 confidence scoring.
 
 // Calculate trend momentum using rate of change and volatility
calculateTrendMomentum(lookback) =>
    priceChange = (close - close ) / close  * 100
    avgVolatility = ta.atr(lookback) / close * 100
    momentum = priceChange / (avgVolatility + 0.0001)
    momentum
// Calculate trend strength using multiple timeframe correlation
calculateTrendStrength(shortPeriod, longPeriod) =>
    shortMA = ta.sma(close, shortPeriod)
    longMA = ta.sma(close, longPeriod)
    separation = math.abs(shortMA - longMA) / longMA * 100
    strength = separation * slopeAlignment 
 ❓How It Works 
🔶  Imbalance Zone Detection 
 
 Identifies Fair Value Gaps (FVGs) between consecutive candles where price gaps create unfilled areas. These zones are displayed as semi-transparent boxes with optional center line mitigation tracking, highlighting potential support and resistance levels where institutional players often react.
 
 // Detect Fair Value Gaps
detectPriceImbalance() =>
    currentHigh = high
    currentLow = low
    refHigh = high 
    refLow = low 
    
    if currentOpen > currentClose
        if currentHigh - refLow < 0
            upperBound = currentClose - (currentClose - refLow)
            lowerBound = currentClose - (currentClose - currentHigh)
            centerPoint = (upperBound + lowerBound) / 2
            
            newZone = ImbalanceZone.new(
                zoneBox = box.new(bar_index, upperBound, rightEdge, lowerBound, 
                                  bgcolor=bullishImbalanceColor, border_color=hiddenColor)
            ) 
🔶  Structure Break Analysis 
 
 Determines Break of Structure (BOS) for trend continuation and Directional Change (DC) for trend reversals with advanced classification as "continuation", "reversal", or "neutral". The system compares pre-trend and post-trend states for each break, providing comprehensive trend change momentum analysis.
 
  
🔶  Intelligent Zone Management 
 
 Features partial mitigation tracking when price enters but doesn't fully fill zones, with automatic zone boundary adjustment during partial fills. Smart array management keeps only recent structure points for optimal performance while preventing duplicate signals from the same level.
 
🔶 Liquidity Zone Detection 
 
 Automatically identifies potential liquidity zones at key structure points for institutional trading analysis. The system tracks broken structure points and provides adaptive zone extension with configurable time-based limits for imbalance areas.
 
🔶  Visual Structure Mapping 
 
 Provides clear visual indicators including swing labels with color-coded significance levels, dashed lines connecting break points with BOS/DC labels, and break signals for continuation and reversal patterns. The adaptive zones feature smart management with automatic mitigation tracking.
 
🔶  Market Structure Interpretation 
 
 HH/HL patterns indicate bullish market structure with trend continuation likelihood, while LH/LL patterns signal bearish structure with downtrend continuation expected. BOS signals represent structure breaks in trend direction for continuation opportunities, while DC signals warn of potential reversals.
 
  
🔶  Performance Optimization 
 
 Automatic cleanup of old structure points (keeps last 8 points), recent break tracking (keeps last 5 break events), and efficient array management ensure smooth performance across all timeframes and market conditions.
 
 Why Choose Ultimate Market Structure  ? 
This indicator provides traders with institutional-grade market structure analysis, combining multiple analytical approaches into one comprehensive tool. By identifying key structure levels, imbalance zones, and break patterns with advanced significance scoring, it helps traders understand market dynamics and position themselves for high-probability trade setups in alignment with smart money concepts. The sophisticated trend scoring system and intelligent zone management make it an essential tool for any serious trader looking to decode market structure with precision and confidence.
Bitcoin (Criptovaluta)
Wavelet-Trend ML Integration [Alpha Extract]Alpha-Extract Volatility Quality Indicator
The Alpha-Extract Volatility Quality (AVQ) Indicator provides traders with deep insights into market volatility by measuring the directional strength of price movements. This sophisticated momentum-based tool helps identify overbought and oversold conditions, offering actionable buy and sell signals based on volatility trends and standard deviation bands.
🔶 CALCULATION
The indicator processes volatility quality data through a series of analytical steps:
 
 Bar Range Calculation: Measures true range (TR) to capture price volatility.
 Directional Weighting: Applies directional bias (positive for bullish candles, negative for bearish) to the true range.
 VQI Computation: Uses an exponential moving average (EMA) of weighted volatility to derive the Volatility Quality Index (VQI).
 Smoothing: Applies an additional EMA to smooth the VQI for clearer signals.
 Normalization: Optionally normalizes VQI to a -100/+100 scale based on historical highs and lows.
 Standard Deviation Bands: Calculates three upper and lower bands using standard deviation multipliers for volatility thresholds.
 Signal Generation: Produces overbought/oversold signals when VQI reaches extreme levels (±200 in normalized mode). 
 
Formula:
 
 Bar Range = True Range (TR)
 Weighted Volatility = Bar Range × (Close > Open ? 1 : Close < Open ? -1 : 0)
 VQI Raw = EMA(Weighted Volatility, VQI Length)
 VQI Smoothed = EMA(VQI Raw, Smoothing Length)
 VQI Normalized = ((VQI Smoothed - Lowest VQI) / (Highest VQI - Lowest VQI) - 0.5) × 200
 Upper Band N = VQI Smoothed + (StdDev(VQI Smoothed, VQI Length) × Multiplier N)
 Lower Band N = VQI Smoothed - (StdDev(VQI Smoothed, VQI Length) × Multiplier N) 
 
🔶 DETAILS
Visual Features:
 
 VQI Plot: Displays VQI as a line or histogram (lime for positive, red for negative).
 Standard Deviation Bands: Plots three upper and lower bands (teal for upper, grayscale for lower) to indicate volatility thresholds.
 Reference Levels: Horizontal lines at 0 (neutral), +100, and -100 (in normalized mode) for context.
 Zone Highlighting: Overbought (⋎ above bars) and oversold (⋏ below bars) signals for extreme VQI levels (±200 in normalized mode).
 Candle Coloring: Optional candle overlay colored by VQI direction (lime for positive, red for negative). 
 Interpretation:
 VQI ≥ 200 (Normalized): Overbought condition, strong sell signal.
 VQI 100–200: High volatility, potential selling opportunity.
 VQI 0–100: Neutral bullish momentum.
 VQI 0 to -100: Neutral bearish momentum.
 VQI -100 to -200: High volatility, strong bearish momentum.
 VQI ≤ -200 (Normalized): Oversold condition, strong buy signal. 
 
🔶 EXAMPLES 
 
 Overbought Signal Detection: When VQI exceeds 200 (normalized), the indicator flags potential market tops with a red ⋎ symbol.
 Example: During strong uptrends, VQI reaching 200 has historically preceded corrections, allowing traders to secure profits. 
 Oversold Signal Detection: When VQI falls below -200 (normalized), a lime ⋏ symbol highlights potential buying opportunities.
 Example: In bearish markets, VQI dropping below -200 has marked reversal points for profitable long entries. 
 Volatility Trend Tracking: The VQI plot and bands help traders visualize shifts in market momentum.
 Example: A rising VQI crossing above zero with widening bands indicates strengthening bullish momentum, guiding traders to hold or enter long positions. 
 Dynamic Support/Resistance: Standard deviation bands act as dynamic volatility thresholds during price movements.
 Example: Price reversals often occur near the third standard deviation bands, providing reliable entry/exit points during volatile periods. 
 
🔶 SETTINGS
Customization Options:
 
 VQI Length: Adjust the EMA period for VQI calculation (default: 14, range: 1–50).
 Smoothing Length: Set the EMA period for smoothing (default: 5, range: 1–50).
 Standard Deviation Multipliers: Customize multipliers for bands (defaults: 1.0, 2.0, 3.0).
 Normalization: Toggle normalization to -100/+100 scale and adjust lookback period (default: 200, min: 50).
 Display Style: Switch between line or histogram plot for VQI.
 Candle Overlay: Enable/disable VQI-colored candles (lime for positive, red for negative).
  
The Alpha-Extract Volatility Quality Indicator empowers traders with a robust tool to navigate market volatility. By combining directional price range analysis with smoothed volatility metrics, it identifies overbought and oversold conditions, offering clear buy and sell signals. The customizable standard deviation bands and optional normalization provide precise context for market conditions, enabling traders to make informed decisions across various market cycles.
Bitcoin Power Law Clock [LuxAlgo]The Bitcoin Power Law Clock is a unique representation of Bitcoin prices proposed by famous Bitcoin analyst and modeler Giovanni Santostasi. 
It displays a clock-like figure with the Bitcoin price and average lines as spirals, as well as the 12, 3, 6, and 9 hour marks as key points in the cycle.
🔶  USAGE 
  
Giovanni Santostasi, Ph.D., is the creator and discoverer of the Bitcoin Power Law Theory. He is passionate about Bitcoin and has 12 years of experience analyzing it and creating price models.
As we can see in the above chart, the tool is super intuitive. It displays a clock-like figure with the current Bitcoin price at 10:20 on a 12-hour scale.
This tool only works on the 1D INDEX:BTCUSD chart. The ticker and timeframe must be exact to ensure proper functionality.
According to the Bitcoin Power Law Theory, the key cycle points are marked at the extremes of the clock: 12, 3, 6, and 9 hours. According to the theory, the current Bitcoin prices are in a frenzied bull market on their way to the top of the cycle.
🔹  Enable/Disable Elements 
  
All of the elements on the clock can be disabled. If you disable them all, only an empty space will remain.
The different charts above show various combinations. Traders can customize the tool to their needs.
🔹  Auto scale 
  
The clock has an auto-scale feature that is enabled by default. Traders can adjust the size of the clock by disabling this feature and setting the size in the settings panel.
The image above shows different configurations of this feature.
🔶  SETTINGS 
🔹  Price 
 
 Price: Enable/disable price spiral, select color, and enable/disable curved mode
 Average: Enable/disable average spiral, select color, and enable/disable curved mode
 
🔹  Style 
 
 Auto scale: Enable/disable automatic scaling or set manual fixed scaling for the spirals
 Lines width: Width of each spiral line
 Text Size: Select text size for date tags and price scales
 Prices: Enable/disable price scales on the x-axis
 Handle: Enable/disable clock handle
 Halvings: Enable/disable Halvings
 Hours: Enable/disable hours and key cycle points
 
🔹  Time & Price Dashboard 
 
 Show Time & Price: Enable/disable time & price dashboard
 Location: Dashboard location
 Size: Dashboard size
Bitcoin Power Law [LuxAlgo]The Bitcoin Power Law tool is a representation of Bitcoin prices first proposed by Giovanni Santostasi, Ph.D. It plots BTCUSD daily closes on a log10-log10 scale, and fits a linear regression channel to the data. 
This channel helps traders visualise when the price is historically in a zone prone to tops or located within a discounted zone subject to future growth.
🔶  USAGE 
  
Giovanni Santostasi, Ph.D. originated the Bitcoin Power-Law Theory; this implementation places it directly on a TradingView chart. The white line shows the daily closing price, while the cyan line is the best-fit regression. 
A channel is constructed from the linear fit root mean squared error (RMSE), we can observe how price has repeatedly oscillated between each channel areas through every bull-bear cycle.
  
Excursions into the upper channel area can be followed by price surges and finishing on a top, whereas price touching the lower channel area coincides with a cycle low.
  
Users can change the channel areas multipliers, helping capture moves more precisely depending on the intended usage.
 This tool only works on the daily  BTCUSD  chart. Ticker and timeframe must match exactly for the calculations to remain valid. 
🔹  Linear Scale 
Users can toggle on a linear scale for the time axis, in order to obtain a higher resolution of the price, (this will affect the linear regression channel fit, making it look poorer).
🔶  DETAILS 
One of the advantages of the Power Law Theory proposed by Giovanni Santostasi is its ability to explain multiple behaviors of Bitcoin. We describe some key points below.
🔹  Power-Law Overview 
A power law has the form  y = A·xⁿ , and Bitcoin’s key variables follow this pattern across many orders of magnitude. Empirically, price rises roughly with t⁶, hash-rate with t¹² and the number of active addresses with t³. 
When we plot these on log-log axes they appear as straight lines, revealing a scale-invariant system whose behaviour repeats proportionally as it grows.
🔹  Feedback-Loop Dynamics 
Growth begins with new users, whose presence pushes the price higher via a Metcalfe-style square-law. A richer price pool funds more mining hardware; the Difficulty Adjustment immediately raises the hash-rate requirement, keeping profit margins razor-thin. 
A higher hash rate secures the network, which in turn attracts the next wave of users. Because risk and Difficulty act as braking forces, user adoption advances as a power of three in time rather than an unchecked S-curve. This circular causality repeats without end, producing the familiar boom-and-bust cadence around the long-term power-law channel.
🔹  Scale Invariance & Predictions   
Scale invariance means that enlarging the timeline in log-log space leaves the trajectory unchanged. 
The same geometric proportions that described the first dollar of value can therefore extend to a projected million-dollar bitcoin, provided no catastrophic break occurs. Institutional ETF inflows supply fresh capital but do not bend the underlying slope; only a persistent deviation from the line would falsify the current model.
🔹  Implications   
The theory assigns scarcity no direct role; iterative feedback and the Difficulty Adjustment are sufficient to govern Bitcoin’s expansion. Long-term valuation should focus on position within the power-law channel, while bubbles—sharp departures above trend that later revert—are expected punctuations of an otherwise steady climb. 
Beyond about 2040, disruptive technological shifts could alter the parameters, but for the next order of magnitude the present slope remains the simplest, most robust guide.
 Bitcoin behaves less like a traditional asset and more like a self-organising digital organism whose value, security, and adoption co-evolve according to immutable power-law rules. 
🔶  SETTINGS 
🔹  General 
 
 Start Calculation: Determine the start date used by the calculation, with any prior prices being ignored. (default - 15 Jul 2010)  
 Use Linear Scale for X-Axis: Convert the horizontal axis from log(time) to linear calendar time  
 
🔹  Linear Regression 
 
 Show Regression Line: Enable/disable the central power-law trend line  
 Regression Line Color: Choose the colour of the regression line  
 Mult 1: Toggle line & fill, set multiplier (default +1), pick line colour and area fill colour  
 Mult 2: Toggle line & fill, set multiplier (default +0.5), pick line colour and area fill colour  
 Mult 3: Toggle line & fill, set multiplier (default -0.5), pick line colour and area fill colour  
 Mult 4: Toggle line & fill, set multiplier (default -1), pick line colour and area fill colour  
 
🔹  Style 
 
 Price Line Color: Select the colour of the BTC price plot  
 Auto Color: Automatically choose the best contrast colour for the price line  
 Price Line Width: Set the thickness of the price line (1 – 5 px)  
 Show Halvings: Enable/disable dotted vertical lines at each Bitcoin halving  
 Halvings Color: Choose the colour of the halving lines  
CHN BUY SELL with EMA 200Overview 
This indicator combines RSI 7 momentum signals with EMA 200 trend filtering to generate high-probability BUY and SELL entry points. It uses colored candles to highlight key market conditions and displays clear trading signals with built-in cooldown periods to prevent signal spam.
 Key Features 
Colored Candles: Visual momentum indicators based on RSI 7 levels
Trend Filtering: EMA 200 confirms overall market direction
Signal Cooldown: Prevents over-trading with adjustable waiting periods
Clean Interface: Simple BUY/SELL labels without clutter
 How It Works 
 Candle Coloring System 
Yellow Candles: Appear when RSI 7 ≥ 70 (overbought momentum)
Purple Candles: Appear when RSI 7 ≤ 30 (oversold momentum)
Normal Candles: All other market conditions
 Trading Signals 
BUY Signal: Triggered when closing price > EMA 200 AND yellow candle appears
SELL Signal: Triggered when closing price < EMA 200 AND purple candle appears
 Signal Cooldown 
After a BUY or SELL signal appears, the same signal type is suppressed for a specified number of candles (default: 5) to prevent excessive signals in ranging markets.
 Settings 
RSI 7 Length: Period for RSI calculation (default: 7)
RSI 7 Overbought: Threshold for yellow candles (default: 70)
RSI 7 Oversold: Threshold for purple candles (default: 30)
EMA Length: Period for trend filter (default: 200)
Signal Cooldown: Candles to wait between same signal type (default: 5)
 How to Use 
Apply the indicator to your chart
Look for yellow or purple colored candles
For LONG entries: Wait for yellow candle above EMA 200, then enter BUY when signal appears
For SHORT entries: Wait for purple candle below EMA 200, then enter SELL when signal appears
Use appropriate risk management and position sizing
 Best Practices 
Works best on timeframes M15 and higher
Suitable for Forex, Gold, Crypto, and Stock markets
Consider market volatility when setting stop-loss and take-profit levels
Use in conjunction with proper risk management strategies
 Technical Details 
Overlay: True (plots directly on price chart)
Calculation: Based on RSI momentum and EMA trend analysis
Signal Logic: Combines momentum exhaustion with trend direction
Visual Feedback: Colored candles provide immediate market condition awareness
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).
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).
PORTFOLIO TABLE Full [Titans_Invest]PORTFOLIO TABLE Full  
This is a complete table for monitoring your assets or cryptocurrencies in your SPOT wallet without needing to access your broker’s website or app.
 ⯁ HOW TO USE THIS TABLE❓ 
 
 Simply select the asset and enter the amount you hold.
 The table will display the value of each asset and the total value of your portfolio.
 You can monitor up to  19 assets  in real time.
 
 ⯁ CONVERT VALUES 
 
 You can also enable and select a currency for conversion.
 For example, cryptocurrencies are calculated in US dollars by default, but you can choose euros as the conversion currency.
 The values originally in dollars will then be displayed in euros.
 
 ⯁ TRACK THE DAILY VARIATION OF YOUR PORTFOLIO 
 
 You’ll be able to monitor your portfolio’s raw daily variation in real time.
 
 🔶 Track your Portfolio in real time: 
 🔶 Add your local Currency to Convert Values: 
 🔶 Follow your Portfolio Live: 
___________________________________________________________
📜 SCRIPT : PORTFOLIO TABLE Full  
🎴 Art by  : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy! 
___________________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
Bitcoin Weekend FadeThis indicator is a tool for setting a bias based on weekend price movements, with the assumption that the crypto market often experiences stronger moves over the weekend due to thinner order books. It helps identify potential fade opportunities, suggesting that price movements from Saturday and Sunday may reverse during the weekdays.
How to use:
Sets a bias based on weekend price action.
 
 Sets a bias based on weekend price action.
 Use weekday price action for confirmation before acting on the bias.
 Best suited for range-bound markets, where the price tends to revert to the mean.
 Avoid fading high-timeframe breakouts, as they often indicate strong trends.
PORTFOLIO TABLE Simple [Titans_Invest]PORTFOLIO TABLE Simple  
This is a simple table for you to monitor your assets or cryptocurrencies in your  SPOT  wallet without needing to access your broker’s website or wallet app.
 ⯁ HOW TO USE THIS TABLE❓ 
 
 You only need to select the asset and enter the amount of each one.
 The table will show how much you have of each asset and the total value of your portfolio.
 You’ll be able to monitor up to  39 assets  in real time.
 
 ⯁ CONVERT VALUES 
 
 You can also activate and select a currency for conversion.
 For example, cryptocurrency assets are calculated in US dollars, but you can select euros as the conversion currency.
 The values originally in dollars will then be displayed in euros.
 
 ⯁ Track your Portfolio in real time: 
 ⯁ Add your local Currency to Convert Values: 
 ⯁ Follow your Portfolio Live: 
___________________________________________________________
📜 SCRIPT : PORTFOLIO TABLE Simple  
🎴 Art by  : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy! 
___________________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
ADX Forecast [Titans_Invest]ADX Forecast  
This isn’t just another ADX indicator — it’s the most powerful and complete ADX tool ever created, and without question the best ADX indicator on TradingView, possibly even the best in the world.
ADX Forecast represents a revolutionary leap in trend strength analysis, blending the timeless principles of the classic ADX with cutting-edge predictive modeling. For the first time on TradingView, you can anticipate future ADX movements using scientifically validated linear regression — a true game-changer for traders looking to stay ahead of trend shifts.
1. Real-Time ADX Forecasting
By applying least squares linear regression, ADX Forecast projects the future trajectory of the ADX with exceptional accuracy. This forecasting power enables traders to anticipate changes in trend strength before they fully unfold — a vital edge in fast-moving markets.
2. Unmatched Customization & Precision
With 26 long entry conditions and 26 short entry conditions, this indicator accounts for every possible ADX scenario. Every parameter is fully customizable, making it adaptable to any trading strategy — from scalping to swing trading to long-term investing.
3. Transparency & Advanced Visualization
Visualize internal ADX dynamics in real time with interactive tags, smart flags, and fully adjustable threshold levels. Every signal is transparent, logic-based, and engineered to fit seamlessly into professional-grade trading systems.
4. Scientific Foundation, Elite Execution
Grounded in statistical precision and machine learning principles, ADX Forecast upgrades the classic ADX from a reactive lagging tool into a forward-looking trend prediction engine. This isn’t just an indicator — it’s a scientific evolution in trend analysis.
⯁  SCIENTIFIC BASIS LINEAR REGRESSION 
Linear Regression is a fundamental method of statistics and machine learning, used to model the relationship between a dependent variable y and one or more independent variables 𝑥.
The general formula for a simple linear regression is given by:
y = β₀ + β₁x + ε
β₁ = Σ((xᵢ - x̄)(yᵢ - ȳ)) / Σ((xᵢ - x̄)²)
β₀ = ȳ - β₁x̄
Where:
y   = is the predicted variable (e.g. future value of RSI)
x   = is the explanatory variable (e.g. time or bar index)
β0 = is the intercept (value of 𝑦 when 𝑥 = 0)
𝛽1 = is the slope of the line (rate of change)
ε   = is the random error term
The goal is to estimate the coefficients 𝛽0 and 𝛽1 so as to minimize the sum of the squared errors — the so-called Random Error Method Least Squares.
⯁  LEAST SQUARES ESTIMATION 
To minimize the error between predicted and observed values, we use the following formulas:
β₁ =   /  
β₀ = ȳ - β₁x̄
Where:
∑ = sum
x̄ = mean of x
ȳ = mean of y
x_i, y_i = individual values of the variables.
Where:
x_i and y_i are the means of the independent and dependent variables, respectively.
i ranges from 1 to n, the number of observations.
These equations guarantee the best linear unbiased estimator, according to the Gauss-Markov theorem, assuming homoscedasticity and linearity.
⯁  LINEAR REGRESSION IN MACHINE LEARNING 
Linear regression is one of the cornerstones of supervised learning. Its simplicity and ability to generate accurate quantitative predictions make it essential in AI systems, predictive algorithms, time series analysis, and automated trading strategies.
By applying this model to the ADX, you are literally putting artificial intelligence at the heart of a classic indicator, bringing a new dimension to technical analysis.
⯁  VISUAL INTERPRETATION 
Imagine an ADX time series like this:
Time →  
ADX  →  
The regression line will smooth these values and extend them n periods into the future, creating a predicted trajectory based on the historical moment. This line becomes the predicted ADX, which can be crossed with the actual ADX to generate more intelligent signals.
⯁  SUMMARY OF SCIENTIFIC CONCEPTS USED 
 
 Linear Regression Models the relationship between variables using a straight line.
 Least Squares Minimizes the sum of squared errors between prediction and reality.
 Time Series Forecasting Estimates future values based on historical data.
 Supervised Learning Trains models to predict outputs from known inputs.
 Statistical Smoothing Reduces noise and reveals underlying trends.
 
⯁  WHY THIS INDICATOR IS REVOLUTIONARY 
 
 Scientifically-based: Based on statistical theory and mathematical inference.
 Unprecedented: First public ADX with least squares predictive modeling.
 Intelligent: Built with machine learning logic.
 Practical: Generates forward-thinking signals.
 Customizable: Flexible for any trading strategy.
 
⯁  CONCLUSION 
By combining ADX with linear regression, this indicator allows a trader to predict market momentum, not just follow it.
ADX Forecast   is not just an indicator — it is a scientific breakthrough in technical analysis technology.
⯁ Example of simple linear regression, which has one independent variable:
⯁ In linear regression, observations ( red ) are considered to be the result of random deviations ( green ) from an underlying relationship ( blue ) between a dependent variable ( y ) and an independent variable ( x ).
⯁ Visualizing heteroscedasticity in a scatterplot against 100 random fitted values using Matlab:
⯁ The data sets in the Anscombe's quartet are designed to have approximately the same linear regression line (as well as nearly identical means, standard deviations, and correlations) but are graphically very different. This illustrates the pitfalls of relying solely on a fitted model to understand the relationship between variables.
⯁ The result of fitting a set of data points with a quadratic function:
_______________________________________________________________________
🥇 This is the world’s first ADX indicator with: Linear Regression for Forecasting 🥇_______________________________________________________________________
_________________________________________________
🔮 Linear Regression: PineScript Technical Parameters 🔮
_________________________________________________
Forecast Types:
• Flat: Assumes prices will remain the same.
• Linreg: Makes a 'Linear Regression' forecast for n periods.
Technical Information:
ta.linreg (built-in function)
Linear regression curve. A line that best fits the specified prices over a user-defined time period. It is calculated using the least squares method. The result of this function is calculated using the formula: linreg = intercept + slope * (length - 1 - offset), where intercept and slope are the values calculated using the least squares method on the source series.
Syntax:
• Function: ta.linreg()
Parameters:
• source: Source price series.
• length: Number of bars (period).
• offset: Offset.
• return: Linear regression curve.
This function has been cleverly applied to the RSI, making it capable of projecting future values based on past statistical trends.
______________________________________________________
______________________________________________________
 ⯁ WHAT IS THE ADX❓ 
The Average Directional Index (ADX) is a technical analysis indicator developed by J. Welles Wilder. It measures the strength of a trend in a market, regardless of whether the trend is up or down. 
The ADX is an integral part of the Directional Movement System, which also includes the Plus Directional Indicator (+DI) and the Minus Directional Indicator (-DI). By combining these components, the ADX provides a comprehensive view of market trend strength.
 ⯁ HOW TO USE THE ADX❓ 
The ADX is calculated based on the moving average of the price range expansion over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and has three main zones:
• Strong Trend:  When the ADX is above 25, indicating a strong trend. 
• Weak Trend:  When the ADX is below 20, indicating a weak or non-existent trend. 
• Neutral Zone:  Between 20 and 25, where the trend strength is unclear.
______________________________________________________
______________________________________________________
 ⯁ ENTRY CONDITIONS 
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
______________________________________________________
 🔹 CONDITIONS TO BUY 📈 
______________________________________________________
  •  Signal Validity: The signal will remain valid for  X bars .
  •  Signal Sequence: Configurable as  AND  or  OR .
🔹 +DI > -DI
🔹 +DI < -DI
🔹 +DI > ADX
🔹 +DI < ADX
🔹 -DI > ADX
🔹 -DI < ADX
🔹 ADX > Threshold
🔹 ADX < Threshold
🔹 +DI > Threshold
🔹 +DI < Threshold
🔹 -DI > Threshold
🔹 -DI < Threshold
🔹 +DI (Crossover) -DI
🔹 +DI (Crossunder) -DI
🔹 +DI (Crossover) ADX
🔹 +DI (Crossunder) ADX
🔹 +DI (Crossover) Threshold
🔹 +DI (Crossunder) Threshold
🔹 -DI (Crossover) ADX
🔹 -DI (Crossunder) ADX
🔹 -DI (Crossover) Threshold
🔹 -DI (Crossunder) Threshold
🔮 +DI (Crossover) -DI Forecast
🔮 +DI (Crossunder) -DI Forecast
🔮 ADX (Crossover) +DI Forecast
🔮 ADX (Crossunder) +DI Forecast
______________________________________________________
______________________________________________________
 🔸 CONDITIONS TO SELL 📉 
______________________________________________________
  •  Signal Validity: The signal will remain valid for  X bars .
  •  Signal Sequence: Configurable as  AND  or  OR .
🔸 +DI > -DI
🔸 +DI < -DI
🔸 +DI > ADX
🔸 +DI < ADX
🔸 -DI > ADX
🔸 -DI < ADX
🔸 ADX > Threshold
🔸 ADX < Threshold
🔸 +DI > Threshold
🔸 +DI < Threshold
🔸 -DI > Threshold
🔸 -DI < Threshold
🔸 +DI (Crossover) -DI
🔸 +DI (Crossunder) -DI
🔸 +DI (Crossover) ADX
🔸 +DI (Crossunder) ADX
🔸 +DI (Crossover) Threshold
🔸 +DI (Crossunder) Threshold
🔸 -DI (Crossover) ADX
🔸 -DI (Crossunder) ADX
🔸 -DI (Crossover) Threshold
🔸 -DI (Crossunder) Threshold
🔮 +DI (Crossover) -DI Forecast
🔮 +DI (Crossunder) -DI Forecast
🔮 ADX (Crossover) +DI Forecast
🔮 ADX (Crossunder) +DI Forecast
______________________________________________________
______________________________________________________
 🤖 AUTOMATION 🤖 
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
 ⯁ UNIQUE FEATURES 
______________________________________________________
 
 Linear Regression:  (Forecast) 
 Signal Validity: The signal will remain valid for  X bars 
 Signal Sequence: Configurable as  AND/OR 
 Condition Table: BUY/SELL
 Condition Labels: BUY/SELL
 Plot Labels in the Graph Above: BUY/SELL
 Automate and Monitor Signals/Alerts: BUY/SELL
 
 
 Linear Regression (Forecast)
 Signal Validity: The signal will remain valid for  X bars 
 Signal Sequence: Configurable as  AND/OR 
 Table of Conditions: BUY/SELL
 Conditions Label: BUY/SELL
 Plot Labels in the graph above: BUY/SELL
 Automate & Monitor Signals/Alerts: BUY/SELL
 
______________________________________________________
 📜 SCRIPT :  ADX Forecast  
🎴 Art by  : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy! 
______________________________________________________
 o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
Bitcoin Monthly Seasonality [Alpha Extract]The Bitcoin Monthly Seasonality indicator analyzes historical Bitcoin price performance across different months of the year, enabling traders to identify seasonal patterns and potential trading opportunities. This tool helps traders: 
 
 Visualize which months historically perform best and worst for Bitcoin.
 Track average returns and win rates for each month of the year. 
 Identify seasonal patterns to enhance trading strategies.
 Compare cumulative or individual monthly performance.
 
🔶 CALCULATION
The indicator processes historical Bitcoin price data to calculate monthly performance metrics
 Monthly Return Calculation 
Inputs: 
 
 Monthly open and close prices. 
 User-defined lookback period (1-15 years).
 Return Types: 
 Percentage: (monthEndPrice / monthStartPrice - 1) × 100 
 Price: monthEndPrice - monthStartPrice
 
 Statistical Measures 
 
 Monthly Averages: ◦ Average return for each month calculated from historical data.
 Win Rate: ◦ Percentage of positive returns for each month.
 Best/Worst Detection: ◦ Identifies months with highest and lowest average returns.
 
 Cumulative Option 
 
 Standard View: Shows discrete monthly performance.
 Cumulative View: Shows compounding effect of consecutive months.
 
Example Calculation (Pine Script):
 monthReturn = returnType == "Percentage" ? 
              (monthEndPrice / monthStartPrice - 1) * 100 : 
              monthEndPrice - monthStartPrice
calcWinRate(arr) =>
    winCount = 0
    totalCount = array.size(arr)
    if totalCount > 0
        for i = 0 to totalCount - 1
            if array.get(arr, i) > 0
                winCount += 1
        (winCount / totalCount) * 100
    else
        0.0 
🔶 DETAILS
 Visual Features 
 
 Monthly Performance Bars: ◦ Color-coded bars (teal for positive, red for negative returns). ◦ Special highlighting for best (yellow) and worst (fuchsia) months.
 Optional Trend Line: ◦ Shows continuous performance across months.
 Monthly Axis Labels: ◦ Clear month names for easy reference.
 Statistics Table: ◦ Comprehensive view of monthly performance metrics. ◦ Color-coded rows based on performance.
 
 Interpretation
 
 
 Strong Positive Months: Historically bullish periods for Bitcoin.
 Strong Negative Months: Historically bearish periods for Bitcoin.
 Win Rate Analysis: Higher win rates indicate more consistently positive months.
 Pattern Recognition: Identify recurring seasonal patterns across years.
 Best/Worst Identification: Quickly spot the historically strongest and weakest months.
 
🔶 EXAMPLES
The indicator helps identify key seasonal patterns
 
 Bullish Seasons: Visualize historically strong months where Bitcoin tends to perform well, allowing traders to align long positions with favorable seasonality.
 Bearish Seasons: Identify historically weak months where Bitcoin tends to underperform, helping traders avoid unfavorable periods or consider short positions.
 Seasonal Strategy Development: Create trading strategies that capitalize on recurring monthly patterns, such as entering positions in historically strong months and reducing exposure during weak months.
 Year-to-Year Comparison: Assess how current year performance compares to historical seasonal patterns to identify anomalies or confirmation of trends.
 
  
🔶 SETTINGS
Customization Options
 
 Lookback Period: Adjust the number of years (1-15) used for historical analysis.
 Return Type: Choose between percentage returns or absolute price changes.
 Cumulative Option: Toggle between discrete monthly performance or cumulative effect.
 Visual Style Options: Bar Display: Enable/disable and customize colors for positive/negative bars, Line Display: Enable/disable and customize colors for trend line, Axes Display: Show/hide reference axes.
 Visual Enhancement: Best/Worst Month Highlighting: Toggle special highlighting of extreme months, Custom highlight colors for best and worst performing months.
 
The Bitcoin Monthly Seasonality indicator provides traders with valuable insights into Bitcoin's historical performance patterns throughout the year, helping to identify potentially favorable and unfavorable trading periods based on seasonal tendencies.
ADX Full [Titans_Invest]ADX Full  
This is, without a doubt, the most complete ADX indicator available on TradingView — and quite possibly the most advanced in the world. We took the classic ADX structure and fully optimized it, preserving its essence while elevating its functionality to a whole new level. Every aspect has been enhanced — from internal logic to full visual customization. Now you can see exactly what’s happening inside the indicator in real time, with tags, flags, and informative levels. This indicator includes over  22 long entry conditions  and  22 short entry conditions , covering absolutely every possibility the ADX can offer. Everything is transparent, adjustable, and ready to fit seamlessly into any professional trading strategy. This isn’t just another ADX — it’s the definitive ADX, built for traders who take the market seriously.
 ⯁ WHAT IS THE ADX❓ 
The Average Directional Index (ADX) is a technical analysis indicator developed by J. Welles Wilder. It measures the strength of a trend in a market, regardless of whether the trend is up or down. 
The ADX is an integral part of the Directional Movement System, which also includes the Plus Directional Indicator (+DI) and the Minus Directional Indicator (-DI). By combining these components, the ADX provides a comprehensive view of market trend strength.
 ⯁ HOW TO USE THE ADX❓ 
The ADX is calculated based on the moving average of the price range expansion over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and has three main zones:
 
 Strong Trend:  When the ADX is above 25, indicating a strong trend.
 Weak Trend:  When the ADX is below 20, indicating a weak or non-existent trend.
 Neutral Zone:  Between 20 and 25, where the trend strength is unclear.
 
 ⯁ ENTRY CONDITIONS 
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
 🔹 CONDITIONS TO BUY 📈 
______________________________________________________
 •   Signal Validity: The signal will remain valid for  X bars .
 •   Signal Sequence: Configurable as  AND  or  OR .
🔹 +DI > -DI
🔹 +DI < -DI
🔹 +DI > ADX
🔹 +DI < ADX
🔹 -DI > ADX
🔹 -DI < ADX
🔹 ADX > Threshold
🔹 ADX < Threshold
🔹 +DI > Threshold
🔹 +DI < Threshold
🔹 -DI > Threshold
🔹 -DI < Threshold
🔹 +DI (Crossover) -DI
🔹 +DI (Crossunder) -DI
🔹 +DI (Crossover) ADX
🔹 +DI (Crossunder) ADX
🔹 +DI (Crossover) Threshold
🔹 +DI (Crossunder) Threshold
🔹 -DI (Crossover) ADX
🔹 -DI (Crossunder) ADX
🔹 -DI (Crossover) Threshold
🔹 -DI (Crossunder) Threshold
______________________________________________________
______________________________________________________
 🔸 CONDITIONS TO SELL 📉 
______________________________________________________
 •   Signal Validity: The signal will remain valid for  X bars .
 •   Signal Sequence: Configurable as  AND  or  OR .
🔸 +DI > -DI
🔸 +DI < -DI
🔸 +DI > ADX
🔸 +DI < ADX
🔸 -DI > ADX
🔸 -DI < ADX
🔸 ADX > Threshold
🔸 ADX < Threshold
🔸 +DI > Threshold
🔸 +DI < Threshold
🔸 -DI > Threshold
🔸 -DI < Threshold
🔸 +DI (Crossover) -DI
🔸 +DI (Crossunder) -DI
🔸 +DI (Crossover) ADX
🔸 +DI (Crossunder) ADX
🔸 +DI (Crossover) Threshold
🔸 +DI (Crossunder) Threshold
🔸 -DI (Crossover) ADX
🔸 -DI (Crossunder) ADX
🔸 -DI (Crossover) Threshold
🔸 -DI (Crossunder) Threshold
______________________________________________________
______________________________________________________
 🤖 AUTOMATION 🤖 
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
 ⯁ UNIQUE FEATURES 
______________________________________________________
 
 Signal Validity: The signal will remain valid for  X bars 
 Signal Sequence: Configurable as  AND/OR 
 Condition Table: BUY/SELL
 Condition Labels: BUY/SELL
 Plot Labels in the Graph Above: BUY/SELL
 Automate and Monitor Signals/Alerts: BUY/SELL
 
 
 Signal Validity: The signal will remain valid for  X bars 
 Signal Sequence: Configurable as  AND/OR 
 Table of Conditions: BUY/SELL
 Conditions Label: BUY/SELL
 Plot Labels in the graph above: BUY/SELL
 Automate & Monitor Signals/Alerts: BUY/SELL
 
______________________________________________________
 📜 SCRIPT :  ADX Full  
🎴 Art by  : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy! 
______________________________________________________
 o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
RTB - Momentum Breakout Strategy V3
📈 RTB - Momentum Breakout Strategy V3 is a directional breakout strategy based on momentum. It combines exponential moving averages (EMAs), RSI, and recent support/resistance levels to detect breakout entries with trend confirmation. The system includes dynamic risk management using ATR-based stop-loss and trailing stop levels. Webhook alerts are supported for external automated trading integrations.
🔎 The strategy was backtested using default parameters on BTCUSDT Futures (Bybit) with 4-hour timeframe and a 0.05% commission per trade.
⚠️ This script is for educational purposes only and does not constitute financial advice. Always do your own research before trading.
Global M2 Money Supply Top20 + Offset & WaveThe  M2 Top20  is a global aggregation of the M2 money supply from the  20 largest economies in the world , providing a comprehensive view of the total liquidity in the global financial system. It is expressed in trillions of USD.
This script calculates and visualizes the M2 Money Supply of the Top 20 Global Economies, adjusted to various timeframes (4H, 1D, 1W, 1M) with  customizable offset adjustments  (in days) from -1000 days to +1000 days. This indicator includes  data from the Americas, Europe, Africa, and the Asia Middle East , offering a diverse and balanced representation of major economic regions. The M2 of each country has been converted to USD.
Additionally, the user can set a minimum and maximum offset to create a wave around the main offset and expand the comparison.
Combining these options, this indicator enables users to visualize a range of the global money supply, making it useful for market analysis, economic forecasting, and understanding macroeconomic trends. This indicator is particularly valuable for traders and analysts interested in understanding the dynamics of global monetary systems and their potential impact on financial markets.
 Key Features: 
 
 Global M2 Money Supply calculation from the Top 20 Economies.
 Adjustable Offset: Adjust the offset to align the indicator with the best bar. Adjustment in days, usable on different timeframes (1D, 1W, 4H, 1M).
 Wave Projection: Displays a "probability cloud"—a smoothed area that shows the probable path of Bitcoin, derived from shifts in global liquidity.
 Min/Max Offset Adjustments: Customizable offsets allow you to determine the range of future windows, helping to shape the wave and better identify liquidity-driven turning points.
 
 Use Cases: 
 
 Economic Forecasting: Identify trends in global money supply and their potential market impact (e.g., historically leads Bitcoin price by +/- 78 days to +/-108 days).
 Market Analysis: Track the growth or contraction of money supply across key economies.
 Macro-Economic Analysis: Understand the relationship between monetary policies and market performance.
 
 How to use: 
 
 Add the indicator to your chart. 
 Set the timeframe to 1D to customize the offset. 
 Set the Offset (in days). 
 Set the Offset Range Minimum and Maximum. 
 Show/Hide the Range Wave
 .
 Use offset = 0 to have the indicator align directly with the current data, without any shift, providing a baseline for comparison with the most recent market conditions. 
 Countries included in the M2 Top20: 
China (CN), Japan (JP), South Korea (KR), Hong Kong (HK), Taiwan (TW), India (IN), Saudi Arabia (SA), Thailand (TH), Vietnam (VN), United Arab Emirates (AE), Malawi (MW) – Africa, United States (US), Canada (CA), Brazil (BR), Mexico (MX), Eurozone (EU), United Kingdom (GB), Russia (RU), Poland (PL), Switzerland (CH).
These countries were selected from the ranking of the  World Economy Indicator of Trading View .
Global M2 [BizFing]MARKETSCOM:BITCOIN   ECONOMICS:USM2  
This is an indicator designed to show the correlation between the global M2 money supply and Bitcoin.
This indicator basically provides a Global M2 index by summing the M2 money supply data from the United States, South Korea, China, Japan, the EU, and the United Kingdom.
Furthermore, it is configured to allow you to add or remove the M2 data of desired countries within the settings.
I hope this proves to be a small aid in predicting the future price of Bitcoin.
If you have any questions or require any improvements while using it, please feel free to contact me.
Thank you.
BTC Price-Volume Efficiency Z-Score (PVER-Z)Overview: 
This PVER-Z Score measures Bitcoin’s price movement efficiency relative to trading volume, normalized using a Z-Score over a long-term 200-day period.
It highlights statistically rare inefficiencies, helping investors spot extreme accumulation and distribution zones for systematic SDCA strategies.
 Concept: 
- Measures how efficiently price has moved relative to the volume that supported it over a long historical window (Default 200 days) but can be adjustable. 
- It compares cumulative price changes vs cumulative volume flow.
- Then normalizes those inefficiencies using Z-Score statistics.
 How It Works: 
1. Calculates the absolute daily price change divided by volume (price-volume efficiency ratio).
2. Applies EMA smoothing to remove noisy fluctuations.
3. Normalizes the result into a Z-Score to detect statistically significant outliers.
4. Plots dynamic heatmap colors as the efficiency score moves through different deviation zones.
5. Background fills appear when the Z-Score moves beyond ±2 to ±3 SD, signaling rare macro opportunities.
 Why is Bitcoin price rising while PVER-Z is falling toward green zone? 
1.  PVER-Z is not just "price" — it's price change relative to volume. PVER-Z measures how efficient the price movement is relative to volume. It's not "price going up" or "price going down" directly. It's how unusual or inefficient the price versus volume relationship is, compared to its historical average.
2. A rising Bitcoin price + weak efficiency = PVER-Z falls.
If Bitcoin rises but volume is super strong (normal buying volume), no problem, the PVER-Z stays normal. If Bitcoin rises but with very weak volume support, PVER-Z falls.
 ***Usage Notes***: 
- Best used on the daily timeframe or higher.
- When the Z-Score enters the green zone (-2 to -3 SD), it signals a historically rare accumulation zone — favoring long-term buying for SDCA.
- When the Z-Score enters the red zone (+2 to +3 SD), it signals overextended distribution — caution recommended. 
- Designed strictly for mean-reversion analysis, no trend-following signals.
- The red zone on a proper Z chart would be -2SD to -3SD and +2SD to +3SD for the green zone. At the time of publishing I do not know how to adjust the values on the indicator itself. The red zone at -2SD is actually +2 Standard Deviations on a Z Score SD Chart. (overbought zone).
- Your green zone at +2SD is actually -2SD Standard Deviations (oversold zone).
- Built manually with no reliance on built-in indicators
- Designed for Bitcoin on the 1D, 3D, or Weekly timeframes. NOT for intraday trading.
- DO NOT SOELY RELY ON THIS INDICATOR FOR YOUR LONG TERM VALUATION. I AM NOT RESPONSIBLE FOR YOUR FINANICAL ASSETS.
M2 Liqudity WaveGlobal Liquidity Wave Indicator (M2-Based)
The Global Liquidity Wave Indicator is designed to track and visualize the impact of global M2 liquidity on risk assets—especially those highly correlated to monetary expansion, like Bitcoin, MSTR, and other macro-sensitive equities.
Key features include:
 
 Leading Signal: Historically leads Bitcoin price action by approximately 70 days, offering traders and analysts a forward-looking edge.
 Wave-Based Projection: Visualizes a "probability cloud"—a smoothed band representing the most likely trajectory for Bitcoin based on changes in global liquidity.
 Min/Max Offset Controls: Adjustable offsets let you define the range of lookahead windows to shape the wave and better capture liquidity-driven inflection points.
 Explicit Offset Visualization: Option to manually specify an exact offset to fine-tune the overlay, ideal for testing hypotheses or aligning with macro narratives.
 Macro Alignment: Particularly effective for assets with high sensitivity to global monetary policy and liquidity cycles.
 This tool is not just a chart overlay—it's a lens into the liquidity engine behind the market, helping anticipate directional bias in advance of price moves.
 
 How to use? 
- Enable the indicator for BTCUSD.
- Set Offset Range Start and End to 70 and 115 days
- Set Specific Offset to 78 days (this can change so you'll need to play around)
 FAQ 
 Why a global liquidity wave? 
The global liquidity wave accounts for variability in how much global liquidity affects an underlying asset. Think of the Global Liquidity Wave as an area that tracks the most probable path of Bitcoin, MSTR, etc. based on the total global liquidity.
 Why the offset? 
Global liquidity takes time to make its way into assets such as #Bitcoin, Strategy, etc. and there can be many reasons for that. It's never a specific number of days of offset, which is why a global liquidity wave is helpful in tracking probable paths for highly correlated risk assets.
Reversal Strength Meter – Adib NooraniThe Reversal Strength Meter is an oscillator designed to identify potential reversal zones based on supply and demand dynamics. It uses smoothed stochastic logic to reduce noise and highlight areas where momentum may be weakening, signaling possible market turning points.
🔹 Smooth, noise-reduced stochastic oscillator
🔹 Custom zones to highlight potential supply and demand imbalances
🔹 Non-repainting, compatible across all timeframes and assets
🔹 Visual-only tool — intended to support discretionary trading decisions
This oscillator assists scalpers and intraday traders in tracking subtle shifts in momentum, helping them identify when a market may be preparing to reverse — always keeping in mind that trading is based on probabilities, not certainties.
📘 How to Use the Indicator Efficiently
For Reversal Trading:
Buy Setup
– When the blue line dips below the 20 level, wait for it to re-enter above 20.
– Look for reversal candlestick patterns (e.g., bullish engulfing, hammer, or morning star).
– Enter above the pattern’s high, with a stop loss below its low.
Sell Setup
– When the blue line rises above the 80 level, wait for it to re-enter below 80.
– Look for bearish candlestick patterns (e.g., bearish engulfing, inverted hammer, or evening star).
– Enter below the pattern’s low, with a stop loss above its high.
🛡 Risk Management Guidelines
Risk only 0.5% of your capital per trade
Book 50% profits at a 1:1 risk-reward ratio
Trail the remaining 50% using price action or other supporting indicators
Reversal Scalping Ribbon - Adib NooraniThe Reversal Scalping Ribbon is a trend-following overlay tool designed to visually identify potential reversal zones based on price extremes and dynamic volatility bands. It calculates adaptive upper and lower bands using price action and custom ATR logic, helping traders quickly assess market direction and possible turning points
🔹 Volatility-adjusted bands based on price highs/lows
🔹 Color-coded ribbons to indicate trend bias and potential reversal shifts
🔹 No repainting, works on all timeframes and assets
🔹 Visual-only display, no trade signals — supports discretion-based entries
This ribbon is designed for scalpers and intraday traders to spot reversal setups with clarity. It enhances your trading by showing real-time market bias without unnecessary distractions. By focusing on probabilities, it helps to improve decision-making in fast-paced environments
How to use the indicator efficiently
For Reversal Trading:
Buy: When price closes below the green ribbon with a red candle, then re-enters with a green candle. Enter above the high of the green candle with a stop loss below the lowest low of the recent green/red candles
Sell: When price closes above the red ribbon with a green candle, then re-enters with a red candle. Enter below the low of the red candle with a stop loss above the highest high of the recent red/green candles
Risk Management:
Limit risk to 0.5% of your capital per trade
Take 50% profit at a 1:1 risk-reward ratio
For the remaining 50%, trail using the lower edge of the green band for buys and the upper edge of the red band for sells
Relative Crypto Dominance Polar Chart [LuxAlgo]The  Relative Crypto Dominance Polar Chart  tool allows traders to compare the relative dominance of up to ten different tickers in the form of a polar area chart, we define relative dominance as a combination between traded dollar volume and volatility, making it very easy to compare them at a glance.
🔶  USAGE 
  
The use is quite simple, traders just have to load the indicator on the chart, and the graph showing the relative dominance will appear.
The 10 tickers loaded by default are the major cryptocurrencies by market cap, but traders can select any ticker in the settings panel.
  
Each area represents dominance as volatility (radius) by dollar volume (arc length); a larger area means greater dominance on that ticker.
🔹  Choosing Period 
  
The tool supports up to five different periods
 
 Hourly
 Daily
 Weekly
 Monthly
 Yearly
 
By default, the tool period is set on auto mode, which means that the tool will choose the period depending on the chart timeframe
 
 timeframes up to 2m:  Hourly
 timeframes up to 15m: Daily
 timeframes up to 1H:  Weekly
 timeframes up to 4H:  Monthly
 larger timeframes:    Yearly
 
🔹  Sorting & Sizing 
  
Traders can sort the graph areas by volatility (radius of each area) in ascending or descending order; by default, the tickers are sorted as they are in the settings panel.
The tool also allows you to adjust the width of the chart on a percentage basis, i.e., at 100% size, all the available width is used; if the graph is too wide, just decrease the graph size parameter in the settings panel.
🔹  Set your own style 
  
The tool allows great customization from the settings panel, traders can enable/disable most of the components, and add a very nice touch with curved lines enabled for displaying the areas with a petal-like effect.
🔶  SETTINGS 
 
 Period: Select up to 5 different time periods from Hourly, Daily, Weekly, Monthly and Yearly. Enable/disable Auto mode.
 Tickers: Enable/disable and select tickers and colors
 
🔹  Style 
 
 Graph Order: Select sort order
 Graph Size: Select percentage of width used
 Labels Size: Select size for ticker labels
 Show Percent: Show dominance in % under each ticker
 Curved Lines: Enable/disable petal-like effect for each area
 Show Title: Enable/disable graph title
 Show Mean: Enable/disable volatility average and select color
Bitcoin Polynomial Regression ModelThis is the main version of the script. Click  here  for the Oscillator part of the script.
 💡Why this model was created: 
One of the key issues with most existing models, including our own  Bitcoin Log Growth Curve Model , is that they often fail to realistically account for diminishing returns. As a result, they may present overly optimistic bull cycle targets (hence, we introduced alternative settings in our previous Bitcoin Log Growth Curve Model).
This new model however, has been built from the ground up with a primary focus on incorporating the principle of diminishing returns. It directly responds to this concept, which has been briefly explored  here .
 📉The theory of diminishing returns: 
This theory suggests that as each four-year market cycle unfolds, volatility gradually decreases, leading to more tempered price movements. It also implies that the price increase from one cycle peak to the next will decrease over time as the asset matures. The same pattern applies to cycle lows and the relationship between tops and bottoms. In essence, these price movements are interconnected and should generally follow a consistent pattern. We believe this model provides a more realistic outlook on bull and bear market cycles.
To better understand this theory, the relationships between cycle tops and bottoms are outlined below:https://www.tradingview.com/x/7Hldzsf2/
 🔧Creation of the model: 
For those interested in how this model was created, the process is explained here. Otherwise, feel free to skip this section.
This model is based on two separate cubic polynomial regression lines. One for the top price trend and another for the bottom. Both follow the general cubic polynomial function:
 ax^3 +bx^2 + cx + d. 
In this equation, x represents the weekly bar index minus an offset, while a, b, c, and d are determined through polynomial regression analysis. The input (x, y) values used for the polynomial regression analysis are as follows:
Top regression line (x, y) values:
 
 113, 18.6
 240, 1004
 451, 19128
 655, 65502
 
Bottom regression line (x, y) values:
 
 103, 2.5
 267, 211
 471, 3193
 676, 16255
 
The values above correspond to historical Bitcoin cycle tops and bottoms, where x is the weekly bar index and y is the weekly closing price of Bitcoin. The best fit is determined using metrics such as R-squared values, residual error analysis, and visual inspection. While the exact details of this evaluation are beyond the scope of this post, the following optimal parameters were found:
Top regression line parameter values:
 
 a: 0.000202798
 b: 0.0872922
 c: -30.88805
 d: 1827.14113
 
Bottom regression line parameter values:
 
 a: 0.000138314
 b: -0.0768236
 c: 13.90555
 d: -765.8892
 
 📊Polynomial Regression Oscillator: 
This publication also includes the oscillator version of the this model which is displayed at the bottom of the screen. The oscillator applies a logarithmic transformation to the price and the regression lines using the formula  log10(x) .
The log-transformed price is then normalized using min-max normalization relative to the log-transformed top and bottom regression line with the formula:
 normalized price = log(close) - log(bottom regression line) / log(top regression line) - log(bottom regression line) 
This transformation results in a price value between 0 and 1 between both the regression lines. The Oscillator version can be found here.
 🔍Interpretation of the Model: 
In general, the red area represents a caution zone, as historically, the price has often been near its cycle market top within this range. On the other hand, the green area is considered an area of opportunity, as historically, it has corresponded to the market bottom.
The top regression line serves as a signal for the absolute market cycle peak, while the bottom regression line indicates the absolute market cycle bottom.
Additionally, this model provides a predicted range for Bitcoin's future price movements, which can be used to make extrapolated predictions. We will explore this further below.
 🔮Future Predictions: 
Finally, let's discuss what this model actually predicts for the potential upcoming market cycle top and the corresponding market cycle bottom. In our previous post  here , a cycle interval analysis was performed to predict a likely time window for the next cycle top and bottom:
In the image, it is predicted that the next top-to-top cycle interval will be 208 weeks, which translates to November 3rd, 2025. It is also predicted that the bottom-to-top cycle interval will be 152 weeks, which corresponds to October 13th, 2025. On the macro level, these two dates align quite well. For our prediction, we take the average of these two dates: October 24th 2025. This will be our target date for the bull cycle top.
Now, let's do the same for the upcoming cycle bottom. The bottom-to-bottom cycle interval is predicted to be 205 weeks, which translates to October 19th, 2026, and the top-to-bottom cycle interval is predicted to be 259 weeks, which corresponds to October 26th, 2026. We then take the average of these two dates, predicting a bear cycle bottom date target of October 19th, 2026.
Now that we have our predicted top and bottom cycle date targets, we can simply reference these two dates to our model, giving us the Bitcoin top price prediction in the range of 152,000 in Q4 2025 and a subsequent bottom price prediction in the range of 46,500 in Q4 2026.
For those interested in understanding what this specifically means for the predicted diminishing return top and bottom cycle values, the image below displays these predicted values. The new values are highlighted in yellow:
And of course, keep in mind that these targets are just rough estimates. While we've done our best to estimate these targets through a data-driven approach, markets will always remain unpredictable in nature. What are your targets? Feel free to share them in the comment section below.
Bitcoin Polynomial Regression OscillatorThis is the oscillator version of the script. Click  here  for the other part of the script.
 💡Why this model was created: 
One of the key issues with most existing models, including our own  Bitcoin Log Growth Curve Model , is that they often fail to realistically account for diminishing returns. As a result, they may present overly optimistic bull cycle targets (hence, we introduced alternative settings in our previous Bitcoin Log Growth Curve Model).
This new model however, has been built from the ground up with a primary focus on incorporating the principle of diminishing returns. It directly responds to this concept, which has been briefly explored  here .
 📉The theory of diminishing returns: 
This theory suggests that as each four-year market cycle unfolds, volatility gradually decreases, leading to more tempered price movements. It also implies that the price increase from one cycle peak to the next will decrease over time as the asset matures. The same pattern applies to cycle lows and the relationship between tops and bottoms. In essence, these price movements are interconnected and should generally follow a consistent pattern. We believe this model provides a more realistic outlook on bull and bear market cycles.
To better understand this theory, the relationships between cycle tops and bottoms are outlined below:https://www.tradingview.com/x/7Hldzsf2/
 🔧Creation of the model: 
For those interested in how this model was created, the process is explained here. Otherwise, feel free to skip this section.
This model is based on two separate cubic polynomial regression lines. One for the top price trend and another for the bottom. Both follow the general cubic polynomial function:
 ax^3 +bx^2 + cx + d. 
In this equation, x represents the weekly bar index minus an offset, while a, b, c, and d are determined through polynomial regression analysis. The input (x, y) values used for the polynomial regression analysis are as follows:
Top regression line (x, y) values:
 
 113, 18.6
 240, 1004
 451, 19128
 655, 65502
 
Bottom regression line (x, y) values:
 
 103, 2.5
 267, 211
 471, 3193
 676, 16255
 
The values above correspond to historical Bitcoin cycle tops and bottoms, where x is the weekly bar index and y is the weekly closing price of Bitcoin. The best fit is determined using metrics such as R-squared values, residual error analysis, and visual inspection. While the exact details of this evaluation are beyond the scope of this post, the following optimal parameters were found:
Top regression line parameter values:
 
 a: 0.000202798
 b: 0.0872922
 c: -30.88805
 d: 1827.14113
 
Bottom regression line parameter values:
 
 a: 0.000138314
 b: -0.0768236
 c: 13.90555
 d: -765.8892
 
 📊Polynomial Regression Oscillator: 
This publication also includes the oscillator version of the this model which is displayed at the bottom of the screen. The oscillator applies a logarithmic transformation to the price and the regression lines using the formula  log10(x) .
The log-transformed price is then normalized using min-max normalization relative to the log-transformed top and bottom regression line with the formula:
 normalized price = log(close) - log(bottom regression line) / log(top regression line) - log(bottom regression line) 
This transformation results in a price value between 0 and 1 between both the regression lines. 
 🔍Interpretation of the Model: 
In general, the red area represents a caution zone, as historically, the price has often been near its cycle market top within this range. On the other hand, the green area is considered an area of opportunity, as historically, it has corresponded to the market bottom.
The top regression line serves as a signal for the absolute market cycle peak, while the bottom regression line indicates the absolute market cycle bottom.
Additionally, this model provides a predicted range for Bitcoin's future price movements, which can be used to make extrapolated predictions. We will explore this further below.
 🔮Future Predictions: 
Finally, let's discuss what this model actually predicts for the potential upcoming market cycle top and the corresponding market cycle bottom. In our previous post  here , a cycle interval analysis was performed to predict a likely time window for the next cycle top and bottom:
In the image, it is predicted that the next top-to-top cycle interval will be 208 weeks, which translates to November 3rd, 2025. It is also predicted that the bottom-to-top cycle interval will be 152 weeks, which corresponds to October 13th, 2025. On the macro level, these two dates align quite well. For our prediction, we take the average of these two dates: October 24th 2025. This will be our target date for the bull cycle top.
Now, let's do the same for the upcoming cycle bottom. The bottom-to-bottom cycle interval is predicted to be 205 weeks, which translates to October 19th, 2026, and the top-to-bottom cycle interval is predicted to be 259 weeks, which corresponds to October 26th, 2026. We then take the average of these two dates, predicting a bear cycle bottom date target of October 19th, 2026.
Now that we have our predicted top and bottom cycle date targets, we can simply reference these two dates to our model, giving us the Bitcoin top price prediction in the range of 152,000 in Q4 2025 and a subsequent bottom price prediction in the range of 46,500 in Q4 2026.
For those interested in understanding what this specifically means for the predicted diminishing return top and bottom cycle values, the image below displays these predicted values. The new values are highlighted in yellow:
And of course, keep in mind that these targets are just rough estimates. While we've done our best to estimate these targets through a data-driven approach, markets will always remain unpredictable in nature. What are your targets? Feel free to share them in the comment section below.






















