HTF Order Blocks [TradeWithRon]HTF Order Blocks is a clean, multi-timeframe order-flow tool that maps bullish/bearish order blocks and optional breaker blocks from higher timeframes onto your current chart. It’s built for clarity and speed: minimal clutter, configurable labels, and optional Fibonacci extensions for quick projection work.
What it does
Identifies Order Blocks (OBs) using swing structure (configurable lookback).
Marks Breaker Blocks when an OB is breached and market structure flips.
Projects HTF zones from up to two higher timeframes (HTF1 & HTF2), with separate color themes.
Clean visuals: open lines, and smart label placement.
Optional Fibonacci extensions from each OB for quick confluence checks.
Alert-ready: receive alerts on creation of Bullish/Bearish OBs and Breakers.
Key Features
Multi-Timeframe Mapping
Enable HTF1 and/or HTF2 and project their OBs on your active chart.
Uses request.security() with lookahead_off to avoid future-bar leakage.
Fibonacci Add-On (optional)
How it works (logic overview)
Swing detection: Finds recent pivots using a lookback window.
OB creation:
Bullish OB: Created after price closes above a prior swing high, then scans the upswing for the most meaningful base candle range (high/low/open/close).
Bearish OB: Created after price closes below a prior swing low, with symmetric logic.
Breaker state:
A bullish OB turns breaker if price later closes below its base;
A bearish OB turns breaker if price closes above its base.
Cleanup: Breakers are removed if price subsequently recovers past the opposing OB boundary.
HTF OBs are detected on their native timeframe and projected to the active chart; confirmation occurs on the HTF bar’s close.
Ciclos
EMA 21 Big Candle SetupKey Features:
EMA 21 plotted in yellow
Detects big candles that are 1.5x larger than the average candle size (using ATR)
Bullish Setup: Green triangle when a big bullish candle crosses above EMA 21
Bearish Setup: Red triangle when a big bearish candle crosses below EMA 21
Visual feedback: Big candles are highlighted with transparent colors
Info box: Shows current EMA value, candle size, and whether it's a big candle
Anchored VWAP Close-Above Alert (Daily)This indicator is a daily anchored VWAP (Volume-Weighted Average Price) tracker that alerts you when price closes above a key pivot line you’ve defined — either dynamically (anchored VWAP from a date like 9/5) or statically (a fixed level like 126.65).
Here’s how each piece works:
1. The anchor date
You give it a date — say September 5, 2025. The script starts calculating VWAP from that day forward. That line represents the average price buyers and sellers have transacted at since that anchor. It’s a kind of “fair-value line” for that period.
2. The logic
Every bar after that date, it adds up (price × volume) and divides by total volume — giving a running VWAP from that starting point. You can instead lock it to a flat number (like 126.65) if you don’t want it recalculating.
3. The alert trigger
Once per day — when the daily candle closes — it checks:
“Did price close above my watched line?”
If yes, it fires an alert (and can draw a label) to tell you that the day’s candle reclaimed that level.
4. The why
That kind of move — a daily close reclaiming a major anchored VWAP — often signals a shift in sentiment or trend strength. Traders watch it to confirm rebounds or invalidations of downside moves.
So in your context:
You anchored to 9/5 (the downside pivot).
You want to know if price closes back above that VWAP (~126.65).
If it does, the alert lights up — confirming the “reclaim” you mentioned in your note.
It’s basically your guard dog for the daily close reclaim.
黄金专用LPPL特征检测(Log-Periodic Power Law Singularity)专门用于黄金走势的LPPL检测,在技术分析中,LPPL 奇点指的是对数周期幂律奇异性(Log-Periodic Power Law Singularity),它是对数周期幂律模型(LPPL)中的一个关键概念。以下是关于它的详细介绍:
提出者及背景:LPPL 模型是由研究市场泡沫的先驱者、物理学家迪迪埃・索尔内特(Didier Sornette)等人提出的。该模型结合了理性预期泡沫的经济理论、投资者的模仿和羊群行为的行为金融学以及分岔和相变的数学统计物理学,用于检测金融市场中的泡沫和预测市场转折点。
模型原理:LPPL 模型假设当市场出现泡沫时,资产价格会呈现出一种特殊的波动模式,这种模式由正反馈机制驱动。在泡沫形成过程中,投资者的模仿和跟风行为导致市场参与者的一致性和协同性急剧上升,价格出现 “快于指数” 的增长,同时伴随着加速的对数周期振荡。而 LPPL 奇点就是价格增长和振荡达到极限的那个有限时间点,在这个点之前,价格增长越来越快,振荡频率也越来越高,当到达奇点时,泡沫破裂,市场往往会出现急剧的反转和崩盘。
数学表达:LPPL 模型的数学公式较为复杂,其原始形式提出了一个由 3 个线性参数和 4 个非线性参数组成的函数。通过将这个函数与对数价格时间序列进行拟合,可以估计出模型的参数,进而确定奇点的时间位置等信息。
在金融市场中的应用:LPPL 模型及其中的奇点概念主要用于检测金融市场中的泡沫和预测市场的崩溃点。例如,在 2008 年石油价格泡沫和 2009 年上海股市泡沫等事件中,该模型都被用于分析和预测市场的转折点。不过,该模型也存在一定的局限性,比如对奇点具体点位的预测误差较大,而且市场情况复杂多变,可能会有强大的外力干扰等因素影响模型的准确性。
The LPPL model was proposed by physicist Didier Sornette, a pioneer in the study of market bubbles, and others. The model combines the economic theory of rational expectations bubbles, behavioral finance on investor imitation and herding behavior, and the mathematical statistical physics of bifurcations and phase transitions to detect bubbles in financial markets and predict market turning points.
Model Principle: The LPPL model posits that when a market bubble forms, asset prices exhibit a distinctive pattern of fluctuation driven by a positive feedback mechanism. During the bubble's formation, investors' imitation and bandwagon-following behavior lead to a sharp increase in consistency and coordination among market participants, resulting in "faster-than-exponential" price growth accompanied by accelerating logarithmic-periodic oscillations. The LPPL singularity is the finite point in time where price growth and oscillation reach their limits. Prior to this point, prices grow increasingly faster, and the frequency of oscillations increases. When the singularity is reached, the bubble bursts, and the market often experiences a sharp reversal and crash.
Timebender – 369 PivotsTimebender – 369 Pivots is a clean visual study that marks swing highs and lows with numeric “369-sequence” digits derived from time.
Each digit is automatically color-coded into Accumulation (1 – 3), Manipulation (4 – 6), and Distribution (7 – 9) phases, helping traders identify rhythm and symmetry in market structure.
Labels float above or below bars for clear visibility and never overlap price, allowing smooth zoom and multi-timeframe use.
This base model focuses on clarity, precision, and efficient plotting — no toggles, no clutter — a stable foundation for future Timebender builds.
Gold and Bitcoin: The Evolution of Value!The Eternal Luster of Gold
In the dawn of time, when the earth was young and rivers whispered secrets to the stones, a wanderer named Elara found a gleam in the silt of a sun-kissed stream. It was pure gold, radiant like a captured star fallen from the heavens. She held it in her palm, feeling its warmth pulse like a heartbeat, and in that moment, humanity’s soul awakened to the allure of eternity.
As seasons turned to centuries, gold wove itself into the story of empires. In ancient Egypt, pharaohs crowned themselves with its glow, believing it to be the flesh of gods. It built pyramids that reached for the sky and tombs that guarded kings forever. Across the sands in Mesopotamia, merchants traded it for spices and silks, its weight a promise of power and trust.
Translation moment: Gold became the first universal symbol of value. People trusted it more than words or promises because it did not rust, fade, or vanish.
The Greeks saw in gold not only wealth but wisdom, the symbol of the sun’s eternal fire. Alexander the Great carried it across the continent, forging an empire of golden threads. Rome rose on its back, minting coins whose clink echoed through history.
Through the ages, gold endured the rush of California’s dreamers, the halls of Versailles, and the quiet vaults of modern fortunes. It has been both a curse and a blessing, the fuel of wars and the gift of love, whispering of beauty’s fragility and the human desire for something that lasts beyond the grave. In its shine, we see ourselves fragile yet forever chasing light.
The Digital Dawn of Bitcoin
Centuries later, under the glow of computer screens, a visionary named Satoshi dreamed of a new gold born not from the earth but from the ether of ideas. Bitcoin appeared in 2009 amid a world weary of banks and broken trust.
Like gold’s ancient gleam, Bitcoin was mined not with picks but with puzzles solved by machines. It promised freedom, a currency without kings, flowing from person to person, unbound by borders or empires.
Translation moment: Bitcoin works like digital gold. Instead of digging the ground, miners use computers to solve problems and unlock new coins. No one controls it, and that is what makes it powerful.
Through doubt and frenzy, it rose as a beacon for those seeking sovereignty in a digital world. Its volatility became its soul, a reminder that true value is built on belief. Bitcoin speaks to ingenuity and rebellion, a star of code guiding us toward a future where wealth is weightless yet profoundly honest.
Gold’s Cycles: Echoes of War and Crisis
In the early 20th century, gold was held under fixed prices until the Great Depression of 1929 shattered these illusions. The 1934 dollar devaluation lifted it from 20.67 to 35, restoring faith amid despair. When World War II erupted in 1939, gold’s role as a refuge was muted by controls, yet it quietly held its place as the world’s silent guardian.
The 1970s awakened its wild spirit. The Nixon Shock of 1971 freed gold from 35, sparking a bull run during the 1973 Oil Crisis. The 1979 Iranian Revolution led to a 1980 peak of 850, a leap of more than 2,000 percent, as investors sought safety from the chaos.
Translation moment: When fear rises, people rush to gold. Every major war or economic crisis has sent gold upward because it feels safe when paper money loses trust.
The 1987 stock crash caused brief dips, but the 1990 Gulf War reignited its glow. Around 2000, after the Dot-com Bust, gold found new life, climbing from $ 270 to over $1,900 during the 2008 Financial Crisis. It dipped to 1050 in 2015, then surged again past 2000 during the 2020 pandemic.
The 2022 Ukraine War added another chapter with prices climbing above 2700 by 2025. Across a century of crises, gold has risen whenever fear tested humanity’s resolve, teaching patience and fortitude through its quiet endurance.
Bitcoin’s Cycles: Echoes of Innovation and Crisis
Born from the ashes of the 2008 Financial Crisis, Bitcoin began its story at mere cents. It traded below $1 until 2011, when it reached $30 before crashing by 90 percent following the MTGOX collapse.
In 2013, it soared to 1242 only to fall again to 200 in 2015 as regulations tightened. The 2017 bull run lifted it to nearly 20000 before another long winter brought it to 3200 in 2018. Each fall taught resilience, each rise renewed belief.
During the 2020 pandemic, it fell below 5000 before rallying to 69000 in 2021. The Ukraine War and the FTX collapse of 2022 brought it down to 16000, but also proved its role in humanitarian aid. By 2024, the halving and ETF approvals helped it break 100000, marking Bitcoin’s rise as digital gold.
Translation moment: Bitcoin’s rhythm follows four-year halving cycles when mining rewards are cut in half. This keeps supply limited, which often triggers new bull runs as demand returns.
Every four years, it's halving cycles 2012, 2016, 2020, 2024, fueling new waves of adoption and correction. Bitcoin grows strongest in times of uncertainty, echoing humanity’s drive to evolve beyond limits.
The Harmony of Gold and Bitcoin Modern Parallels
In today’s markets, gold’s ancient glow meets Bitcoin’s electric pulse. As of October 17, 2025, their correlation stands near 0.85, close to its historic high of 0.9. Both rise as guardians against inflation and the erosion of trust in the dollar.
Gold trades near 4310 per ounce a record high while Bitcoin hovers around 104700 showing brief fractures in their unity. Gold offers the comfort of touch while Bitcoin provides the thrill of code. Together, they reflect fear and hope, the twin emotions that drive every market.
Translation moment: A correlation of 0.85 means they often move in the same direction. When fear or inflation rises, both gold and Bitcoin tend to rise in tandem.
Analysts warn of bubbles in stocks, gold, and crypto, yet optimism remains for Bitcoin’s growth through 2026, while gold holds its defensive strength.
Gold carries risks of storage cost and theft, but steadiness in chaos. Bitcoin carries volatility and regulatory challenges, but it also offers unmatched innovation and reach. One is the anchor, the other the dream, and both reward those who hold conviction through uncertainty.
Epilogue: The Timeless Balance
Gold and Bitcoin form a bridge between the ancient and the future. Gold, the earth’s eternal treasure, stands as a symbol of stability and truth. Bitcoin, the digital heir, shines with the spark of innovation and freedom.
Experts view gold as the ultimate inflation hedge, forged in fire and tested over centuries. They see Bitcoin as its digital counterpart, scarce by code and limitless in reach.
Gold’s weight grounds us in reality while Bitcoin’s light expands our imagination. In 2025, as gold surpasses $4,346 and Bitcoin hovers near $105,000, the wise investor sees not rivals but reflections.
Translation moment: Gold reminds us to protect what we have. Bitcoin reminds us to dream of what could be. Together, they balance caution and courage, the two forces every generation must master.
One whispers of legacy, the other of evolution, yet together they tell humanity’s oldest story, our unending quest to preserve value against time and to chase the light that never fades.
🙏 I ask (Allah) for guidance and success. 🤲
USCBBS-WDTGAL-RRPONTSYDThis is the U.S. Financial Market Net Liquidity.
The calculation method is to subtract the U.S. Treasury General Account balance (WDTGAL) and then the Overnight Reverse Repo balance (RRPONTSYD) from the Federal Reserve's balance sheet total (USCBBS).
Gold Market Cap vs BTC Market Cap Ratio
What the script calculates
Gold market cap: XAUUSD spot price × total above-ground stock (converted to troy ounces) in trillions USD.
BTC market cap: Live data from TradingView's CRYPTOCAP:BTC symbol, which provides Bitcoin's circulating market cap (already in USD, converted to trillions here).
Ratio: Gold market cap ÷ BTC market cap (e.g., 1.0 means gold market cap equals BTC; 2.0 means gold is twice BTC's market cap)
Timebender - Fractal CloseTimebender – Fractal Close displays which higher-timeframe candles (Daily, Weekly, Monthly) are scheduled to close within the next 24 hours — helping traders anticipate potential volatility and liquidity shifts around key session or higher-TF closes.
It automatically scans:
• Daily: 1D → 11D
• Weekly: 1W → 3W
• Monthly: 1M → 12M
The detected timeframes are shown in a compact on-chart table that can be positioned anywhere (top, middle, bottom — left, center, or right). You can also customize text color, background, and font size for visual clarity.
Use it to align intraday setups with higher-timeframe structure, or to prepare for major session transitions as multiple fractal closes converge.
Timebender - 90 Minute KillzonesTimebender – 90 Minute Killzones
This indicator divides each trading day into sixteen 90-minute blocks based on New York Time.
Each zone is color-coded by session:
🔴 Asian
🟢 London
🔵 New York AM
🟣 New York PM
It helps visualize recurring intraday rhythms and session overlaps without adding signals or bias.
Includes an optional Daily Close Line (18:00 NYT) to mark the end of the trading day, now zoom-safe and toggleable.
Built for structure, clarity, and visual balance — nothing more, nothing less.
Real Relative Strength Breakout & BreakdownReal Relative Strength Breakout & Breakdown Indicator
What It Does
Identifies high-probability trading setups by combining:
Technical Breakouts/Breakdowns - Price breaking support/resistance zones
Real Relative Strength (RRS) - Volatility-adjusted performance vs benchmark (SPY)
Key Insight: The strongest signals occur when price action contradicts market direction—breakouts during market weakness or breakdowns during market strength show exceptional buying/selling pressure.
Real Relative Strength (RRS) Calculation
RRS measures outperformance/underperformance on a volatility-adjusted basis:
Power Index = (Benchmark Price Move) / (Benchmark ATR)
RRS = (Stock Price Move - Power Index × Stock ATR) / Stock ATR
RRS (smoothed) = 3-period SMA of RRS
Interpretation:
RRS > 0 = Relative Strength (outperforming)
RRS < 0 = Relative Weakness (underperforming)
Signal Types
🟢 Large Green Triangle (Premium Long)
Condition: Breakout + RRS > 0
Meaning: Stock breaking resistance WHILE outperforming benchmark
Best when: Market is weak but stock breaks out anyway = exceptional strength
Use: High-conviction long entries
🔵 Small Blue Triangle (Standard Breakout)
Condition: Breakout + RRS ≤ 0
Meaning: Breaking resistance but underperforming benchmark
Typical: "Rising tide lifts all boats" scenario during market rally
Use: Lower conviction—may just be following market
🟠 Large Orange Triangle (Premium Short)
Condition: Breakdown + RRS < 0
Meaning: Stock breaking support WHILE underperforming benchmark
Best when: Market is strong but stock breaks down anyway = severe weakness
Use: High-conviction short entries
🔴 Small Red Triangle (Standard Breakdown)
Condition: Breakdown + RRS ≥ 0
Meaning: Breaking support but outperforming benchmark
Typical: Stock falling less than market during selloff
Use: Lower conviction—may recover when market does
Why Large Triangles Matter
Large signals show divergence = genuine institutional flow:
Stock breaking out while market falls → Aggressive buying despite headwinds
Stock breaking down while market rallies → Aggressive selling despite tailwinds
These setups reveal where real conviction lies, not just momentum-following behavior.
Quick Settings
RRS: 12-period lookback, 3-bar smoothing, vs SPY
Breakouts: 5-period pivots, 200-bar lookback, 3% zone width, 2 minimum tests
Gann Dynamic Levels [SmartFoxy]# 🌌 Gann Dynamic Levels
Gann Dynamic Levels is a dynamic Gann-based framework that calculates proportional and exponential levels using customizable methods — including planetary ratios.
Perfect for traders focused on cycles , ratios , and harmonic structures .
Inspired by the geometric and harmonic principles of W.D. Gann , this multifunctional tool automatically plots time–price projection levels based on user-defined anchor points.
It combines multiple calculation techniques to capture both linear and exponentia l market symmetries.
The indicator adapts dynamically to price movement, helping traders identify potential reversal zones , time clusters , and harmonic expansions derived from proportional and planetary relationships.
---
## ⚙️ Core Features
Five Calculation Methods — Linear, ratio-based, geometric, and exponential spacing for multi-perspective analysis.
Planetary Scaling Mode — Optional mode based on astronomical distances (Titius–Bode Law), adding an astronomical dimension to level spacing.
Adaptive Offset Control — Shifts all projected levels left or right proportionally without changing their internal spacing.
Automatic Label Management — Dynamically updates or reuses labels for better clarity and improved chart performance.
Custom Styling — Full control over colors, widths, label positions, and line styles for each method.
---
## 🌐 Purpose
Designed for traders who combine Gann theory , harmonic ratios , and cyclical timing to visualize equilibrium zones and future market symmetry.
Whether used for short-term timing or long-term structural projections, Gann Dynamic Levels provides an adaptive, geometry-based framework for interpreting market behavior.
---
## 📘 How to Use
When first applied, the indicator prompts you to place two points on the chart — for example, at the start and end of a significant price range.
The indicator calculates the number of bars between these two points, known as Delta .
Delta serves as the base unit for all calculations in Methods #1–#5 .
The computed results are displayed in Table 1 , which can be toggled using the parameter “📱 Show Gann Levels Table”.
You can reset or reposition the initial points in two ways:
Drag the existing points to new positions on the chart.
Hover over the indicator name, click ⦁⦁⦁ (More) → select “ Reset Points ”, then set new reference points.
---
## ⚙️ Method Logic
Classic – Evenly spaced levels based on the base Delta value. Ideal for identifying key support and resistance zones.
Coefficient (Coeff) – Scales Delta by fractional or whole-number coefficients for proportional level spacing.
Rounded – Rounds each calculated level to the nearest significant price value to align with major zones.
Subtractive – Generates levels by subtracting multiples of Delta from a reference point, emphasizing retracement-type structures.
Exponential – Applies an exponential growth model (10a = 4 + 3×2ⁿ) to project dynamic, non-linear level expansion.
Planetary – Uses the average distances of planets from the Sun (in Astronomical Units, AU ) as ratio multipliers to create harmonic projections.
Planetary distances can be customized in the user settings.
Data for Method #6 (Planetary) is displayed in Table 2 , toggled via “ 🪐 Show Planetary Table. ”
---
## ➡️ Additional Feature
Offset – Shifts all Gann levels horizontally (left or right) without changing their spacing.
Useful for visually aligning levels with key market structures.
---
### 🧭 Summary
A multi-method Gann framework combining geometric, harmonic, and planetary ratios for dynamic level projection and cycle analysis.
Session times for London (UTC 07:00–16:00 UTC)Session times for London (UTC 07:00–16:00 UTC). Shows the trading hours for the London Session Mon-Fri
Timebender - Sum of TimeTimebender – Sum of Time
A minimalist numerological clock that decodes the vibration of the moment.
It calculates and displays the digital sum of the current date and time, assigning colors based on the 1–3 (Accumulation), 4–6 (Manipulation), and 7–9 (Distribution) cycle.
Clean, efficient, and fully synchronized with your chart’s timezone.
Simplified Percentile ClusteringSimplified Percentile Clustering (SPC) is a clustering system for trend regime analysis.
Instead of relying on heavy iterative algorithms such as k-means, SPC takes a deterministic approach: it uses percentiles and running averages to form cluster centers directly from the data, producing smooth, interpretable market state segmentation that updates live with every bar.
Most clustering algorithms are designed for offline datasets, they require recomputation, multiple iterations, and fixed sample sizes.
SPC borrows from both statistical normalization and distance-based clustering theory , but simplifies them. Percentiles ensure that cluster centers are resistant to outliers , while the running mean provides a stable mid-point reference.
Unlike iterative methods, SPC’s centers evolve smoothly with time, ideal for charts that must update in real time without sudden reclassification noise.
SPC provides a simple yet powerful clustering heuristic that:
Runs continuously in a charting environment,
Remains interpretable and reproducible,
And allows traders to see how close the current market state is to transitioning between regimes.
Clustering by Percentiles
Traditional clustering methods find centers through iteration. SPC defines them deterministically using three simple statistics within a moving window:
Lower percentile (p_low) → captures the lower basin of feature values.
Upper percentile (p_high) → captures the upper basin.
Mean (mid) → represents the central tendency.
From these, SPC computes stable “centers”:
// K = 2 → two regimes (e.g., bullish / bearish)
=
// K = 3 → adds a neutral zone
=
These centers move gradually with the market, forming live regime boundaries without ever needing convergence steps.
Two clusters capture directional bias; three clusters add a neutral ‘range’ state.
Multi-Feature Fusion
While SPC can cluster a single feature such as RSI, CCI, Fisher Transform, DMI, Z-Score, or the price-to-MA ratio (MAR), its real strength lies in feature fusion. Each feature adds a unique lens to the clustering system. By toggling features on or off, traders can test how each dimension contributes to the regime structure.
In “Clusters” mode, SPC measures how far the current bar is from each cluster center across all enabled features, averages these distances, and assigns the bar to the nearest combined center. This effectively creates a multi-dimensional regime map , where each feature contributes equally to defining the overall market state.
The fusion distance is computed as:
dist := (rsi_d * on_off(use_rsi) + cci_d * on_off(use_cci) + fis_d * on_off(use_fis) + dmi_d * on_off(use_dmi) + zsc_d * on_off(use_zsc) + mar_d * on_off(use_mar)) / (on_off(use_rsi) + on_off(use_cci) + on_off(use_fis) + on_off(use_dmi) + on_off(use_zsc) + on_off(use_mar))
Because each feature can be standardized (Z-Score), the distances remain comparable across different scales.
Fusion mode combines multiple standardized features into a single smooth regime signal.
Visualizing Proximity - The Transition Gradient
Most indicators show binary or discrete conditions (e.g., bullish/bearish). SPC goes further, it quantifies how close the current value is to flipping into the next cluster.
It measures the distances to the two nearest cluster centers and interpolates between them:
rel_pos = min_dist / (min_dist + second_min_dist)
real_clust = cluster_val + (second_val - cluster_val) * rel_pos
This real_clust output forms a continuous line that moves smoothly between clusters:
Near 0.0 → firmly within the current regime
Around 0.5 → balanced between clusters (transition zone)
Near 1.0 → about to flip into the next regime
Smooth interpolation reveals when the market is close to a regime change.
How to Tune the Parameters
SPC includes intuitive parameters to adapt sensitivity and stability:
K Clusters (2–3): Defines the number of regimes. K = 2 for trend/range distinction, K = 3 for trend/neutral transitions.
Lookback: Determines the number of past bars used for percentile and mean calculations. Higher = smoother, more stable clusters. Lower = faster reaction to new trends.
Lower / Upper Percentiles: Define what counts as “low” and “high” states. Adjust to widen or tighten cluster ranges.
Shorter lookbacks react quickly to shifts; longer lookbacks smooth the clusters.
Visual Interpretation
In “Clusters” mode, SPC plots:
A colored histogram for each cluster (red, orange, green depending on K)
Horizontal guide lines separating cluster levels
Smooth proximity transitions between states
Each bar’s color also changes based on its assigned cluster, allowing quick recognition of when the market transitions between regimes.
Cluster bands visualize regime structure and transitions at a glance.
Practical Applications
Identify market regimes (bullish, neutral, bearish) in real time
Detect early transition phases before a trend flip occurs
Fuse multiple indicators into a single consistent signal
Engineer interpretable features for machine-learning research
Build adaptive filters or hybrid signals based on cluster proximity
Final Notes
Simplified Percentile Clustering (SPC) provides a balance between mathematical rigor and visual intuition. It replaces complex iterative algorithms with a clear, deterministic logic that any trader can understand, and yet retains the multidimensional insight of a fusion-based clustering system.
Use SPC to study how different indicators align, how regimes evolve, and how transitions emerge in real time. It’s not about predicting; it’s about seeing the structure of the market unfold.
Disclaimer
This indicator is intended for educational and analytical use.
It does not generate buy or sell signals.
Historical regime transitions are not indicative of future performance.
Always validate insights with independent analysis before making trading decisions.
ATC v6ATC v6 Indicator: Automatic Session and Time Lines
Designed by Alfa Trade Club for TradingView users, ATC v6 is an advanced
indicator that automatically marks key session opens, closes, and specific times
of financial markets on your chart. This tool eliminates the need to manually track
critical trading hours, allowing you to easily analyze price action in relation to
these important timeframes.
Key Features
This indicator comes with a set of powerful features that provide the flexibility
and visual clarity traders need:
Multi-Time Zone Support: The indicator is based on the world’s three largest
financial market centers:
New York (America/New_York)
London (Europe/London)
Tokyo (Asia/Tokyo)
This allows you to accurately set the lines according to the local time of the
market you are trading.
Customizable Time Lines: Each time zone includes multiple predefined lines
(e.g., “NY Midnight,” “London Open,” “Tokyo Open”). Users can:
Enable or disable each line
Set any desired hour and minute
Assign distinct colors for clear visual separation
Pre-Session Function: This standout feature draws a dotted line a few
minutes before a main time you specify (e.g., the market open). This lets you see
the price level immediately before a key event.
Automatic Price Boxes: When the Pre-Session feature is active, the indicator
draws a colored box between the price at the pre-session moment and the price
at the main event. This box highlights the price range between the pre-
session and the main event, effectively visualizing the volatility at the
session open.
Forward-Extending Lines: All lines extend forward from the moment they are
drawn until the next day. This helps you track how these levels act as support or
resistance throughout the trading session.
Who Is It For?
Session-Focused Traders: Ideal for those tracking volatility during
London, New York, or Asian session opens.
Day Traders: Perfect for marking key economic data releases or daily
open/close levels.
Technical Analysts: A powerful tool for visually analyzing how opening
prices influence price behavior throughout the day.
ALISH WEEK LABELS THE ALISH WEEK LABELS
Overview
This indicator programmatically delineates each trading week and encapsulates its realized price range in a live-updating, filled rectangle. A week is defined in America/Toronto time from Monday 00:00 to Friday 16:00. Weekly market open to market close, For every week, the script draws:
a vertical start line at the first bar of Monday 00:00,
a vertical end line at the first bar at/after Friday 16:00, and
a white, semi-transparent box whose top tracks the highest price and whose bottom tracks the lowest price observed between those two temporal boundaries.
The drawing is timeframe-agnostic (M1 → 1D): the box expands in real time while the week is open and freezes at the close boundary.
Time Reference and Session Boundaries
All scheduling decisions are computed with time functions called using the fixed timezone string "America/Toronto", ensuring correct behavior across DST transitions without relying on chart timezone. The start condition is met at the first bar where (dayofweek == Monday && hour == 0 && minute == 0); on higher timeframes where an exact 00:00 bar may not exist, a fallback checks for the first Monday bar using ta.change(dayofweek). The close condition is met on the first bar at or after Friday 16:00 (Toronto), which guarantees deterministic closure on intraday and higher timeframes.
State Model
The indicator maintains minimal persistent state using var globals:
week_open (bool): whether the current weekly session is active.
wk_hi / wk_lo (float): rolling extrema for the active week.
wk_box (box): the graphical rectangle spanning × .
wk_start_line and a transient wk_end_line (line): vertical delimiters at the week’s start and end.
Two dynamic arrays (boxes, vlines) store object handles to support bounded history and deterministic garbage collection.
Update Cycle (Per Bar)
On each bar the script executes the following pipeline:
Start Check: If no week is open and the start condition is satisfied, instantiate wk_box anchored at the current bar_index, prime wk_hi/wk_lo with the bar’s high/low, create the start line, and push both handles to their arrays.
Accrual (while week_open): Update wk_hi/wk_lo using math.max/min with current bar extremes. Propagate those values to the active wk_box via box.set_top/bottom and slide box.set_right to the current bar_index to keep the box flush with live price.
Close Check: If at/after Friday 16:00, finalize the week by freezing the right edge (box.set_right), drawing the end line, pushing its handle, and flipping week_open false.
Retention Pruning: Enforce a hard cap on historical elements by deleting the oldest objects when counts exceed configured limits.
Drawing Semantics
The range container is a filled white rectangle (bgcolor = color.new(color.white, 100 − opacity)), with a solid white border for clear contrast on dark or light themes. Start/end boundaries are full-height vertical white lines (y1=+1e10, y2=−1e10) to guarantee visibility across auto-scaled y-axes. This approach avoids reliance on price-dependent anchors for the lines and is robust to large volatility spikes.
Multi-Timeframe Behavior
Because session logic is driven by wall-clock time in the Toronto zone, the indicator remains consistent across chart resolutions. On coarse timeframes where an exact boundary bar might not exist, the script legally approximates by triggering on the first available bar within or immediately after the boundary (e.g., Friday 16:00 occurs between two 4-hour bars). The box therefore represents the true realized high/low of the bars present in that timeframe, which is the correct visual for that resolution.
Inputs and Defaults
Weeks to keep (show_weeks_back): integer, default 40. Controls retention of historical boxes/lines to avoid UI clutter and resource overhead.
Fill opacity (fill_opacity): integer 0–100, default 88. Controls how solid the white fill appears; border color is fixed pure white for crisp edges.
Time zone is intentionally fixed to "America/Toronto" to match the strategy definition and maintain consistent historical backtesting.
Performance and Limits
Objects are reused only within a week; upon closure, handles are stored and later purged when history limits are exceeded. The script sets generous but safe caps (max_boxes_count/max_lines_count) to accommodate 40 weeks while preserving Editor constraints. Per-bar work is O(1), and pruning loops are bounded by the configured history length, keeping runtime predictable on long histories.
Edge Cases and Guarantees
DST Transitions: Using a fixed IANA time zone ensures Friday 16:00 and Monday 00:00 boundaries shift correctly when DST changes in Toronto.
Weekend Gaps/Holidays: If the market lacks bars exactly at boundaries, the nearest subsequent bar triggers the start/close logic; range statistics still reflect observed prices.
Live vs Historical: During live sessions the box edge advances every bar; when replaying history or backtesting, the same rules apply deterministically.
Scope (Intentional Simplicity)
This tool is strictly a visual framing indicator. It does not compute labels, statistics, alerts, or extended S/R projections. Its single responsibility is to clearly present the week’s realized range in the Toronto session window so you can layer your own execution or analytics on top.
Crypto Options Expiration (OPEX)this script marks every Crypto Options Expiration. i am writing more stuff because tradingview doesnt allow me to public a script unless I write a nice, lengthy, and zesty description
Opening Range Breakout [Boomer]OBR. Set your time zone. Chose between 5min ,15min, 30min, 60min or 120 min with just a click.
⚡ Elite Momentum Pro🎯 Key Features
1. Smart Signal Engine
3 Signal Modes: Aggressive, Balanced, Conservative
7-Point Scoring System - Ensures high-quality signals
Anti-Flip Protection - Prevents rapid signal changes
Multiple confirmations: Supertrend, MACD, RSI, EMA alignment, momentum
2. Advanced Risk Management
3 Take Profit Levels (TP1, TP2, TP3) for scaling out
ATR-Based Dynamic Stops - Adapts to volatility
Customizable Risk:Reward (default 2.5:1)
Visual stop and target levels
3. Clean Visual Design
Color-coded price bars based on trend strength
EMA Ribbon (9, 21, 50, 200) for trend clarity
US30 Quarter Levels (125-point grid) by FxMogul🟦 US30 Quarter Levels — Trade the Index Like the Banks
Discover the Dow’s hidden rhythm.
This indicator reveals the institutional quarter levels that govern US30 — spaced every 125 points, e.g. 45125, 45250, 45375, 45500, 45625, 45750, 45875, 46000, and so on.
These are the liquidity magnets and reaction zones where smart money executes — now visualized directly on your chart.
💼 Why You Need It
See institutional precision: The Dow respects 125-point cycles — this tool exposes them.
Catch reversals before retail sees them: Every impulse and retracement begins at one of these zones.
Build confluence instantly: Perfectly aligns with your FVGs, OBs, and session highs/lows.
Trade like a professional: Turn chaos into structure, and randomness into rhythm.
⚙️ Key Features
Automatically plots US30 quarter levels (…125 / …250 / …375 / …500 / …625 / …750 / …875 / …000).
Color-coded hierarchy:
🟨 xx000 / xx500 → major institutional levels
⚪ xx250 / xx750 → medium-impact levels
⚫ xx125 / xx375 / xx625 / xx875 → intraday liquidity pockets
Customizable window size, label spacing, and line extensions.
Works across all timeframes — from 1-minute scalps to 4-hour macro swings.
Optimized for clean visualization with no clutter.
🎯 How to Use It
Identify liquidity sweeps: Smart money hunts stops at these quarter zones.
Align structure: Combine with session opens, order blocks, or FVGs.
Set precision entries & exits: Trade reaction-to-reaction with tight risk.
Plan daily bias: Watch how New York respects these 125-point increments.
🧭 Designed For
Scalpers, day traders, and swing traders who understand that US30 doesn’t move randomly — it moves rhythmically.
Perfect for traders using ICT, SMC, or liquidity-based frameworks.
⚡ Creator’s Note
“Every 125 points, the Dow breathes. Every 1000, it shifts direction.
Once you see the rhythm, you’ll never unsee it.”
— FxMogul
XAUUSD Quater Points by FxMogul🟡 XAUUSD Quarter Levels — The Smart Money Map for Gold Traders
Unlock the hidden grid behind Gold’s movement.
This indicator automatically maps the institutional quarter levels — every 25 points (…00 / …25 / …50 / …75) — showing you exactly where liquidity sits, smart money reacts, and price reverses.
💰 Why You’ll Love It
See what the banks see: Every major algorithm and institutional trader builds around psychological quarters — this script makes them visible.
Trade with precision: Entries, TPs, and liquidity sweeps align naturally with these levels.
Never chase price again: Know the next magnet before it happens — 3425, 3450, 3475, 3500... it’s all mapped.
Clean and customizable: No clutter, no noise — just structure and truth.
⚙️ Key Features
Automatic plotting of all 25-point grid levels around current price.
Color-coded hierarchy:
🟨 xx00 → high-impact institutional zones
⚪ xx50 → secondary liquidity magnets
⚫ xx25 / xx75 → intraday structure pivots
Adjustable window range, label spacing, and line extensions.
Works seamlessly across all timeframes.
🧭 How Traders Use It
Identify liquidity sweeps and reversal zones before they happen.
Align FVGs, order blocks, or fair value gaps with clean 25-point precision.
Build confluence with daily bias, CME gaps, or high-volume nodes.
Perfect for ICT, Smart Money, or Liquidity-Based traders.
🌍 Designed For
Scalpers. Swing Traders. Institutional thinkers.
Anyone who wants to trade Gold with the clarity of a market maker instead of the confusion of the crowd.
⚡ Creator’s Note
“Every 25 points, Gold breathes. Every 100, it shifts direction.
Learn to read its rhythm — and it will pay you for life.”
— FxMogul
Delmar - Ichimoku & 3-8 Trap Ribbon ConceptsDelmar - Ichimoku & 3-8 Trap Ribbon Concepts
Indicator Description
The Delmar - Ichimoku & 3-8 Trap Ribbon Concepts indicator combines the traditional Ichimoku Kinkō Hyō system with a custom 3-8 Trap Ribbon candlestick coloring scheme. This powerful tool helps traders identify trends, momentum, and potential reversal points on any TradingView chart. The Ichimoku components provide a comprehensive view of price action, while the 3-8 Trap Ribbon enhances visualization by coloring candlesticks based on their position relative to key Ichimoku lines.
Key Features
Ichimoku Kinkō Hyō: Plots five lines (Tenkan Sen, Tenkan Sen Short, Kijun Sen, Chikou Span, Senkou Span A & B) and the Kumo (cloud) to identify trends, support/resistance, and momentum.
3-8 Trap Ribbon: Colors candlesticks based on the close price’s position relative to the Tenkan Sen Short (3 periods), Tenkan Sen (9 periods), and Kijun Sen (26 periods), highlighting bullish, bearish, or neutral market conditions.
Customizable Settings: Toggle visibility of Ichimoku lines and Kumo, and adjust calculation periods to suit different timeframes or markets.
Alerts: Generates alerts when candlestick colors change, signaling potential trend shifts or trading opportunities.
How to Use the Indicator
Adding the Indicator
Open TradingView: Log in to your TradingView account and navigate to the chart for your desired asset (e.g., stock, forex, crypto).
Access Indicators: Click the “Indicators, Metrics & Strategies” button (fx icon) at the top of the chart.
Search for the Indicator: Type “Delmar - Ichimoku & 3-8 Trap Ribbon Concepts” in the search bar and select it from the list of published indicators.
Add to Chart: Click the indicator name to apply it to your chart.
Configuring Settings
Once added, customize the indicator via the Settings panel:
Ichimoku Kinkō Hyō Group:
Show Ichimoku Lines: Enable/disable the display of Tenkan Sen, Tenkan Sen Short, Kijun Sen, and Chikou Span (default: enabled).
Show Kumo: Toggle the Kumo (cloud) formed by Senkou Span A and B (default: enabled).
Tenkan Sen Length: Set the period for Tenkan Sen calculation (default: 9).
Tenkan Sen Short Length: Set the period for the short Tenkan Sen (default: 3).
Kijun Sen Length: Set the period for Kijun Sen (default: 26).
Senkou Span B Length: Set the period for Senkou Span B (default: 52).
Chikou & Senkou Offset: Adjust the offset for Chikou Span (past) and Senkou Spans (future) (default: 26).
Adjust these settings based on your trading style or timeframe (e.g., shorter periods for intraday, longer for swing trading).
Interpreting the Indicator
Ichimoku Components:
Tenkan Sen (Red): Short-term trend (default 9 periods). Above Kijun Sen = bullish, below = bearish.
Tenkan Sen Short (Light Red): Ultra-short-term trend (default 3 periods) for faster signals.
Kijun Sen (Blue): Medium-term trend (default 26 periods). Acts as dynamic support/resistance.
Chikou Span (Gray): Close price plotted 26 periods back. Above past price = bullish, below = bearish.
Kumo (Cloud): Formed by Senkou Span A and B. Green cloud = bullish (Span A > Span B), red = bearish (Span A < Span B). Price above Kumo = bullish trend, below = bearish.
3-8 Trap Ribbon (Candlestick Colors):
Dark Green: Close is above all three lines (Tenkan Sen Short, Tenkan Sen, Kijun Sen) → Strong bullish momentum.
Light Green: Close is below Tenkan Sen Short but above Tenkan Sen and Kijun Sen → Moderate bullish signal.
Yellow: Close is between Tenkan Sen and Kijun Sen → Neutral or consolidation.
Dark Red: Close is below all three lines → Strong bearish momentum.
Light Red: Close is above Tenkan Sen Short but below Tenkan Sen and Kijun Sen → Moderate bearish signal.
Gray: Default for undefined conditions.
Setting Up Alerts
The indicator includes an alert system to notify you when candlestick colors change, indicating potential trend shifts.
Open Alert Menu: Click the “Alert” button (bell icon) on the TradingView toolbar.
Select the Indicator: Choose “Delmar - Ichimoku & 3-8 Trap Ribbon Concepts” as the condition.
Configure Alert:
Set the condition to “Any alert() function call” to capture color change alerts (e.g., “Candle color changed to Dark Green”).
Choose your notification method (e.g., email, SMS, webhook, or TradingView notification).
Set the frequency to “Once Per Bar Close” to avoid multiple alerts per bar.
Create Alert: Save the alert and ensure it’s active.
Use these alerts to monitor key market shifts, such as entering/exiting a trend or spotting consolidation.
Trading Strategies
Trend Following:
Bullish: Enter long when price is above the Kumo, Chikou Span is above past price, and candles are Dark Green or Light Green.
Bearish: Enter short when price is below the Kumo, Chikou Span is below past price, and candles are Dark Red or Light Red.
Reversal Signals:
Look for Tenkan Sen crossing above/below Kijun Sen, combined with a color change (e.g., from Yellow to Dark Green for bullish reversal).
Confirm reversals when price breaks through the Kumo with a color shift (e.g., Dark Red to Yellow or Light Green).
Consolidation: Yellow candles indicate price is between Tenkan Sen and Kijun Sen, suggesting a range-bound market. Avoid trend-based trades until a breakout occurs.
Combine with other indicators (e.g., RSI, volume) for confirmation.
Tips for Optimal Use
Timeframes: Use on higher timeframes (e.g., 1H, 4H, Daily) for swing trading, or lower timeframes (e.g., 5M, 15M) for day trading.
Markets: Works well on trending markets (forex, stocks, crypto). Adjust period lengths for volatile assets.
Customization: Experiment with Tenkan Sen Short (e.g., 3–5 periods) and offset values to match market speed.
Backtesting: Test the indicator on historical data to validate signals before live trading.
Limitations
Lagging Indicators: Ichimoku components are based on historical data, so signals may lag in fast-moving markets.
False Signals: Yellow candles (consolidation) may occur frequently in choppy markets, requiring confirmation from other tools.
Performance: On low-end devices, rendering the Kumo and multiple lines may slow down if zoomed out over large datasets.
Support
For questions or suggestions, contact the indicator author via TradingView’s messaging system or check the script’s comment section for updates. Happy trading!






















