Thirdeyechart Gold – 8 XAUThe XAU – 8 Gold Version is the newest and most advanced edition in the Masterclass series, designed specifically for gold traders who need fast, accurate, and multi-angle analysis of XAU behavior across global markets. This version monitors 8 different gold-related symbols simultaneously, presenting all data inside a clean, solid boxed layout. It gives traders a clear view of global XAU direction without switching charts.
This version includes percentage change calculations for Weekly (W), Daily (D), 4-Hour (H4), and 1-Hour (H1) timeframes for all eight gold-related pairs you insert. Positive values appear in blue, negative in red. The upgraded layout is optimized to remain clean, compact, and readable even with eight gold symbols displayed.
Fast Trend Detection With Math Logic
The core of the Final Version is the Total Average Trend Strength Calculation, allowing traders to instantly identify whether gold is in a strong uptrend, weak uptrend, neutral zone, weak downtrend, or strong downtrend—based entirely on mathematical logic.
Math Logic Used:
Percent change per timeframe:
pct_tf = ((close_tf - open_tf) / open_tf) * 100
All timeframe values are collected:
values =
Total Average Strength:
Total_Avg = sum(values) / 4
Final Strength Interpretation (default thresholds):
≥ +0.50 → Strong Uptrend
+0.15 to +0.49 → Weak Uptrend
−0.14 to +0.14 → Neutral
−0.49 to −0.15 → Weak Downtrend
≤ −0.50 → Strong Downtrend
This system ensures fast, unbiased direction detection across all 8 gold symbols at once.
The 8-Gold layout allows traders to see global pressure on XAU from multiple markets such as USD, JPY, EUR, GBP, AUD, CHF, CAD, and NZD — making this version extremely powerful for global gold trend reading.
Disclaimer
© 2025 Thirdeyechart. All rights reserved. This indicator is for educational and informational purposes only. Not a buy/sell signal. Redistribution or commercial use without permission is strictly prohibited. The author is not responsible for any trading loss.
Indicators and strategies
Z-Score IndicatorThis script calculates the Z-Score to measure how many standard deviations the current price is from its mean (SMA). It is a classic tool for identifying statistical extremes and mean reversion opportunities.
Formula Z = (Close - Mean) / Standard Deviation
Visual Guide
Blue Line: The Z-Score value.
Red Dotted Lines (+/- 2): Statistical extremes.
> 2: Potentially Overbought.
< -2: Potentially Oversold.
Grey Dotted Line (0): The mean (fair value).
Settings
Lookback Period: Default is 30. Adjust to change sensitivity.
Thirdeyechart Gold – Masterclass FinalThe XAU Masterclass — Final Fix is the definitive TradingView indicator for serious gold traders. Built for speed and clarity, this edition combines a solid boxed layout with an advanced math logic core to detect trend strength quickly across multiple timeframes. Designed specifically for XAU and XAU-related pairs, the indicator shows percentage change on Weekly (W), Daily (D), 4H (H4), and 1H (H1), and distills those readings into a single Total Average Strength value for instant decision context.
Visuals are clean and compact — every symbol row sits inside a solid box so chart clutter is minimised and strength/direction read at a glance. Positive movements are highlighted in blue, negative in red. The Total Average is presented alongside the timeframe values and an interpreted label: “Strong Uptrend”, “Weak Uptrend”, “Neutral”, “Weak Downtrend”, “Strong Downtrend” — driven by configurable thresholds so you can tune sensitivity to your trading style.
Math logic (how it’s calculated):
Per timeframe percent change:
pct_tf = ((close_tf - open_tf) / open_tf) * 100
(calculated for W, D, H4, H1)
Normalize timeframes by simply using their signed percent changes (no external data):
values =
Total Average Strength (arithmetic mean):
Total_Avg = sum(values) / 4
Strength interpretation (default thresholds — adjustable):
Total_Avg >= +0.50 -> Strong Uptrend
+0.15 <= Total_Avg < +0.50 -> Weak Uptrend
-0.15 < Total_Avg < +0.15 -> Neutral
-0.50 < Total_Avg <= -0.15 -> Weak Downtrend
Total_Avg <= -0.50 -> Strong Downtrend
This approach keeps the computation transparent and fast while giving a consolidated market-strength readout. Traders can change thresholds or weighting if preferred; the default provides a reliable, conservative filter for most setups.
Usage note: This tool is informational and made for analysis — it does not issue buy/sell signals. Always combine with your own strategy and risk management.
Disclaimer / Copyright:
© 2025 Thirdeyechart. All rights reserved. Redistribution, copying, or commercial use without permission is prohibited. The author is not responsible for any trading losses or financial decisions made using this indicator.
cc AJ TIME WITH TIME EXTENSIONcc AJ TIME WITH TIME EXTENSION – Flexible Session & Time-Based Highlighter (v6)
A fully customizable Pine Script® indicator that lets you highlight specific times of day using three different calculation methods and draw extended background rectangles (session boxes) forward in time.
Features:
• Up to 6 independent time rules
• Three selectable detection methods for each rule (you can combine them):
– Direct minute match (e.g. when the current minute = your target)
– Addition method (hour + minute = target value)
– Subtraction method (minute − hour = target value)
• Each rule can independently color candles (barcolor) and/or draw a price-level rectangle
• Rectangles automatically extend right for a user-defined duration (hours + minutes)
• Individual control over fill color, opacity, border color, and border thickness
• Works on any timeframe and any symbol
• Uses UTC+2 as reference timezone (common for many European/London-based sessions – change in code if needed)
Perfect for marking custom session windows, recurring intraday time windows, or any personal time-based confluences you trade.
No external data, no repainting, no hidden calculations – completely transparent and compliant with TradingView House Rules.
Educational / personal use only • Not financial advice
Stochastic Average (2 TFs)“Stoch (2 TFs)” plots two separate Stochastic oscillators from two different timeframes in a single pane and adds an average line of all four values (%K and %D from each timeframe). It is designed to quickly compare short-term vs higher-timeframe momentum and see whether they are aligned or diverging.
The script is an overlay-off oscillator, so it appears in its own window under the price chart.
How it works
The indicator calculates a classic Stochastic (%K and %D) on two user-selectable timeframes:
tf1 (default 30 minutes)
tf2 (default 60 minutes)
For each timeframe it:
Requests the high, low and close series from that timeframe using request.security.
Computes %K as the smoothed position of the close within the lookback high/low range.
Computes %D as a moving average of %K.
So you get four lines in total:
K1 and D1 from timeframe 1
K2 and D2 from timeframe 2
A small table in the top-right of the pane shows which timeframes are currently selected for TF1 and TF2, so you always know what you are looking at even if you change the chart timeframe.
Inputs
%K Length – lookback period used to find highest high and lowest low.
%K Smoothing – smoothing length for the %K line.
%D Smoothing – smoothing length for the %D line.
30 (tf1) – first Stochastic timeframe (default 30m).
%K Color (1) / %D Color (1) – colors for K1 and D1.
60 (tf2) – second Stochastic timeframe (default 60m).
%K Color (2) / %D Color (2) – colors for K2 and D2.
Average Color – color for the current bar average line.
Average Prev Color – color for the previous-bar average line.
You can put this indicator on any chart timeframe; the internals always use the two selected timeframes via request.security.
Visual elements
The pane shows:
Four Stochastic lines:
K1 and D1 (for tf1), K2 and D2 (for tf2), using the input colors.
Three horizontal reference levels:
80 (upper band), 50 (middle), 20 (lower band).
A light blue background band between 80 and 20 to make the overbought/oversold zone easier to see visually.
A 2-cell table in the top-right with the current values of tf1 and tf2.
These elements make it easy to see when each timeframe is overbought, oversold, or in the middle zone, and whether the two timeframes are synchronized or showing divergence.
Average and previous-average lines
At the bottom of the script there is a simple composite measure:
Sum KD adds K1 + D1 + K2 + D2 and divides by 4.
Prev Sum KD does the same for the previous bar ( ).
Both are plotted as separate lines:
Sum KD – current bar average of all four Stochastic values (main composite).
Prev Sum KD – previous bar average (for comparison).
This makes it easy to see whether overall multi-timeframe Stochastic momentum is increasing or decreasing from bar to bar without having to visually average four separate curves.
How to use
Typical uses:
See short- vs higher-timeframe Stochastic at a glance and trade only when they agree.
Look for divergence between TF1 and TF2 (e.g., lower timeframe overbought while higher timeframe still neutral).
Use the average lines (Sum KD and Prev Sum KD) as a simple “multi-TF momentum gauge” for confirmations or filters.
FTAP PRO TREND This indicator plots the 20- and 200-period exponential moving averages on the chart with a coloring rule and an entry signal based on the start bar of the FTAP method
Alertas QQQ Pre-MarketEste indicador tienen solo las dos medias móviles simples la de 20 y la de 200
Key Levels: ATH + Previous Day + HTF S/RKey levels line indicator for all time high, previous day low and high for momentum trading
Thirdeyechart Global Gold – Last VersionThe XAU Solid Trend Table – Last Version is the ultimate TradingView indicator for gold traders who want a clean, professional, and comprehensive view of market direction. This version builds on previous releases by combining percentage changes, multiple timeframes, and a Total Average Calculation into a solid, boxed table that clearly displays strong and weak trends in XAU and its related pairs.
Users can monitor gold across Daily (D), 1-Hour (H1), 4-Hour (H4), and Weekly (W) timeframes. Positive movements are highlighted in blue, negative movements in red, and the Total Average calculation summarizes the overall trend strength, making it easy to spot whether XAU is in a strong uptrend, downtrend, or consolidating.
The table’s solid, boxed layout ensures all information is organized and visually clear, reducing clutter on the chart. This design helps traders quickly interpret market direction, plan trades, and compare multiple pairs like XAU/USD, XAU/JPY, and USD/JPY without confusion.
Coded personally using custom formulas, this indicator emphasizes precision, functionality, and readability. It’s ideal for intraday traders, swing traders, and long-term gold analysts who want a single tool to assess gold’s global movement efficiently.
This script is purely informational and educational. It does not provide buy or sell signals and does not guarantee profits. Traders must perform their own analysis and apply proper risk management before making any trading decisions.
Disclaimer / Copyright:
© 2025 Thirdeyechart. All rights reserved. Redistribution, copying, or commercial use of this code without permission is strictly prohibited. The author is not responsible for any trading losses or financial decisions made based on this script.
Thirdeyechart Global Gold – Version 3 (Safe)The XAU Global Trend Table – Version 3 is the latest enhanced TradingView indicator, designed exclusively for monitoring gold (XAU) and its related pairs. This version introduces a Total Average Calculation, allowing traders to quickly detect strong or weak trends across multiple timeframes. With this addition, Version 3 not only shows percentage changes but also provides a consolidated view of gold’s overall market strength.
Users can track gold across Daily (D), 1-Hour (H1), 4-Hour (H4), and Weekly (W) timeframes. Positive percentage changes are highlighted in blue, negative changes in red, while the Total Average helps identify whether the trend is gaining strength or losing momentum. This makes it easier to assess market direction and potential entry or exit zones without manually comparing multiple charts.
The indicator is coded personally, using custom formulas to calculate percentage changes and the Total Average, giving a unique, precise view of XAU movements. It works for XAU/USD, XAU/JPY, and USD/JPY, capturing gold’s global behavior and its correlation with major currencies. The table is positioned at the top-right corner and dynamically adjusts to the number of symbols entered.
Version 3 is specifically tailored for gold traders who want a quick, clear understanding of market strength and trend direction. It’s ideal for swing trading, intraday analysis, or long-term planning, providing an all-in-one visual tool to stay informed on gold’s global movement.
This script is purely informational and educational. It does not provide buy or sell signals, nor does it guarantee profits. Users should perform their own analysis and apply proper risk management before making trading decisions.
Disclaimer / Copyright:
© 2025 Thirdeyechart. All rights reserved. Redistribution, copying, or commercial use of this code without permission is strictly prohibited. The author is not responsible for any trading losses or financial decisions made based on this script.
Thirdeyechart Version 2 Global GoldThe XAU Global Direction Table – Version 2 is an enhanced TradingView indicator specifically designed for tracking gold (XAU) and related currency pairs. This version adds a Weekly (W) timeframe alongside Daily (D), 1-Hour (H1), and 4-Hour (H4) timeframes, providing a more complete overview of gold’s short-term, medium-term, and long-term market direction.
This indicator is coded personally, with custom formulas to calculate the percentage change of each symbol across all selected timeframes. Positive movements are highlighted in blue, and negative movements in red, giving traders a clear visual indication of gold’s direction. The table is optimized for monitoring XAU/USD, XAU/JPY, and USD/JPY, reflecting gold’s global behavior and its correlation with the US Dollar and Japanese Yen.
Users can add their preferred XAU-related pairs as a comma-separated list in the settings. The table is dynamically sized based on the number of symbols, positioned conveniently at the top-right corner of the chart for quick reference. This setup allows traders to see multiple timeframes simultaneously, aiding decision-making for swing trades, intraday trades, or long-term gold analysis.
Version 2 emphasizes gold only, making it a specialized tool for traders who want precise and concise data on XAU movements. It’s ideal for analyzing global gold trends, spotting potential entry or exit zones, or simply staying informed on market shifts.
This script is purely informational and educational. It does not provide buy or sell signals, nor guarantee profits. Users should conduct their own analysis and apply proper risk management before making trading decisions.
Disclaimer / Copyright:
© 2025 Ajik Boy. All rights reserved. This indicator is for educational and informational purposes only. The author is not responsible for any trading losses or financial decisions made based on this script. Redistribution, copying, or commercial use of this code without permission is strictly prohibited.
MACD Divergence auto displayed on chart, with alertsMACD Pivot Divergence Detector
This tool identifies MACD histogram divergences based on confirmed pivot highs and lows.
Instead of comparing swing points on the MACD line, this script focuses specifically on the histogram, which measures momentum shifts between MACD and Signal.
How it works
The script detects confirmed pivots using a two-bar swing structure.
When price breaks above a previous pivot high, the script compares the MACD histogram value at that pivot to the current histogram value:
• If price makes a higher high while the histogram makes a lower high, a potential bearish divergence is marked.
The reverse logic is applied for bullish divergence when price breaks below a pivot low.
What makes this script unique
It uses pivot-confirmed histogram values, not lookback-based divergence.
It evaluates divergence only at actual highs/lows, reducing false positives.
It marks divergence directly on the candles for visual clarity.
Alert conditions are included for automated detection.
How to use
Bullish signals may highlight potential momentum loss in downtrends; bearish signals may highlight momentum loss near highs. Divergence does not guarantee reversal and should be combined with broader context, structure, or trend analysis.
The Position Sizer (FinPip)The Position Sizer (FinPip) indicator is a crucial, all-in-one risk management tool designed to calculate the precise trade size required to limit your risk to a predetermined percentage of your total account capital.
This indicator helps you consistently execute sound risk management, regardless of the instrument's volatility or the trade's price levels.
Key Features:
Calculates Position Size: Based on your configurable Account Capital, desired Risk Percentage (default 2.5%), and the price distance between your Entry and Stop-Loss levels.
Visual Trade Planning: Plots three clear levels directly on the chart for easy visualization:
Entry Price (Blue)
Stop-Loss Price (SL) (Red)
Profit Target (Lime Green, calculated using the Reward:Risk Ratio).
Custom Risk Management: Easily adjust the Risk Percentage and the Reward:Risk Ratio (default 4.0) in the indicator's settings.
Heads-Up Display (HUD): A clean, fixed table in the bottom-left corner of the chart clearly displays all calculated metrics, including your Required Position Size (in units/shares/contracts), Risk Amount, and Potential Profit.
How to Use:
Enter your Account Capital and desired Risk % in the settings panel.
Set your desired Entry Price and Stop-Loss Price.
The indicator immediately calculates and displays the exact number of units you need to trade to maintain your risk limit.
Price Action - Bar CountDrawing from Al Brooks' emphasis on session rhythms in his books, this counts bars from market opens, resetting at US (0930-1600 ET), HK (0930-1200,1300-1600 HKT), or London (0800-1630 GMT) if selected. Labels every N bars (default 2) below, with custom colors per session and after-hours gray. Up to 79 in regular color, then faded. Helps track opening range tests and two-legged moves—focus on first hour dynamics for high-probability trades.
Price Action - H/L BarBased on Al Brooks' "Bar by Bar" (Chapter 09A, p.45-50) and "Trends" (p.98-105), this marks H (higher high with close above mid) and L (lower low with close below mid) swings. Marking pauses after each, resuming on pullback. Labels "H" above and "L" below bars for swing counting in trends or ranges. Key: Markets form two legs—use for measured moves or failed breakouts, always in context of prior extremes.
EP CPR Future CPR + 4 MA
1. CPR Trend Direction(Bias):
Bullish: If the current day's price is trading above the TC, it suggests a strong bullish trend where the CPR acts as a support zone.
Bearish: If the current day's price is trading below the BC, it suggests a strong bearish trend where the CPR acts as a resistance zone.
Range-Bound/Consolidation: If the price is trading within the CPR lines, it indicates a lack of clear directional bias and suggests a likely sideways or accumulation phase.
2. Moving average Trend Identification
Uptrend: If the price is above a moving average (and the MA line is sloping up), it confirms a bullish trend.
Downtrend: If the price is below a moving average (and the MA line is sloping down), it confirms a bearish trend.
Crossovers (Trading Signals)
A popular strategy involves using two moving averages—a short-term MA (e.g., 50-period) and a long-term MA (e.g., 200-period).
Golden Cross (Bullish Signal): Occurs when the shorter-term MA crosses above the longer-term MA.
Death Cross (Bearish Signal): Occurs when the shorter-term MA crosses below the longer-term MA.
Weekday-to-Weekday % Change (selectable, Line + Axis)Weekday-to-Weekday % Change
Plots % change between the chosen weekday occurrences (week-over-week style) or intraday open→close if you select that comparison type.
Shows as a line in a separate pane (overlay=false).
Auto-scales the Y-axis in percent using invisible padded bounds so TradingView draws a readable axis and ticks.
Optional EMA smoothing and labels on the selected-day bars.
Breakout Condition Indicator - Long - V2 - Mega 86Script used for swing trading - contains certain adjustable metrics that I use for scanning and day or entry
13 / 26 / 52 SMA Overlay13 / 26 / 52 SMA Overlay showing how short term is performing relative to long term.
Volatility Signal-to-Noise Ratio🙏🏻 this is VSNR: the most effective and simple volatility regime detector & automatic volatility threshold scaler that somehow no1 ever talks about.
This is simply an inverse of the coefficient of variation of absolute returns, but properly constructed taking into account temporal information, and made online via recursive math with algocomplexity O(1) both in expanding and moving windows modes.
How do the available alternatives differ (while some’re just worse)?
Mainstream quant stat tests like Durbin-Watson, Dickey-Fuller etc: default implementations are ALL not time aware. They measure different kinds of regime, which is less (if at all) relevant for actual trading context. Mix of different math, high algocomplexity.
The closest one is MMI by financialhacker, but his approach is also not time aware, and has a higher algocomplexity anyways. Best alternative to mine, but pls modify it to use a time-weighted median.
Fractal dimension & its derivatives by John Ehlers: again not time aware, very low info gain, relies on bar sizes (high and lows), which don’t always exist unlike changes between datapoints. But it’s a geometric tool in essence, so this is fundamental. Let it watch your back if you already use it.
Hurst exponent: much higher algocomplexity, mix of parametric and non-parametric math inside. An invention, not a math entity. Again, not time aware. Also measures different kinds of regime.
How to set it up:
Given my other tools, I choose length so that it will match the amount of data that your trading method or study uses multiplied by ~ 4-5. E.g if you use some kind of bands to trade volatility and you calculate them over moving window 64, put VSNR on 256.
However it depends mathematically on many things, so for your methods you may instead need multipliers of 1 or ~ 16.
Additionally if you wanna use all data to estimate SNR, put 0 into length input.
How to use for regime detection:
First we define:
MR bias: mean reversion bias meaning volatility shorts would work better, fading levels would work better
Momo bias: momentum bias meaning volatility longs would work better, trading breakouts of levels would work better.
The study plots 3 horizontal thresholds for VSNR, just check its location:
Above upper level: significant Momo bias
Above 1 : Momo bias
Below 1 : MR bias
Below lower level: significant MR bias
Take a look at the screenshots, 2 completely different volatility regimes are spotted by VSNR, while an ADF does not show different regime:
^^ CBOT:ZN1!
^^ INDEX:BTCUSD
How to use as automatic volatility threshold scaler
Copy the code from the script, and use VSNR as a multiplier for your volatility threshold.
E.g you use a regression channel and fade/push upper and lower thresholds which are RMSEs multiples. Inside the code, multiply RMSE by VSNR, now you’re adaptive.
^^ The same logic as when MM bots widen spreads with vola goes wild.
How it works:
Returns follow Laplace distro -> logically abs returns follow exponential distro , cuz laplace = double exponential.
Exponential distro has a natural coefficient of variation = 1 -> signal to noise ratio defined as mean/stdev = 1 as well. The same can be said for Student t distro with parameter v = 4. So 1 is our main threshold.
We can add additional thresholds by discovering SNRs of Student t with v = 3 and v = 5 (+- 1 from baseline v = 4). These have lighter & heavier tails each favoring mean reversion or momentum more. I computed the SNR values you see in the code with mpmath python module, with precision 256 decimals, so you can trust it I put it on my momma.
Then I use exponential smoothing with properly defined alphas (one matches cumulative WMA and another minimizes error with WMA in moving window mode) to estimate SNR of abs returns.
…
Lightweight huh?
∞
Universal Pivot ScannerUniversal Pivot Scanner
Professional pivot pattern detection for any market data source.
A robust pivot detector designed to work across all timeframes and data types - price action, technical indicators, volume, or custom studies. One tool, multiple applications.
Core Functionality
Identifies two high-probability retracement patterns:
HH+HL → Bullish continuation setup (higher high followed by higher low)
LL+LH → Bearish continuation setup (lower low followed by lower high)
Key Features
Non-repainting detection. Labels and alerts trigger at pivot confirmation, ensuring real-time actionable signals without historical bias.
Source flexibility. Compatible with any input - price data, oscillators (RSI, MACD), volume analysis, or proprietary indicators. Single implementation across multiple strategies.
Adaptive configuration. Adjustable lookback period optimizes performance for different market conditions and data types.
Recommended Settings
Lookback: 1 → Oscillators and momentum indicators
Lookback: 3-10 → Price action and ranging markets
Includes visualization table displaying recent pivot sequence and active pattern status.
Designed for systematic traders requiring consistent, verifiable signals across diverse market conditions.






















