التحليل الأساسي
RoyalGold TRW Indicator | Oxford+ (Adaptive)Update version of the original Oxford with some new features and new updates
A best Seasonality Monthly IndicatorSeasonality Monthly is a custom indicator designed for TradingView that calculates and displays monthly seasonality performance as a table overlay on the chart.
Key aspects and functionality:
It requires the timeframe to be either monthly or daily; otherwise, it throws an error.
The user can set the starting year (default 2015) from which the seasonality statistics begin.
It collects monthly percentage change data (close to close returns) for each month and year dynamically using request.security.
Data is stored in a two-dimensional matrix representing years by months, accumulating returns for each month over the years.
The table is drawn on the chart showing monthly returns for each year, with cells colored green for positive returns and red for negatives.
The bottom rows of the table show summary statistics per month:
AVG: Average monthly returns
SUM: Sum of returns
+ive: Count of months with positive returns over total counts
WR: Win rate (ratio of positive months)
Text sizes and colors are customizable via inputs.
Uses Pine Script v5 features like matrix, table API, and new runtime error handling.
This script is useful for visualizing historical monthly seasonality patterns for any symbol on TradingView.
------------------
The Seasonality Monthly Pine Script indicator is a powerful tool designed for TradingView that enables traders to analyze and visualize the historical seasonal performance of an asset on a monthly basis. This script focuses on identifying recurring monthly patterns by accumulating monthly percentage returns over multiple years, providing insights that help traders understand when certain months tend to perform better or worse historically.
The script requires the chart to be set to either a daily or monthly timeframe to ensure accurate calculations and data retrieval. It uses the request. security function to fetch monthly data, extracting each bar's year, month, and monthly price change percent based on close-to-close returns. These returns are then accumulated into a matrix data structure, organizing the percentage changes for each year and month to build a comprehensive historical dataset.
A dynamic table is constructed and displayed on the chart, showing a detailed breakdown of percentage changes each month for every year starting from a customizable start year (default is 2015). Each cell in the table is color-coded—green for positive monthly returns and red for negative—making it visually easy to interpret seasonal trends. This immediate visual feedback is valuable for traders looking to identify strong or weak months historically.
Beyond just the yearly data, the script calculates aggregate statistics for each month, which are displayed in summary rows at the bottom of the table. These include the average monthly return, the sum of returns, the count of positive-return months versus total months ("+ive"), and the win rate (WR), which is the proportion of positive months over the total number of months observed. These statistics assist traders in quantifying the strength and consistency of monthly seasonal effects.
The script also includes user customization options such as the starting year for seasonality analysis and adjustable text size for better readability. It incorporates modern Pine Script v5 features like runtime error handling, matrix operations, and the enhanced table API for efficient and clear display.
Overall, This is a practical indicator that helps traders incorporate seasonality insights into their decision-making process, potentially improving timing entries and exits by leveraging historical monthly market behaviors. It is particularly useful for spotting cyclic tendencies and planning strategies around historically strong or weak months, adding a valuable dimension to technical analysis.
----------------------------------------------
#Seasonality #TradingView #PineScript #TechnicalAnalysis #StockMarket #MonthlyPerformance #SeasonalTrends #MarketAnalysis #TradingStrategy #PricePatterns #Charting #DataVisualization #AlgorithmicTrading #FinancialMarkets #TradingIndicators #InvestmentStrategy #QuantitativeAnalysis #MarketSeasonality #StockTrading #TradingTools
Asset Strength Index <DOSALGO>The Asset Strength Index (ASI) is a comprehensive dashboard indicator designed to provide traders with a broader perspective on market dynamics. Instead of viewing an asset in isolation, the ASI measures its relative strength against a basket of key global assets: Bonds, Gold, and the US Dollar.
This tool is built to give you an immediate, visual understanding of how the asset you are charting is performing in the context of the wider financial landscape. The analysis is presented across three distinct time horizons—Short-Term, Medium-Term, and Long-Term—allowing for a nuanced view of performance.
How It Can Be Useful
The core purpose of the ASI is to serve as a contextual analysis tool. By understanding an asset's strength or weakness relative to others, traders can gain valuable insights that may not be apparent from price action alone.
Inter-Market Confirmation: Use the dashboard to confirm your trading ideas. For example, a bullish outlook on a stock index could be strengthened if it shows increasing strength against safe-haven assets like Gold and Bonds.
Risk Sentiment Barometer: Gauge the prevailing risk-on or risk-off sentiment. If the US Dollar and Bonds are showing strength while your asset is weakening, it could indicate a broader market shift towards safety.
Multi-Term Perspective: Quickly assess if short-term movements are aligned with the longer-term trend. A short-term dip might be less concerning if the asset's long-term relative strength remains high.
How to Use It
The ASI dashboard is displayed directly on your chart. The values are presented as percentages, indicating the relative strength for each term.
Monitor the Readings: Observe the percentage values in the "S. Term," "M. Term," and "L. Term" columns. Positive values suggest relative strength, while negative values indicate relative weakness.
Look for Trends: The arrows (▲ or ▼) next to the percentage show the most recent change, helping you spot developing trends in relative strength.
Combine with Your Strategy: The ASI is not a standalone signal generator. It is most effective when used to supplement your existing trading system, helping you make more informed decisions by adding a layer of sophisticated, inter-market analysis.
The dashboard's appearance is fully customizable, allowing you to adjust its position, size, and colors to fit your chart layout.
Disclaimer
The Asset Strength Index (ASI) is a tool for market analysis and should not be considered financial advice. All trading involves risk, and past performance is not indicative of future results. Always use this indicator in conjunction with your own comprehensive trading plan and risk management strategy.
US Liquidity-Weighted Business Cycle📈 BTC Liquidity-Weighted Business Cycle
This indicator models the Bitcoin macro cycle by comparing its logarithmic price against a log-transformed liquidity proxy (e.g., US M2 Money Supply). It helps visualize cyclical tops and bottoms by measuring the relative expansion of Bitcoin price versus fiat liquidity.
🧠 How It Works:
Transforms both BTC and M2 using natural logarithms.
Computes a liquidity ratio: log(BTC) – log(M2) (i.e., log(BTC/M2)).
Runs MACD on this ratio to extract business cycle momentum.
Plots:
🔴 Histogram bars showing cyclical growth or contraction.
🟢 Top line to track the relative price-to-liquidity trend.
🔴 Cycle peak markers to flag historical market tops.
⚙️ Inputs:
Adjustable MACD lengths
Toggle for liquidity trend line overlay
🔍 Use Cases:
Identifying macro cycle tops and bottoms
Timing long-term Bitcoin accumulation or de-risking
Confirming global liquidity's influence on BTC price movement
Note: This version currently uses US M2 (FRED:M2SL) as the liquidity base. You can easily expand it with other global M2 sources or adjust the weights.
Swing Trading Tool Provides Swing history and forecastSwing Forecast detects significant pivot swings and averages recent leg behavior to forecast the next swing Low/High in real time. Choose chart TF or a higher TF, set Lookback Legs and Min Move, and see a clean zig-zag of swings (with optional live tail), forecast lines on the latest bar, and a compact table showing Average start of up/down legs, Average leg sizes, forecasts, and a Trend row (EMA-based) that highlights whether the next likely move is toward a High or a Low (also shown as a label on the last candle). Includes alerts for price crossing the forecast next High/Low so you don’t miss inflection points. Designed for discretionary swing traders to gauge context and timing—not financial advice; always confirm with your own risk management and confluence.
NQ FVG + MSS ChecklistThe NQ FVG + MSS Quick Checklist is a visual trading HUD for Nasdaq 100 (NQ) futures. It helps traders quickly track key setup elements: session & previous day levels, 5M FVG, retests, 1M MSS, and 1M FVG inside MSS.
Each step can be manually ticked, and a Trade Score shows setup strength at a glance. The checklist table sits on top of all chart elements for easy reference without interfering with your analysis.
Features:
Step-by-step NQ trading checklist
Manual inputs with visual ✅/❌
Trade Score for quick setup confirmation
Table overlay always on top of the chart
Earnings & Fundamentals TableShows the Earnings Comparison and Other important data. Will keep updating
Credit Spread Alpha SignalCredit Spread Alpha Signal: Complete Description
Introduction and Purpose
The Credit Spread Alpha Signal is a custom indicator developed for TradingView, designed to monitor the credit spread between High Yield (HY) bond yields and the 10-Year US Treasury yield (US10Y). This indicator serves as an advanced macroeconomic tool for traders and investors, helping to identify shifts in risk sentiment, monetary policy adjustments, or financial stress in the economy. It combines credit market data with statistical analysis to generate inverted buy and sell signals, where wider spreads (deteriorated conditions) are seen as buy opportunities (green), and tight spreads (risk-on) as sell opportunities (red).
The script is original, inspired by macroeconomic concepts, and visualizes data intuitively with histograms, background colors, and signal arrows. It is particularly useful for portfolio traders seeking confirmation signals or early warnings, integrating seamlessly into charts of stocks, bonds, or crypto assets.
Key Concepts
- HY Spread : Calculated as the difference between the High Yield Corporate Effective Yield (symbol: BAMLH0A0HYM2EY) and the US10Y Yield. Wider spreads indicate higher credit risk and economic deterioration (buy opportunity in the inverted logic). Tight spreads reflect market optimism (risk-on, sell opportunity).
- Inverted Signal Logic : Unlike traditional interpretation, here widening spreads (stress) trigger green and buy arrows (↑ below the chart), suggesting entry into long positions during panics. Compressing spreads trigger red and sell arrows (↓ above the chart), indicating exit during optimism peaks.
- Visual Highlights : Green for spread > +2.2σ (financial stress, buy); Red for spread < low threshold (risk-on, sell); Optional orange for recession risk (inverted curve + high spread, strong buy).
The indicator uses statistics like simple moving average (SMA) and standard deviation for dynamic thresholds, making it adaptable to different market periods.
How It Works: Internal Calculations
1. Data Sources : Uses `request.security` to fetch daily data ("D") from US10Y, US02Y (for inverted curve), and HY Yield.
2. Spread Calculation : `spread_hy = hy_yield - us10y`.
3. Statistics :
- Average (SMA) of the spread over the last `sma_length` days (default: 120).
- Standard deviation (stdev) over the same period.
- High threshold: `avg_spread_hy + std_mult * std_spread_hy` (default: multiplier 2.2).
- Low threshold: Editable value (default: 1.5%).
4. Conditions :
- High stress (green/buy): `spread_hy > high_threshold`.
- Compression (red/sell): `spread_hy < low_threshold`.
- Recession risk (orange/strong buy, optional): Inverted curve (`us10y < us2y`) + spread > `recession_spread_threshold`.
5. Crossings for Signals :
- Buy (green ↑ below): Crossover above high threshold (`ta.crossover`).
- Sell (red ↓ above): Crossunder below low threshold (`ta.crossunder`).
These calculations are processed bar by bar, ensuring real-time updates.
Visual Elements
- Histogram : Plots the spread as columns (`plot.style_columns`), dynamically colored: Light green (90% transparency) for stress/buy; Light red (90%) for compression/sell; Gray for neutral; Orange for recession.
- Reference Line : Horizontal red line at zero for benchmark.
- Background Coloring : Applies color to the main chart (overlay=true via force_overlay): Light green for buy, Light red for sell, Orange for recession, no color for neutral.
- Signal Arrows : ↑ Green below the bar for buy (widening_cross); ↓ Red above the bar for sell (compressed_cross).
- Floating Legend : Label in the lower panel explaining thresholds and conditions, dynamically updated with editable values.
Editable Settings (Inputs)
- SMA Period (days) : Default 120; adjusts the horizon for average and standard deviation.
- Standard Deviation Multiplier : Default 2.2; sets sensitivity of the high threshold (e.g., 2.2σ for moderate alerts).
- Low Threshold for Compression (%) : Default 1.5; level to detect risk-on/sell.
- Enable Recession Risk? : Default false; activates combined condition of inverted curve + high spread.
- Spread Threshold for Recession (%) : Default 2.0; level for recession (visible if enabled).
These inputs allow customization via the TradingView interface, without editing the code.
Integrated Alerts
The indicator includes alert conditions (`alertcondition`) for notifications in TradingView:
- "ALERT: HY Spread High": Spread exceeds threshold - financial stress (Buy).
- "ALERT: HY Spread Compressed": Spread compressed - risk-on conditions (Sell).
- "ALERT: HY Spread Widening (Buy)": Crossover above - buy opportunity in stress.
- "ALERT: HY Spread Compressed (Sell)": Crossunder below - sell opportunity in risk-on.
- "ALERT: Recession Risk (Strong Buy)": Inverted curve + high spread - high recession risk, consider buy (if enabled).
Set up alerts for email, SMS, or webhook notifications.
Usage Tips and Considerations
- Recommended Timeframe : Daily ("D"), but works on others; data is forced to daily for consistency.
- Practical Application : Add to charts of indices like SPY or QQQ to correlate with market moves. Test on historical periods (e.g., 2020 for widening, 2021 for compressing) to validate signals.
- Limitations : Relies on external data (US10Y, HY Yield), which may have delays; spreads are typically positive. Not financial advice – use with complementary analysis.
- Advanced Customization : Adjust thresholds for volatile markets; enable recession for more robust macro signals.
This indicator transforms credit data into actionable alpha, helping navigate economic cycles with visual precision. For support or modifications, refer to the source code or TradingView community.
EMA Vision – MTF InsightEMA Calculation Timeframe: Compute the EMA on any timeframe (e.g. Chart, 1H, 4H, 1D) while viewing on your chart’s timeframe.
Confirmed or “Developing” EMA: Choose between plotting EMA values only after the higher timeframe bar closes (no repaint) or allowing real-time updates mid-bar, mirroring the “Wait for timeframe closes” behavior.
Clean Multi-TF Overlays: Visualize EMAs from up to three higher timeframes (1H, 4H, 1D) on any chart—each using native plots to stay anchored and accurate, just like built-in EMAs.
Optional Visual Smoothing Line: Add a secondary “smoothing” MA line (using SMA, EMA, SMMA, WMA, or VWMA) without altering the core EMA—keeps you visually aligned with built-in styling.
Superior Accuracy: No repainting, no misalignment—just clean EMA values that reflect exactly what you’d see in TradingView’s standard EMA with the same settings.
Quarterly Theory —Q1,Q2,Q3,Q4The Quarterly Theory Indicator is a trading tool designed to visualize the natural time-based cycles of the market, based on the principles of Quarterly Theory, popularized by the Inner Circle Trader (ICT). The indicator divides market sessions into four equal “quarters” to help traders identify potential accumulation, manipulation, and distribution phases (AMD model) and improve the timing of entries and exits.
Key Features:
Quarter Divisions (Q1–Q4):
Each market session (e.g., NY AM, London, Asia) is divided into four quarters.
Vertical lines mark the beginning of each quarter, making it easy to track session structure.
Optional labels show Q1, Q2, Q3, and Q4 directly on the chart.
True Open (Q2 Open):
The True Open is the opening price of Q2, considered a key reference point in Quarterly Theory.
A horizontal red line is drawn at the True Open price with a label showing the exact value.
This line helps traders filter bullish and bearish setups:
Buy below the True Open if the market is bullish.
Sell above the True Open if the market is bearish.
Session Awareness:
The indicator can automatically detect market sessions and reset lines and labels for each new session.
Ensures that only the current session’s True Open and quarter lines are displayed, reducing chart clutter.
Timeframe Flexibility:
Works on any chart timeframe (1-minute to daily).
Maintains accurate alignment of quarters and True Open regardless of the timeframe used.
Purpose of Quarterly Theory:
Quarterly Theory is based on the idea that market behavior is fractal and time-driven. By dividing sessions into four quarters, traders can anticipate potential market phases:
Q1: Initial price discovery and setup for the session.
Q2: Accumulation or manipulation phase, where the True Open is established.
Q3: Manipulation or Judas Swing phase designed to trap traders.
Q4: Distribution or trend continuation/reversal.
By visualizing these quarters and the True Open, traders can reduce ambiguity, identify high-probability setups, and improve their timing in line with the ICT AMD (Accumulation, Manipulation, Distribution) framework.
ETH Valuation Indicator╔═══════════════════════ RUBIXCUBE ════════════════════════════╗
This indicator combines multiple on-chain and market-based metrics into a single valuation score for Ethereum. It highlights periods of relative undervaluation (green zones) and overvaluation (red zones) by normalising several metrics into a 0–1 range and averaging them.
Price chart signals (top panel): Green arrows mark points where the indicator flagged historically attractive buying opportunities.
Valuation oscillator (bottom panel): Shows the combined score over time, cycling between undervalued and overvalued extremes.
Metric breakdown (side panel): Displays the contribution of each metric, their rate of change, and their current score.
This tool is designed for macro insight, not short-term trading. It helps contextualise Ethereum’s position in the market cycle and provides a data-driven framework for long-term investors.
╚═══════════════════════════════════════════════════════════╝
BTC Valuation Indicator╔═══════════════════ RUBIXCUBE ══════════════════════╗
This indicator combines multiple on-chain and market-based metrics into a single valuation score for Bitcoin. It highlights periods of relative undervaluation (green zones) and overvaluation (red zones) by normalising several metrics into a 0–1 range and averaging them.
- Price chart signals (top panel): Green arrows mark points where the indicator flagged historically attractive buying opportunities.
- Valuation oscillator (bottom panel): Shows the combined score over time, cycling between undervalued and overvalued extremes.
- Metric breakdown (side panel): Displays the contribution of each metric, their rate of change, and their current score.
This tool is designed for macro insight, not short-term trading. It helps contextualise Bitcoin’s position in the market cycle and provides a data-driven framework for long-term investors.
╚═════════════════════════════════════════════════╝
Auto Entry/SL/TP Zones + Dashboard (Fib + MACD Edition)🔥 Auto Entry/SL/TP Zones + Dashboard (Fib + MACD Edition)
This indicator automatically builds Entry, Stop Loss, and Fibonacci-based Take Profit zones on the chart.
It also includes a smart dashboard that combines multiple confirmations to help filter false signals.
Features:
📍 Automatic Entry / Stop Loss / Take Profit (TP1, TP2, TP3) zones.
📊 Dashboard with real-time market conditions.
📈 RSI + Trend (SMA50) + MACD + Divergences + Volume filter.
🎯 Clear LONG / SHORT / WAIT signals.
🚦 Highlights bullish/bearish divergences.
🟢 Works on any symbol & timeframe.
Usage:
When the dashboard shows LONG, follow blue Entry zone with green TP targets above.
When SHORT, follow red Entry zone with green TP targets below.
If WAIT, market conditions are unclear – avoid entry.
⚡ Designed for both intraday and swing traders.
Auto Entry/SL/TP Zones + Dashboard (Fib + MACD Filter)📊 Auto Entry/SL/TP Zones + Dashboard (with MACD Filter)
This indicator automatically builds Entry, Stop Loss, and Take Profit zones based on price action and Fibonacci extensions.
It also provides a dashboard with real-time market conditions and signals.
🔑 Features:
Automatic Zones:
Entry point is set when a trading signal appears.
Stop Loss is placed at the nearest local support/resistance.
Take Profit levels (TP1, TP2, TP3) are calculated using Fibonacci multipliers (0.618, 1.0, 1.618).
Signal Logic (Multi-confirmation):
✅ RSI (Relative Strength Index)
✅ SMA50 trend filter
✅ MACD confirmation (histogram & signal line alignment)
Dashboard Panel:
RSI value with dynamic color zones
Trend direction (Up / Down / Sideways)
Divergence (Bullish / Bearish)
Volume state (High / Low / Neutral)
MACD status
Final signal: LONG / SHORT / WAIT
Visual Objects on Chart:
Colored zones for Entry, Stop Loss, and TP levels
Labels with price levels (Entry, SL, TP1, TP2, TP3)
🎯 How to Use:
Wait for a signal (LONG or SHORT).
Zones (Entry, SL, TP1-TP3) will automatically appear on the chart.
Use the dashboard to confirm market conditions.
Enter only if RSI, Trend, and MACD confirm the same direction.
Manage your position using TP levels or add your own Trailing Stop.
⚠️ Notes:
Works on any timeframe and any market (Forex, Crypto, Stocks).
The strategy is not a trading bot – it’s an assistant to help identify optimal entries and exits.
Always combine with risk management and your own market analysis.
👉 If you like this tool – add it to favorites and use it in your trading setup! 🚀
MarketSurge EPS Line [tradeviZion]MarketSurge EPS Line
EPS trend line overlay for TradingView charts, inspired by the IBD MarketSurge (formerly MarketSmith) EPS line style.
Displays EPS trend line on price charts
Uses 4-quarter earnings moving average
Shows earnings momentum over time
Works with actual, estimated, or standardized earnings data
Customizable line color and width
This script creates an EPS trend line overlay, similar to the EPS line feature in IBD MarketSurge (previously MarketSmith), allowing you to visualize earnings trends alongside price action.
Add script to chart
EPS line appears automatically
Adjust color and width in settings if needed
Hover over line for earnings details
Settings:
EPS data type (actual/estimate/standardized)
Line color and width
💡 Tip:
For the complete IBD Style experience, pair this EPS line with IBD Style Candles to visualize price action with clean bars like IBD Style
Forward P/E CalculatorI could not find a forward P/E indicator that gave me proper results. So here is mine.
Locked 5m 13 EMA & 15m 20 EMA with Mid EMA & SignalsThis indicator overlays the 5-minute 13 EMA and the 15-minute 20 EMA on any chart timeframe up to 15 minutes, along with a mid EMA (5-minute 36-period) for reference.
Features include:
EMA Cross Detection: Shows bullish and bearish cross arrows when the 5m 13 EMA crosses the 15m 20 EMA.
EMA Fill: Highlights the area between the EMAs in green (bullish) or red (bearish).
Mid EMA Buy/Sell Signals: Generates buy signals when price touches the mid EMA in a bullish stack and sell signals in a bearish stack.
Custom Alerts: Alerts for EMA crosses, EMA stack direction, and mid EMA buy/sell triggers.
Timeframe Safety Warning: Alerts if applied on timeframes higher than 15 minutes.
Ideal For:
Traders who want a locked, non-repainting EMA setup for multi-timeframe analysis and clear entry/exit signals based on mid-range EMA interaction.
Inputs:
Show/Hide arrows for EMA crosses
Show/Hide fill between EMAs
Show/Hide mid EMA line
Show/Hide buy/sell signals
Fill transparency adjustment
SPX → NQ Levels ConverterSPX → NQ Levels Converter is a Pine Script indicator that projects key S&P 500 (SPX) levels onto the NASDAQ 100 (NQ) chart using a configurable conversion ratio.
• Dynamic ratio: calculates the live SPX/NQ ratio in real time.
• Static ratio: allows manual input of a fixed ratio.
• Supports up to 10 custom SPX levels, automatically converted into their equivalent NQ values.
• Each level is displayed with a line and label (SPX → NQ) with independent color settings.
• Advanced visualization controls:
• line extension (right, left, both, or fixed)
• line length & placement
• label side & offset.
• Lines and labels auto-update on every bar to stay accurate over time.
Use case: particularly useful for traders who track SPX option levels or support/resistance zones but execute trades on the NQ.
XMR Divergences vs KrakenSUMMARY
This script finds the percentage difference between Kraken, and multiple other exchanges, for the price of XMRUSD, and then runs a variable length moving average of those differences. Optionally, you can multiply by the reported volume of the exchange in question. Skip to "USAGE" at the bottom for a quick view of the settings. But I recommend reading DETAILED DESCRIPTION as well.
PURPOSE
The purpose of this script is to get a look into the relative funds flows of XMR between Kraken and the other exchanges. So long as an exchange withdraws are open: 1) Negative divergences indicate XMR outflows from the exchange under consideration, 2) Postive divergences indicate XMR inflows from Kraken to the exchange.
This appears to be moderately correlated with price movements in Monero (but not always). There is also the theory that positive accumulation is a leading indication of a growing probability of postive price action in the general crypto market, and negative accumulation is a leading indicator of an upcoming peak. In other words, exchanges like to accumulate Monero quietly during calm downtimes, and they like to manage its price from gaining too much attention (pump) during broad market positivity.
BACKGROUND
It's well known among XMR traders that most exchanges are operating on a heavy fractional reserve basis as regards Monero. The past 2 years have seen regular and repeated withdraw freezes, sometimes for weeks/months at a time. Occasionally, liquidity stress tests have been performed, with predictable results - none of these exchanges are able to continue supporting withdraws.
Kraken is the only exchange of meaningful volume that has never frozen withdraws for more than an hour or so. Thus, we theorize that Kraken is operating with all, or most of the XMR they claim to have.
Furthermore, we have seen in the past, large price negative price divergences of these fractional reserve exchanges relative to Kraken. As the social outcry grew stronger for this malfeasance, these exchanges have gone to greater lengths to hide their price divergences.
On minute-by-minute ; hour-by-hour basis, typically, a look with the naked eye would show oscillation around the zero point. But when you average it out, especially on lower timeframes (like the 1 and 5 min candles), you can very clearly see that when withdraws are shut down, these exchanges simultaneously diverge their prices downwards as well.
DETAILED DESCRIPTION
The ideal view of price divergence would compare second-by-second prices, and then run something like a rolling 4-hr or 1-day SMA to average out the overall divergences. However, due to limitations of TradingView, this is impractical/impossible for actual usage/viewing. As a result, a balance must be struck, when selecting the combination of the candle period, and the SMA lookback length.
I find that 5min candles, with a 48-period lookback (that equates to a rolling 4-hour SMA), offers the best view of recent and historical price divergence activity. This of course means that we're only sampling price divergences once every 5 minutes, but it still provides a decent look at what's happening. If this script gets popular, I wouldn't be surprised if these exchanges start timing their candle closes to mask their misdeeds, but that's of course speculative on my part.
The other important factor here, *IS TO MULTIPLY BY VOLUME*. Some of these no-volume exchanges have large price divergences. But if they're not doing any real volume, then it doesn't really have any real market impact. Thus, I recommend keeping the "Make volume adjustment" option on.
If that ends up happening, we'll have to infer that by comparing the difference in close prices, vs the difference in the highest or lowest intra-candle prices (wicks). Typically a divergence should have all 3 showing similar results.
Notes regarding "Sum_of_All": This only makes sense when multiplying by volume. So only check this if you also made the volume adjustment. Generally I believe that *Binance* sets the tone. However, we have seen numerous occasions where Binance diverges down, and the others diverge up. I believe this is a social influence tactic, since most people look at Binance price. Meanwhile, they're trying to accumulate some small amount on the other exchanges to minimize their overall loss. This of course assumes collusion by these exchanges, which is a high likely hood, seeing as how in May 2021, they all diverged together simultaneously (among other evidence).
USAGE
I recommend using your browser zoom, to see data beyond 1 month in the past.
Lookback - The number of candles over which to conduct a moving average. On 5-min candles for example, here's how the math works out:
12 - Equates to a 1 hr MA
24 - 2 hrs
48 - 4 hrs (default)
288 - 1 day
2880 - 10 days
Make Volume Adjustment - Recommend that you usually keep this on.
Line Widths - Set to preference
Show_Close_Price? - You can compute the difference at candle close. Or you can check the other boxes to compare the highest/lowest prices for intra candle prices (wicks).
Show Sum_of_All? - You can sum all of the differences, which only makes sense if you're making the volume adjustement. Default is off. Below, you can also choose which exchanges to include in the sum.
This works best on lower timeframes, like the 1m, 5, and 15m charts. I personally use 5m, with 48 or 96 length lookback. You get a better view of the real time price divergences that way.
Possible Deviations | Session Fibs📌 Session Fibs with Confluence Detection
This script automatically plots custom Fibonacci extensions from key market sessions and candles, giving you a structured view of intraday levels that matter:
Asia Session (20:00–00:00 NY time)
→ Marks the session high/low, draws fib projections, and shades the range.
London 4:00 AM (1H) Candle
→ Captures the 1-hour “last leg” move into London and projects fib levels.
New York Open Key Candles
→ 8:30 AM and 9:30 AM (5-minute) candles with fib projections.
⚡ Features
Custom fib set (0, 0.5, ±0.618, ±2.0, ±2.25, ±2.5, ±3.0, ±3.25, ±3.5, ±4.0, ±4.25, ±4.5, 4.618).
Adjustable line extension mode (none, right N bars, infinite right).
Toggleable labels & text color, with placement options (on line / left of line).
Asia session box highlight for visual clarity.
Confluence detection: automatically checks for overlapping fib levels between
Asia ↔ London (same day)
Today ↔ Previous day (optional)
→ Highlights overlaps with dashed lines + labels (e.g., LON -3.25 ≈ ASIA -2.25).
🎯 Use Case
Designed for traders who track session ranges and liquidity sweeps, this tool makes it easy to spot:
Intraday fib alignment between Asia and London.
Key NYO candles in relation to overnight ranges.
High-probability confluence zones for entries/exits.
AI Fib Strategy (Full Trade Plan)This indicator automatically plots Fibonacci retracements and a Golden Zone box (61.8%–65% retracement) based on the 4H candle body high/low.
Features:
Auto-detects session breaks or daily breaks (configurable).
Draws standard Fib retracement levels (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%).
Highlights the Golden Zone for high-probability trade entries.
Optional Take Profit extensions (TP1, TP2, TP3).
Fully compatible with Pine Script v6.
Usage:
Best applied on intraday charts (15m, 30m, 1H).
Use the Golden Zone for entry confirmations.
Combine with candlestick patterns, order blocks, or volume for stronger signals.