BTC/Fiat Divergence & Spread Monitor📄 BTC/Fiat Divergence & Spread Monitor
This indicator visualizes Bitcoin’s relative performance across multiple fiat currencies and highlights periods of unusual divergence. It helps traders assess which fiat pairs BTC has outperformed or underperformed over a configurable lookback period and monitor the dynamic spread between the strongest and weakest pairs.
Features:
Relative Performance Matrix:
Ranks BTC returns in 6 fiat pairs, displaying a color-coded table of percentage changes and ranks.
Divergence Spread Oscillator:
Calculates the spread between the top and bottom performing pairs and normalizes this using a Z-Score. The oscillator helps identify when fiat pricing divergence is unusually high or compressed.
Dynamic Smoothing:
Optional Hull Moving Average smoothing to reduce noise in the spread signal.
Customizable Inputs:
Lookback period for percent change.
Z-Score normalization window.
Smoothing length.
Symbol selection for each fiat pair.
Visual Mode Toggle:
Switch between relative performance lines and spread oscillator view.
Potential Use Cases:
Fiat Rotation:
Identify which fiat is relatively weak or strong to optimize your exit currency when taking BTC profits.
Volatility Detection:
Use the spread Z-Score to detect periods of high divergence across fiat pairs, signaling macro FX volatility or dislocations.
Regime Analysis:
Track when fiat spreads are converging or expanding, potentially signaling market regime shifts.
Risk Management:
When divergence is extreme (Z-Score > +1), consider reducing position sizing or waiting for reversion.
Disclaimer:
This indicator is provided for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any security or asset. Always do your own research and consult a qualified financial professional before making trading decisions. Use at your own risk.
Tip:
Experiment with different lookback periods and smoothing settings to adapt the indicator to your timeframe and trading style.
Statistics
Uptrick: Universal Z-Score ValuationOverview
The Uptrick: Universal Z-Score Valuation is a tool designed to help traders spot when the market might be overreacting—whether that’s on the upside or the downside. It does this by combining the Z-scores of multiple key indicators into a single average, letting you see how far the current market conditions have stretched away from “normal.” This average is shown as a smooth line, supported by color-coded visuals, signal markers, optional background highlights, and a live breakdown table that shows the contribution of each indicator in real time. The focus here is on spotting potential reversals, not following trends. The indicator works well across all timeframes and asset classes, from fast intraday charts like the 1-minute and 5-minute, to higher timeframes such as the 4-hour, daily, or even weekly. Its universal design makes it suitable for any market — whether you're trading crypto, stocks, forex, or commodities.
Introduction
To understand what this indicator does, let’s start with the idea of a Z-score. In simple terms, a Z-score tells you how far a number is from the average of its recent history, measured in standard deviations. If the price of an asset is two standard deviations above its mean, that means it’s statistically “rare” or extended. That doesn’t guarantee a reversal—but it suggests the move is unusual enough to pay attention.
This concept isn’t new, but what this indicator does differently is apply the Z-score to a wide set of market signals—not just price. It looks at momentum, volatility, volume, risk-adjusted performance, and even institutional price baselines. Each of those indicators is normalized using Z-scores, and then they’re combined into one average. This gives you a single, easy-to-read line that summarizes whether the entire market is behaving abnormally. Instead of reacting to one indicator, you’re reacting to a statistically balanced blend.
Purpose
The goal of this script is to catch turning points—places where the market may be topping out or bottoming after becoming overstretched. It’s built for traders who want to fade sharp moves rather than follow trends. Think of moments when price explodes upward and starts pulling away from every moving average, volume spikes, volatility rises, and RSI shoots up. This tool is meant to spot those situations—not just when price is stretched, but when multiple different indicators agree that something is overdone.
Originality and Uniqueness
Most indicators that use Z-scores only apply them to one thing—price, RSI, or maybe Bollinger Bands. This one is different because it treats each indicator as a contributor to the full picture. You decide which ones to include, and the script averages them out. This makes the tool flexible but also deeply informative.
It doesn’t rely on complex or hidden math. It uses basic Z-score formulas, applies them to well-known indicators, and shows you the result. What makes it unique is the way it brings those signals together—statistically, visually, and interactively—so you can see what’s happening in the moment with full transparency. It’s not trying to be flashy or predictive. It’s just showing you when things have gone too far, too fast.
Inputs and Parameters
This indicator includes a wide range of configurable inputs, allowing users to customize which components are included in the Z-score average, how each indicator is calculated, and how results are displayed visually. Below is a detailed explanation of each input:
General Settings
Z-Score Lookback (default: 100): Number of bars used to calculate the mean and standard deviation for Z-score normalization. Larger values smooth the Z-scores; smaller values make them more reactive.
Bar Color Mode (default: None): Determines how bars are visually colored. Options include: None: No candle coloring applied. - Heat: Smooth gradient based on the Z-score value. - Latest Signal: Applies a solid color based on the most recent buy or sell signal
Boolean - General
Plot Universal Valuation Line (default: true): If enabled, plots the average Z-score (zAvg) line in the separate pane.
Show Signals (default: true): Displays labels ("𝓤𝓹" for buy, "𝓓𝓸𝔀𝓷" for sell) when zAvg crosses above or below user-defined thresholds.
Show Z-Score Table (default: true): Displays a live table listing each enabled indicator's Z-score and the current average.
Select Indicators
These toggles enable or disable each indicator from contributing to the Z-score average:
Use VWAP Z-Score (default: true)
Use Sortino Z-Score (default: true)
Use ROC Z-Score (default: true)
Use Price Z-Score (default: true)
Use MACD Histogram Z-Score (default: false)
Use Bollinger %B Z-Score (default: false)
Use Stochastic K Z-Score (default: false)
Use Volume Z-Score (default: false)
Use ATR Z-Score (default: false)
Use RSI Z-Score (default: false)
Use Omega Z-Score (default: true)
Use Sharpe Z-Score (default: true)
Only enabled indicators are included in the average. This modular design allows traders to tailor the signal mix to their preferences.
Indicator Lengths
These inputs control how each individual indicator is calculated:
MACD Fast Length (default: 12)
MACD Slow Length (default: 26)
MACD Signal Length (default: 9)
Bollinger Basis Length (default: 20): Used to compute the Bollinger %B.
Bollinger Deviation Multiplier (default: 2.0): Standard deviation multiplier for the Bollinger Band calculation.
Stochastic Length (default: 14)
ATR Length (default: 14)
RSI Length (default: 14)
ROC Length (default: 10)
Zones
These thresholds define key signal levels for the Z-score average:
Neutral Line Level (default: 0): Baseline for the average Z-score.
Bullish Zone Level (default: -1): Optional intermediate zone suggesting early bullish conditions.
Bearish Zone Level (default: 1): Optional intermediate zone suggesting early bearish conditions.
Z = +2 Line Level (default: 2): Primary threshold for bearish signals.
Z = +3 Line Level (default: 3): Extreme bearish warning level.
Z = -2 Line Level (default: -2): Primary threshold for bullish signals.
Z = -3 Line Level (default: -3): Extreme bullish warning level.
These zone levels are used to generate signals, fill background shading, and draw horizontal lines for visual reference.
Why These Indicators Were Merged
Each indicator in this script was chosen for a specific reason. They all measure something different but complementary.
The VWAP Z-score helps you see when price has moved far from the volume-weighted average, often used by institutions.
Sortino Ratio Z-score focuses only on downside risk, which is often more relevant to traders than overall volatility.
ROC Z-score shows how fast price is changing—strong momentum may burn out quickly.
Price Z-score is the raw measure of how far current price has moved from its mean.
RSI Z-score shows whether momentum itself is stretched.
MACD Histogram Z-score captures shifts in trend strength and acceleration.
%B (Bollinger) Z-score indicates how close price is to the upper or lower volatility envelope.
Stochastic K Z-score gives a sense of how high or low price is relative to its recent range.
Volume Z-score shows when trading activity is unusually high or low.
ATR Z-score gives a read on volatility, showing if price movement is expanding or contracting.
Sharpe Z-score measures reward-to-risk performance, useful for evaluating trend quality.
Omega Z-score looks at the ratio of good returns to bad ones, offering a more nuanced view of efficiency.
By normalizing each of these using Z-scores and averaging only the ones you turn on, the script creates a flexible, balanced view of the market’s statistical stretch.
Calculations
The core formula is the standard Z-score:
Z = (current value - average) / standard deviation
Every indicator uses this formula after it’s calculated using your chosen settings. For example, RSI is first calculated as usual, then its Z-score is calculated over your selected lookback period. The script does this for every indicator you enable. Then it averages those Z-scores together to create a single value: zAvg. That value is plotted and used to generate visual cues, signals, table values, background color changes, and candle coloring.
Sequence
Each selected indicator is calculated using your custom input lengths.
The Z-score of each indicator is computed using the shared lookback period.
All active Z-scores are added up and averaged.
The resulting zAvg value is plotted as a line.
Signal conditions check if zAvg crosses user-defined thresholds (default: ±2).
If enabled, the script plots buy/sell signal labels at those crossover points.
The candle color is updated using your selected mode (heatmap or signal-based).
If extreme Z-scores are reached, background highlighting is applied.
A live table updates with each individual Z-score so you know what’s driving the signal.
Features
This script isn’t just about stats—it’s about making them usable in real time. Every feature has a clear reason to exist, and they’re all there to give you a better read on market conditions.
1. Universal Z-Score Line
This is your primary reference. It reflects the average Z-score across all selected indicators. The line updates live and is color-coded to show how far it is from neutral. The further it gets from 0, the brighter the color becomes—cyan for deeply oversold conditions, magenta for overbought. This gives you instant feedback on how statistically “hot” or “cold” the market is, without needing to read any numbers.
2. Signal Labels (“𝓤𝓹” and “𝓓𝓸𝔀𝓷”)
When the average Z-score drops below your lower bound, you’ll see a "𝓤𝓹" label below the bar, suggesting potential bullish reversal conditions. When it rises above the upper bound, a "𝓓𝓸𝔀𝓷" label is shown above the bar—indicating possible bearish exhaustion. These labels are visually clear and minimal so they don’t clutter your chart. They're based on clear crossover logic and do not repaint.
3. Real-Time Z-Score Table
The table shows each indicator's individual Z-score and the final average. It updates every bar, giving you a transparent breakdown of what’s happening under the hood. If the market is showing an extreme average score, this table helps you pinpoint which indicators are contributing the most—so you’re not just guessing where the pressure is coming from.
4. Bar Coloring Modes
You can choose from three modes:
None: Keeps your candles clean and untouched.
Heat: Applies a smooth gradient color based on Z-score intensity. As conditions become more extreme, candle color transitions from neutral to either cyan (bullish pressure) or magenta (bearish pressure).
Latest Signal: Applies hard coloring based on the most recent signal—greenish for a buy, purple for a sell. This mode is great for tracking market state at a glance without relying on a gradient.
Every part of the candle is colored—body, wick, and border—for full visibility.
5. Background Highlighting
When zAvg enters an extreme zone (typically above +2 or below -2), the background shifts color to reflect the market’s intensity. These changes aren’t overwhelming—they’re light fills that act as ambient warnings, helping you stay aware of when price might be reaching a tipping point.
6. Customizable Zone Lines and Fills
You can define what counts as neutral, overbought, and oversold using manual inputs. Horizontal lines show your thresholds, and shaded regions highlight the most extreme zones (+2 to +3 and -2 to -3). These lines give you visual structure to understand where price currently stands in relation to your personal reversal model.
7. Modular Indicator Control
You don’t have to use all the indicators. You can enable or disable any of the 12 with a simple checkbox. This means you can build your own “blend” of market context—maybe you only care about RSI, price, and volume. Or maybe you want everything on. The script adapts accordingly, only averaging what you select.
8. Fully Customizable Sensitivity and Lengths
You can adjust the Z-score lookback length globally (default 100), and tweak individual indicator lengths separately. This lets you tune the indicator’s responsiveness to suit your trading style—slower for longer swings, faster for scalping.
9. Clean Integration with Any Chart Layout
All visual elements are designed to be informative without taking over your chart. The coloring is soft but clear, the labels are readable without being huge, and you can turn off any feature you don’t need. The indicator can work as a full dashboard or as a simple line with a couple of alerts—it’s up to you.
10. Precise, Real-Time Signal Logic
The crossover logic for signals is exact and only fires when the Z-score moves across your defined boundary. No estimation, no delay. Everything is calculated based on current and previous bar data, and nothing repaints or back-adjusts.
Conclusion
The Universal Z-Score Valuation indicator is a tool for traders who want a clear, unbiased way to detect overextension. Instead of relying on a single signal, you get a composite of several market perspectives—momentum, volatility, volume, and more—all standardized into a single view. The script gives you the freedom to control the logic, the visuals, and the components. Whether you use it as a confirmation tool or a primary signal source, it’s designed to give you clarity when markets become chaotic.
Disclaimer
This indicator is for research and educational use only. It does not constitute financial advice or guarantees of performance. All trading involves risk, and users should test any strategy thoroughly before applying it to live markets. Use this tool at your own discretion.
8H/12H Trend + RSI + MACD🧠 RSI 8/12H – The Indicator That Shows Reversals Before the Move Happens
Standard RSI (14) is too slow.
By the time it flashes a signal, the move is usually halfway done.
📍 RSI 8/12H is faster, sharper, and built to spot local reversals early – before the crowd sees them.
Why 8/12H Works:
✅ Detects overbought/oversold zones with precision
✅ Especially powerful on gold, oil, and indices
✅ Gives 1–2 clean, high-probability signals per week – no noise, no clutter
🔥 If you're tired of chasing late entries,
RSI 8/12H gives you the edge to get in before the breakout.
Don’t just watch where the market’s been.
Anticipate where it turns.
h3nrytrades ADR [Pro]📊 ADR & Watermark Utility
This indicator combines a customizable Average Daily Range (ADR) tracker with clean, professional watermarks to enhance chart clarity and support decision-making across any market or symbol.
🔍 Features:
• ADR Calculation: Tracks the average daily range over a user-defined number of days (default: 30). Great for assessing current volatility relative to historical norms.
• Live Daily Range Tracking: Displays the current day’s price range in real time.
• ADR % Meter: Instantly see how much of the average range has been covered so far today.
• Watermark Display: Add optional watermarks such as symbol name, timeframe, or custom tags—perfect for clean screenshots, recordings, or journaling.
🧠 Ideal For:
• Identifying potential range-bound vs. high-volatility sessions.
• Pre-market analysis or intraday filters based on range exhaustion.
• Enhancing visual clarity on your charts with context-rich overlays.
⚙️ Fully Customizable:
• ADR lookback period
• Watermark content, size, and position
• Toggle visibility of all elements
CLMM Vault策略回测 (专业版) v5Explanation of the CLMM (Concentrated Liquidity - Market Maker) Strategy Backtesting Model Developed for the Sui Chain Vaults Protocol
Why Are We Doing This?
Conducting strategy backtesting is a crucial step for us to make data-driven decisions, validate the feasibility of strategies, and manage potential risks before committing real funds and significant development resources. A strategy that appears to have a high APY may perform entirely differently once real-world frictional costs (such as rebalancing fees and slippage) are deducted. The goal of this backtesting model is to quickly and cost-effectively identify which strategy parameter combinations have the potential to be profitable and which ones pose risks before formal development, thereby avoiding significant losses and providing data support for the project's direction.
Core Features of the Backtesting Model
We have built a "pro version" (v5) strategy simulator using TradingView's Pine Script. It can quickly simulate the core performance of our auto-compounding and rebalancing Vaults on historical price data, with the following main features:
Auto-Compounding: Continuously adds the generated fee income to the principal based on the set profit range (e.g., 0.01%).
Auto-Rebalancing: Simulates automatic rebalancing actions when the price exceeds the preset profit range and deducts the corresponding costs.
Smart Filtering Mechanism: To make the simulation closer to our ideal "smart" decision-making, it integrates three freely combinable filtering mechanisms:
Buffer Zone: Tolerates minor and temporary breaches of the profit range to avoid unnecessary rebalancing.
Breakout Confirmation: Requires the price to be in the trigger zone for N consecutive candles to confirm a breakout, filtering out market noise from "false breakouts."
Time Cooldown: Enforces a minimum time interval between two rebalances to prevent value-destroying high-frequency trading in extreme market conditions.
Important: Simplifications and Assumptions of the Model
To quickly prototype and iterate on the TradingView platform, we have made some key simplifications to the model.
A fully accurate backtest would require a deep simulation of on-chain liquidity pools (Pool Pair), calculating the price impact (Slippage) and impermanent loss (IL) caused by each rebalance on the pool. Since TradingView cannot access real-time on-chain liquidity data, we have made the following simplifications:
Simplified Rebalancing Costs: Instead of simulating real transaction slippage, we use a unified input parameter of single rebalance cost (%) to "bundle" and approximate the total of Gas fees, slippage, and realized impermanent loss.
Simplified Fee Income: Instead of calculating fees based on real-time trading volume, we directly input an average fee annualized return (%) as the core income assumption for our strategy.
How to Use and Test
Team members can load this script and test different strategies by adjusting the input parameters on the panel. The most critical parameters include: position profit range, average fee annualized return, single rebalance cost, and the switches and corresponding values of the above three smart filters.
ORB Screener-Multiple Indicators [Marin adjusted]ORB screener for multiple instruments. it needs just the customization of time/ timezone.
Previous Day O H L C Calculation By Md//@version=6
indicator("Previous Day O H L C Calculation By Md", overlay=true)
// Check if the previous daily candle is green (bullish) or red (bearish)
previousCandleBullish = close > open
previousCandleBearish = close < open
// Calculate the difference for bullish candles: previous day's high minus previous day's open
bullishCalculation = high - open
// Calculate the difference for bearish candles: previous day's low minus previous day's close
bearishCalculation = low - close
// Show the result at the top of the current daily candle if the previous candle was bullish
if previousCandleBullish
label.new(bar_index, high, "Bullish Calc: " + str.tostring(bullishCalculation), color=color.green, textcolor=color.white, style=label.style_label_left, size=size.small)
// Show the result at the bottom of the current daily candle if the previous candle was bearish
if previousCandleBearish
label.new(bar_index, low, "Bearish Calc: " + str.tostring(bearishCalculation), color=color.red, textcolor=color.white, style=label.style_label_left, size=size.small)
Previous Day/Week/Month - High/Lows + Open/Close (RC)Its an indicator marking previous day and previous week and last month's high, low open, close.
Alpha Trend Strength Pro🔥 What You’ll See on the Chart
✅ A floating label appears near the most recent candle.
✅ Label shows:
🔥 Trend direction: Uptrend / Downtrend / Neutral / Near VWAP
💪 Trend strength: Strong / Moderate / Weak / Range
📈 EMA alignment
🎯 RSI momentum state
💥 MACD crossover
📊 Volatility condition (Expanding / Contracting)
🔵 VWAP proximity if enabled
✅ The chart background turns:
Green for Uptrend
Red for Downtrend
Neutral/Gray if in range (no background color)
⚙️ Customize Settings
Click the gear icon ⚙️ next to the script’s name on your chart.
Change things like:
Show/hide background color
Toggle VWAP-based filtering
Adjust RSI, MACD, Bollinger parameters
Pristine Fundamental AnalysisThe Pristine Fundamental Analysis indicator enables users to perform comprehensive fundamental stock analysis in a fraction of the time! 🏆
For swing/position traders, fundamental analysis is essential—it informs stock selection and strengthens conviction, enabling traders to stay in positions long enough to capture larger moves. Since every ticker represents both a business and a tradable asset, fundamental analysis perfectly complements technical analysis.
💠 Fundamental Analysis Insights - Weekly Timeframe
EPS & sales trends, margins & ratios, and valuation metrics are displayed on the weekly timeframe for in-depth analysis outside market hours.
💠 Fundamental Analysis Insights - Daily Timeframe
A slimmed down version of the fundamental analysis table is displayed on the daily timeframe to provide users quick insights into the fundamentals, while allowing them to focus on technical analysis during market hours.
💠 Fundamental Analysis Metrics to Deepen Understanding of Companies!
EARNINGS & SALES TRENDS
Why does it matter? Company stock prices tend to track the growth trajectory of earnings and sales over time. By analyzing fundamentals, users can gain an edge that pure technical traders do not have. This edge is most pronounced during big market dislocations when investors are forced to liquidate their top holdings.
▪ EPS - Measures year-over-year growth, quarter-over-quarter growth, and the surprise between actuals & analyst estimates
▪ Sales Analysis - Measures year-over-year growth, quarter-over-quarter growth, and the surprise between actuals & analyst estimates
MARGIN ANALYSIS
Why does it matter? Revenue is the lifeblood of a company. Margins measure company profits and expenditures as a percentage of revenue
▪ G% - Gross margin measures the percentage of revenue a company retained after subtracting the direct costs of producing the goods or services it sells, known as the cost of goods sold (COGS)
▪ CFO% - Measures the percentage of a company's revenue that was converted to Cash flow from operations (CFO). CFO, also known as operating cash flow (OCF), is the amount of cash a company generated from its core business activities over a specific period. It reflects the actual cash inflows and outflows resulting from the company’s main operations, such as selling products or providing services, and excludes cash flows from investing and financing activities.
▪ Net% - Net margin measures the percentage of revenue that was converted to net profit
▪ ROE% - Return on Equity measures how much net income a company produced for each dollar of equity invested by shareholders
▪ R&D% - R&D margin measures how much the company invested in research & development as a percentage of revenue
▪ D/E - The Debt to Equity ratio measures how much of a company’s financing comes from creditors (debt) versus owners (equity), providing insight into the company’s financial leverage and risk profile. The indicator tracks changes in the ratio over time
VALUATION METRICS
Why does it matter? Valuation metrics provide users an understanding of the potential risk if the fundamental trajectory of the company, or the broad market, changes! The more highly valued a company is, the more downside risk is present if conditions worsen, and vice versa.
▪ PE - The Price-to-Earnings ratio measures a company’s current share price relative to its trailing twelve-month(TTM) earnings per share (EPS). It helps investors assess how much they are paying for each dollar of a company’s earnings and is often used to gauge whether a stock is overvalued, undervalued, or fairly valued compared to its peers or historical averages.
▪ PS - The Price-to-Sales ratio measures a company’s current share price relative to its trailing twelve-month(TTM) sales per share. It helps investors assess how much they are paying for each dollar of a company’s sales and is often used to gauge whether a stock is overvalued, undervalued, or fairly valued compared to its peers or historical averages.
▪ BB% - Buyback yield measures the annual percentage of stock repurchased by the company. Share buybacks reduce total share count, which directly increases earnings per share!
💠 What Makes This Indicator Unique
There are many fundamental dashboards, however, what makes this indicator unique is customized metrics that were used to achieve back-to-back top finishes in the US Investing Championship. The main purpose of the indicator is to highlight companies with a history of EPS and sales acceleration , rather than focusing on the values in isolation, or even the growth of the values. Our goal is further evolution of the metrics and color signals based on continued backtesting and analysis of real-time market data.
▪ Custom Margin Metrics : Several of the margin metrics are unique and offer significant value beyond EPS and sales data alone.
For example, there are plenty of companies that have negative EPS due to non-cash expenses and/or investments they are making into their business, but that does not by itself mean that the companies are not worthy of an investment. Roblox (RBLX) is a great example. The company has consistently negative EPS, but the CFO% margin is positive! That means the core business throws off significant amounts of cash, and a large amount of it is being allocated to aggressive R&D spend, which is captured by the R&D% metric. This could propel the fundamentals of the business well into the future.
▪ Color Signals Based on Thresholds : The background colors of metrics are based on historical analysis and apply relevant thresholds to help users identify companies with strong fundamentals
▪ Comprehensive Inline Documentation : All headers cells offer detailed information about the relevant calculations/metrics as well as in-depth information on color coding and how to interpret each value. This small, yet important detail, allows users to quickly identify accelerating fundamental trends
💠 Practical Use Case Examples
Analyzing fundamentals to trade a Power Earnings Gap setup 👇
In August 2023, APP reported a +467% YoY increase in EPS, 181% higher than Wall Street estimates! This sparked a generational trading opportunity.👇
After the first earnings report with stellar earnings growth, APP rallied > 1000% in 2 years, following the trajectory of sales and EPS.👇
💠 Settings and Preferences
💠 Tips and Tricks
Fundamentals drive price action during periods of fundamental transition
▪ Pre-revenue companies that are anticipated to start earning revenue
▪ Revenue-generating companies that are anticipated to flip from negative to positive EPS
▪ Revenue-generating companies that are anticipated to flip from negative cash flow to positive cash flow
▪ Major accelerations or decelerations in sales or EPS
Pristine Market Analysis DashboardThe Pristine Market Analysis indicator enables users to perform comprehensive top-down analysis of global risk assets in a fraction of the time! 🏆
Top-down analysis is important because the overall market environment has a significant impact on the success of individual trading setups.
💠 Market Analysis Insights
▪ Identify if money is flowing into equities, or equity alternatives like bonds,gold,and bitcoin
▪ Perform relative strength analysis of US vs International equities
▪ Identify rotation into risk-on or risk-off assets to determine overall market health
▪ Detect leading sectors to enable targeted stock screening, or to trade the ETFs themselves
💠 Market Analysis Metrics to Improve Your Situational Awareness!
▪ %Δ - 1-day percent change
▪ ATR Δ - 1-day percent change/ ATR %
▪ DCR - Daily closing range
▪ 52WR - Measures where a security is trading in relation to it’s 52wk high and 52wk low
▪ MAx - Measures how extended price is from a key moving average of your choosing in ATR% multiple terms
▪ ST ↑↓ (Short- Term Stage) - Measures the short-term trend using key moving averages of your choosing
▪ LT ↑↓ (Long-Term Stage) - Measures the long-term trend using key moving averages of your choosing
The indicator automatically sorts from greatest to least based on the %Δ column 👇
What is ATR?
The average true range (ATR) is a technical analysis indicator introduced by market technician J. Welles Wilder Jr. in his book New Concepts in Technical Trading Systems that measures security volatility by decomposing the entire range of an asset price for a time period.
Why do we use it?
Because converting price moves into ATR terms better contextualizes them relative to the asset's historical volatility!
Example: If the ATR is $2.50, it means the average price range each day is roughly $2.50.
We use an ATR length of 20 days in our calculation, and convert the 20D ATR into a 20D ATR %. The formula for ATR % is as follows:
ATR % = (ATR/Current Price) * 100
Why does MAx matter?
MAx measures the number of ATR % multiples a security is trading away from a key moving average.The default moving average length is 50 days.
MAx can be used to identify mean reversion trades . When a security trends strongly in one direction and moves significantly above or below its moving average, the price often tends to revert back toward the average.
Example, if the ATR % of the security is 5%, and the stock is trading 50% higher than the 50D SMA, the MAx would be 50%/5% = 10. A user might opt to take a countertrend trade when the MAx exceeds a predetermined level.
The MAx can also be useful when trading breakouts above or below the key moving average of your choosing. The lower the MAx, the tighter stop loss one can take if trading against that level.
Identifying an extreme price extension using MAx 👇
Price mean reverted immediately following the high MAx 👇
Why does 52WR matter?
Historical analysis conducted by market legends like William O’Neill and Mark Minervini indicates that stocks trading at or near 52wk highs tend to outperform over time, and vice versa for stocks trading close to 52wk lows. Avoiding stocks trading with a low 52WR metric can help traders avoid buying stocks in downtrends. Likewise, focusing on stocks trading with a high 52WR provides a technical edge.
💠 Stage Analysis Guide
Short-term and long-term stage analysis data is provided in the two rightmost columns of each table. The columns are labeled ST ⇅ and LT ⇅.
Why is Stage Analysis important? Popularized by Stan Weinstein, stage analysis is a trend following system that classifies assets into four stages based on price-trend analysis.
The problem? The interpretation of stage analysis is highly subjective. Based on the methodology provided in Stan Weinstein’s books, five different traders could look at the same chart, and come to different conclusions as to which stage the security is in!
We solved for this by creating our own methodology for classifying stocks into stages using moving averages. This indicator automates that analysis, and produces short-term and long-term trend signals based on user-defined key moving averages. You won’t find this in any textbook or course, because it’s completely unique to the Pristine trading methodology.
Our indicator calculates a short-term trend signal using two moving averages; a fast moving average, and a slow moving average. We default to the 10D EMA as the fast moving average & the 20D SMA as the slow moving average. A trend signal is generated based on where price is currently trading with respect to the fast moving average and the slow moving average. We use the signal to guide shorter-term swing trades.
In general, we want to take long trades in stocks with strengthening trends, and short trades in stocks with weakening trends. The user is free to change the moving averages based on their own short-term timeframe. Every trader is unique!
The same process is applied to calculate the long-term trend signal. We default to the 50D SMA as our fast moving average, and the 200D SMA as the slow moving average for the LT ⇅ signal calculation, but users can change these to fit their own unique trading style.
What is Stage 1?
Stage 1 identifies stocks that transitioned from downtrends, into bottoming bases.
Stage 1A - Bottom Signal: Marks the first day a security shows initial signs of recovery after a downtrend, with early indications of strength emerging.👇
Stage 1B - Bottoming Process: Identifies the ongoing phase where the security continues to stabilize and strengthen, confirming the base-building process after the initial signal.👇
Stage 1R - Failed Uptrend: Detects when a security that had entered an early uptrend loses momentum and slips back into a bottoming phase, signaling a failed breakout.👇
What is Stage 2?
Stage 2 identifies stocks that transitioned from bottoming bases to uptrends.
Stage 2A - Breakout: Marks the first day a security decisively breaks out, signaling the start of a new uptrend.👇
Stage 2B - Uptrend: Identifies when the security continues to trade in an established uptrend following the initial breakout, with momentum building but not yet showing full strength.👇
Stage 2C - Strong Uptrend: Detects when the uptrend strengthens further, with the security displaying clear signs of accelerating strength and buying pressure.👇
Stage 2R - Failed Breakdown: Detects when a security that had recently entered a corrective phase reverses course and reclaims its upward trajectory, moving back into an uptrend.👇
What is Stage 3?
Stage 3 identifies stocks that transitioned from uptrends to topping bases.
Stage 3A - Top Signal: Marks the first day a security shows initial signs of weakness after an uptrend, indicating the start of a potential topping phase.👇
Stage 3B - Topping Process: Identifies the period following the initial signal when the security continues to show signs of distribution and potential trend exhaustion.👇
Stage 3R - Failed Breakdown: Detects when a security that had entered a deeper corrective phase reverses upward, recovering enough strength to re-enter the topping phase.👇
What is Stage 4?
Stage 4 identifies stocks that transitioned from topping bases to downtrends.
Stage 4A - Breakdown: Marks the first day a security decisively breaks below key support levels, signaling the start of a new downward trend.👇
Stage 4B - Downtrend: Identifies when the security continues to trend lower following the initial breakdown, with sustained bearish momentum, though not yet fully entrenched.👇
Stage 4C - Strong Downtrend: Detects when the downtrend intensifies, with the security displaying clear signs of accelerating weakness and selling pressure.👇
Stage 4R - Failed Bottom: Detects when a security that had begun to show early signs of bottoming reverses course and resumes its decline, falling back into a downtrend.👇
Stage N/A - Recent IPO: Applies to stocks that recently IPO’ed and don’t have enough data to calculate all necessary moving averages.
💠 Historical Analysis
Users can leverage the Replay feature in TradingView to perform historical analysis and see how the overall configuration of global risk assets looked at key turning points in the market!
To perform historical analysis:
1) Show the chart if previously hidden (see Tips and Tricks).
2) Click the Replay button on the toolbar at the top of the chart.
3) Use the slider on the chart to select the bar to begin the analysis.
💠 Comprehensive Tooltips
Hover over header labels to get detailed information about the data and relevant calculations.
For stage analysis (Short Term and Long Term), the tooltips provide a complete key of all the relevant stages.
💠 Settings and Preferences
▪ Customize this script by setting preferred colors and thresholds.
▪ There are two tables that can be customized, one on each side of the chart. For each table you can configure the location and show/hide each table. You can also specify colors for header and row data, including your preferred text size.
▪ You can customize the moving averages that are used in stage analysis. Specify your preferred fast and slow moving averages for both short-term and long-term analysis.
▪ For the ATR extension, the default moving average is 50D SMA. You can choose the length and type (SMA or EMA) to align with your trading preferences.
💠 Tips and Tricks
▪ Hide/Show Chart:
To provide a clean backdrop for the tables, it can be helpful to hide the chart. Hover your mouse over the symbol information in the upper right. Select the "..." option and choose "Hide" option. Choose the option "Show" to see the chart details if hidden.
▪ Futures Outside Regular Trading Hours (RTH):
In order for the data in the “%Δ” column of the the “Equity Alternatives” table to populate correctly when outside of regular trading hours, you must have your chart displaying a futures contract. Examples: ES, NQ, RTY, GC.
Hidden Markov ModelDescription
This model uses a Hidden Markov Model to detect potential tops and bottoms. It is designed to probabilistically identify market regime changes and predict potential reversal point using a forward algorithm to calculate the probability of a state.
State 0: (Normal Trading): Market continuation patterns, balanced buying/selling
State 1: (Top Formation): Exhaustion patterns at price highs
State 2: (Bottom Formation): Capitulation patterns at price lows
Background: The HMM assumes that market behavior follows hidden states that aren't directly observable, but can be inferred from observable market data (emissions). The model uses a (somewhat simplified) Bayesian inference to estimate these probabilities.
How to use
1) Identify the trend (you can also use it counter-trend)
2) For longing, look for a green arrow. The probability values should be red. For shorting, look for a red arrow. The probability values should be green
3) For added confluence, look for high probability values
xetra//@version=5
indicator("First Candle Range", overlay=true)
// Налаштування сесії
session = input.session("0930-1030", title="Сесія")
// Визначити, чи поточна свічка — перша у сесії
is_new_session = ta.change(time(session))
// Змінні для збереження значень першої свічки
var float first_high = na
var float first_low = na
var int first_index = na
// Коли настає нова сесія — зберігаємо high та low першої свічки
if is_new_session
first_high := high
first_low := low
first_index := bar_index
// Побудова ліній
if not na(first_index)
line.new(first_index, first_high, bar_index, first_high, color=color.green, width=1, extend=extend.right)
line.new(first_index, first_low, bar_index, first_low, color=color.red, width=1, extend=extend.right)
// (Опційно) Заливка області між high та low
bgcolor(time(session) and bar_index == first_index ? color.new(color.orange, 85) : na)
FeraTrading Pattern Recognition Engine🧠 Overview:
The FeraTrading Pattern Recognition Engine (PRE) is a lightweight, adaptive model that transforms raw chart data into pattern signatures and tracks their performance in real time.
Instead of relying on fixed formulas or lagging indicators, it learns from what has worked before on your chart—highlighting bull and bear patterns that have a track record of hitting a profit target within a specified number of bars.
This system is ideal for traders who want evolving entries that reflect live market behavior without repainting or hardcoding.
⚙️ How It Works:
🔹 Pattern Encoding:
The script monitors recent price action and builds a unique pattern ID using selected features:
Up to 10 feature toggles (detailed below)
Each feature is converted into a categorical value
The combination of features over a lookback window defines the pattern signature
Bullish and bearish patterns are tracked separately.
🔹 Pattern Evaluation & Learning:
As each pattern appears:
A unique ID is generated.
The script checks if price reaches the required % move within N bars.
If successful, it logs the pattern as a win.
Accuracy and sample size are updated.
Only patterns with 10+ past samples are eligible for live signals.
🔹 Signal Generation:
When today's pattern matches one of the top historically successful bull or bear patterns:
🟢 Green Triangle (below bar) = Bullish pattern match
🔴 Red Triangle (above bar) = Bearish pattern match
Signals are confirmed one bar after pattern completion to avoid repainting.
🧶 Feature Toggles:
Each of the following can be turned on/off to customize the pattern logic:
Candle Type: Bullish, Bearish, or Doji classification.
RSI > 50: Adds momentum context.
Higher High / Lower Low: Tracks continuation or breakout structure.
Volume Spike: Flags volume > 1.5x 20-bar average.
Relative Range: True if bar range > 5-bar average.
Body-to-Range > 60%: Filters for full-bodied candles.
Wick Dominance: Flags wicky/exhaustion candles.
EMA Alignment: Checks if price is in directional alignment with fast/slow EMAs.
Gap From Prior Close: Flags price gaps from previous close.
RSI Slope: Captures trend acceleration or deceleration in RSI.
Tip: 2–3 features = broader learning. 5+ features = more selective precision.
🤷 Inputs & Customization:
Target Move %: How far price must move to qualify as a win.
Lookback Bars: How far back to check for pattern definition.
Bars Forward: How much time the pattern has to hit target.
Signal Toggles: Enable/disable bullish and bearish signals.
🎯 What Makes It Original:
Learns from live data—no static formulas or preset patterns.
Signals only appear if historical accuracy + sample size threshold is met.
One-bar delayed confirmation = no repainting.
Configurable features allow full user control of complexity.
Works on any asset, any timeframe.
✅ How to Use:
Add to any intraday chart (1m–30m ideal).
Start with 2–3 features toggled on.
Let the script learn as data comes in.
Watch for triangle signals (green = bullish, red = bearish).
Combine with other tools for added confluence.
Over time, the engine becomes more selective and accurate.
💎 Why It’s Worth Paying For
The PRE isn’t a repackaged signal script—it’s a real-time learning engine. It provides:
A dynamic model that evolves with your chart
Customizable pattern encoding across 10 behavioral features
Verified, statistically accurate signals
Confirmed, non-repainting outputs
Applicability to any asset or market condition
This isn't theoretical—it's performance-driven signal logic trained by your own chart.
✅ Compliance & Originality This tool was developed from scratch by FeraTrading using fully original logic. No open-source logic or reused libraries were used. All detection methods, signal logic, and pattern encodings are unique and built with compliance in mind. This is absolutely an original script, one we think may be unique to TradingView completely and never seen before.
⚠️ Risk Disclaimer & Access Policy
This script is a historical pattern tracker—not a forecasting engine. No prediction of future price behavior is implied or guaranteed.
Use with proper risk management and trade discretion.
To protect the core pattern engine, this script is invite-only and closed-source. Opening the source would allow cloning of its real-time pattern encoding and filtering logic.
Restricting access ensures:
Proper use by qualified traders
Prevention of misuse or unauthorized distribution
Protection of the tool’s proprietary logic and long-term value
The PRE is designed to be part of a professional workflow, and its access model reflects that goal.
TPOC [cem_trades]This indicator displays the price level with the highest number of time-based price interactions within a session — also known as the Time Point of Control (TPOC). It helps traders visualize where the market has spent the most time, making it a key tool for identifying balanced areas and potential turning points. Includes customizable session settings, timezones, and RTH/ETH trading hours. More information at cem_trades.
M/D[cem_trades]This indicator marks the expected manipulation and distribution levels by statistically analysing the last 100 trading days. More information at cem_trades.
Hour-StatsTHIS IS FOR NQ ONLY.
The figures from this indicator are drawn from fifteen years of historical price action. Although we strive for accuracy, errors may occur—these figures shouldn’t be the sole basis for any trading decision. Past performance is not indicative of future results. Trade at your own risk.
Trade at Your Own Risk: This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Always do your own analysis and manage your risk appropriately when trading.
Based on NQStats Hour Stats. Find more information here: nqstats.com
The Hour-Stats indicator provides a comprehensive, at-a-glance view of key hourly price levels and sweep-based statistics directly on your chart. It’s designed to help you:
Divide the session into 20-minute buckets with vertical lines and mark each bucket’s center.
Track the current hour’s range (high/low) in real time.
Display the previous hour’s high (PHH), mid (PHM), low (PHL), and the current hour’s open as horizontal lines and labels at the top of the next hour.
Overlay “formation percentages” for each 20-minute bucket—showing how often price in past history fell into each low-, mid-, or high-bucket for that hour.
Detect the first “sweep” of the prior hour’s high or low, then annotate the open-return, mid-return, and opposite-side return percentages (“sweep-stats”) a few bars after the hour.
Key Inputs
Vertical Line Color/Style/Width: Customize the bucket dividers.
Prev Hour High/Mid/Low/Open Colors & Styles: Tune the horizontal lines and labels.
Formation Label Colors & Sizes: Adjust the percentage callouts.
Sweep-Stat Text Color/Size & Offset: Control where and how the sweep statistics are plotted.
How to Use
Load the script on an intraday chart (minutes-based).
Watch the 20-minute buckets form within each hour—ideal for monitoring early vs. late-hour behavior.
Observe the PHH/PHM/PHL/Open markers at the top of each hour to gauge the prior hour’s range and current opening level.
Note the sweep-stats when price first breaks the prior hour’s boundary—use these percentages to inform your entries, exits, or risk management.
This is based on 15 years of price action. These stats may be wrong and shouldn't be relied on for your trade decisions. Use at your own risk.
Session SizeAnalyze previous Sessions Size (Asia, London, New York) and give back the average range size in points.
Great tool if you want to take seriously the time and price
Open Interest Footprint IQ [TradingIQ]Hello Traders!
Th e Open Interest Footprint IQ indicator is an advanced visualization tool designed for cryptocurrency markets. It provides a granular, real-time breakdown of open interest changes across different price levels, allowing traders to see how aggressive market participation is distributed within each bar.
Unlike standard footprint charts that rely solely on volume, this indicator offers unique insights by focusing on the interaction between price action and changes in open interest (OI) — a leading metric often used to infer trader intent and positioning.
How it works
The Open Interest Footprint IQ processes lower timeframe price and open interest data to build a footprint-style chart that shows how traders are positioning themselves within each candle.
Here’s a breakdown of the process:
1. Granular OI & Price Sampling
The script retrieves lower-timeframe data (1-minute, 1-second, or 1-tick, based on your setting).
For each candle, it captures:
High and low prices
Price change direction
Change in open interest (OI)
2. Classifying Trader Behavior
For each lower-timeframe segment, the indicator determines the type of positioning occurring based on price movement and OI change:
If price is moving up and open interest is increasing, it suggests that long positions are being opened. This is considered a "Longs Opening" event, labeled as UU (Up/Up).
If price is moving up but open interest is decreasing, it indicates that short positions are being closed. This is referred to as UD (Up/Down), or "Shorts Closing."
If price is moving down and open interest is increasing, it signals that short positions are being opened. This is known as DU (Down/Up), or "Shorts Opening."
If price is moving down while open interest is also decreasing, it means that long positions are being closed. This is labeled as DD (Down/Down), or "Longs Closing."
These are stored in separate arrays and displayed at specific price levels.
It is particularly useful for identifying:
Where longs or shorts are opening/closing positions
Stacked imbalances (indicative of potential absorption or exhaustion)
Value area zones and POC (Point of Control) based on OI, not volume
This footprint runs on your choice of sub-bar granularity and is ideal for high-frequency trading, scalping, and entries based on order flow dynamics.
Key Features
Footprint Visualization
At each price level within a candle:
Long/short opening and closing behavior is broken down.
Delta (net open interest change) is displayed both numerically and color-coded.
Optional gradient coloring shows intensity and type of flow (longs/shorts opened/closed).
Cumulative or per-bar reset modes allow you to track OI evolution over time.
The image above explains the information that each Footprint box shows across a candlestick!
Each footprint box shows:
OI Delta
OI Delta %
Longs Opened (LO)
Longs Closed (LC)
Shorts Opened (SO)
Shorts Closed (SC)
The image above explains the color-coding feature of the indicator.
Boxes are color coded to show which position action
dominated at the price area.
For this example:
Green boxes = Long positions being opened dominated
Purple boxes = Long positions being closed dominated
Red boxes = Short positions being opened dominated
Yellow boxes = Short positions being closed dominated
All colors are customizable.
Additionally, for traders who are only interested in whether OI increased/decreased, a "two-color" option is available in the settings.
For the two-color option, footprint boxes can be one of two colors. Showing whether OI increased or decreased at the level.
Cumulative Levels
Open Interest Footprint IQ contains a "Cumulative Levels" feature that tracks/stores open interest change at tick levels over time, rather than resetting per bar.
With the "Cumulative Levels" feature enabled, traders can see open interest changes persist across all candlesticks. This feature is useful for determining whether longs opening, longs closing, shorts opening, or shorts closing are dominating at particular price areas over time rather than on a single bar.
A useful feature to see if shorts/longs are favoring certain price throughout the day, week, month, etc.
Input Settings Explained
Granularity (Dropdown: Granularity)
Options: 1-Minute, 1-Second, 1-Tick
Determines how finely the script samples the lower timeframe data to construct the footprint.
For precision:
1-Tick = Highest accuracy, but more resource-intensive.
1-Second/1-Minute = Suitable for broader or more zoomed-out analysis.
Tick Level Distance (Tick Level Distance (0 = Auto))
Defines the vertical spacing between levels in the footprint chart.
If 0, the script uses an automatic calculation based on ATR to adapt to volatility.
Set a manual value (e.g., 5) to control the height granularity of each level in ticks.
Cumulative Levels (Toggle)
If enabled, the footprint builds cumulatively over time, rather than resetting per candle.
Use case: Visualize ongoing buildup of OI activity across a session or day.
Cumulative Levels Reset TF (Timeframe)
Sets the reset interval for the cumulative view (e.g., reset daily, hourly, etc.)
Works only when Cumulative Levels is enabled.
Delta Box Display Settings
Show Delta Percentage
Toggles the display of the percentage change in OI across the footprint level.
Helpful to gauge how aggressive positioning is relative to total OI at that level.
Show Longs/Shorts (Opened/Closed)
Show Longs Opened: Displays OI increase in up candles (price ↑, OI ↑).
Show Longs Closed: Displays OI decrease in down candles (price ↓, OI ↓).
Show Shorts Opened: OI increase in down candles (price ↓, OI ↑).
Show Shorts Closed: OI decrease in up candles (price ↑, OI ↓).
These behaviors are color-coded to give traders instant context:
Blue-green for longs opening.
Purple for longs closing.
Red for shorts opening.
Yellow for shorts closing.
Value Area & POC
Value Area % (Value Area %)
Controls how much cumulative open interest is used to define the value area.
Example: 70% means the smallest range of prices that contains 70% of total OI in that bar will be marked.
Helps identify zones of interest, support/resistance, and institutional levels.
The image above explains how to identify the VAH/VAL/POC shown by Open Interest Footprint IQ.
VAH = Upper 🞂
POC = ●
VAL = Lower 🞂
Imbalances
Imbalance Percentage
Defines the minimum delta % required at a level to be marked as an imbalance.
If the net open interest change at a level exceeds this threshold, a visual marker appears.
Stacked Imbalance Count
If the number of consecutive imbalance levels meets this count, a “Stacked Imbalance” alert will trigger.
This can signal aggressive buying or selling pressure, potential breakout zones, or institutional absorption.
Color Settings
Longs Opened / Closed, Shorts Opened / Closed
Customize the color palette for each order flow behavior.
These colors appear in the background gradient of the footprint boxes.
Up/Down Only Mode
Toggle to override all behavior-based colors with a single Up Color and Down Color.
Useful if you prefer a simple bull/bear view.
Up Color / Down Color
If "Up/Down Only" is enabled, these two colors are used to represent all net positive or negative deltas.
Special Notes
Crypto only: This script works only with crypto tickers on TradingView.
For other assets (stocks, futures), a warning message will appear instead.
OI data must be available from the exchange (many perpetual pairs support this).
If the footprint is too small or invisible, increase your tick level spacing in the settings.
Alerts
When a stacked imbalance is detected, an alert is fired ("Stacked Imbalance").
This feature is useful for automated systems, bots, or simply staying informed of potential trade setups.
And that's all for now!
If you have any questions or features you'd like to see feel free to share them in the comments below!
Thank you traders!
Auto LevelsAutomatically paints open, high, low, and close levels from previous periods.
RTH data only in traditional cash markets.
Previous periods included are:
- Day
- Week
- Month
- Quarter
- Year.
Customization options allow for:
- Enabling/disabling of each type of level for each period
- Text size and colors of labels
- Colors and styles of lines
- Line extension length
*Also, there is a close-price ray included. Can be disabled.
Creates new levels once they generate, and removes old and outdated levels.
The idea is to be transparent about the relevancy of levels and portray them as they generate in time. Full 2-way-ray horizontal lines can appear to give false-reaction data in historical bars from before the level was generated. This can give traders a false sense of importance to a level.
Works on any ticker/symbol.
Known bugs:
** Open levels distort based on open/closed status in traditional markets. Fix pending.
** Different candle types (Heikin Ashi) distort all open/close level data. Fix pending.
** Line extension doesn't work in closed markets. Fix pending.
Message me on twitter for other bug reports.
TimeframePine script to create a hover text over the asset indicating the asset, date, and current timeframe.
Z Score Overlay [BigBeluga]🔵 OVERVIEW
A clean and effective Z-score overlay that visually tracks how far price deviates from its moving average. By standardizing price movements, this tool helps traders understand when price is statistically extended or compressed—up to ±4 standard deviations. The built-in scale and real-time bin markers offer immediate context on where price stands in relation to its recent mean.
🔵 CONCEPTS
Z Score Calculation:
Z = (Close − SMA) ÷ Standard Deviation
This formula shows how many standard deviations the current price is from its mean.
Statistical Extremes:
• Z > +2 or Z < −2 suggests statistically significant deviation.
• Z near 0 implies price is close to its average.
Standardization of Price Behavior: Makes it easier to compare volatility and overextension across timeframes and assets.
🔵 FEATURES
Colored Z Line: Gradient coloring based on how far price deviates—
• Red = oversold (−4),
• Green = overbought (+4),
• Yellow = neutral (~0).
Deviation Scale Bar: A vertical scale from −4 to +4 standard deviations plotted to the right of price.
Active Z Score Bin: Highlights the current Z-score bin with a “◀” arrow
Context Labels: Clear numeric labels for each Z-level from −4 to +4 along the side.
Live Value Display: Shows exact Z-score on the active level.
Non-intrusive Overlay: Can be applied directly to price chart without changing scaling behavior.
🔵 HOW TO USE
Identify overbought/oversold areas based on +2 / −2 thresholds.
Spot potential mean reversion trades when Z returns from extreme levels.
Confirm strong trends when price remains consistently outside ±2.
Use in multi-timeframe setups to compare strength across contexts.
🔵 CONCLUSION
Z Score Overlay transforms raw price action into a normalized statistical view, allowing traders to easily assess deviation strength and mean-reversion potential. The intuitive scale and color-coded display make it ideal for traders seeking objective, volatility-aware entries and exits.