Indicator

Nick's IB Break/Extension/Retest v3Initial Balance — Break / Extension / Retest (with continuation odds)
This indicator turns the first-hour Initial Balance behavior into a live decision-support tool. It marks the IB (09:30–10:30 ET by default), watches for the post-10:30 break, tracks how far price extends beyond the IB in fractions of the IB range (1.1× to 1.5×), and flags the first retest back to the IB level — then stamps the historical continuation base rate for the extension that was reached, colored by depth (shallow retests = green/likely re-entry, deep retests = red/likely top).
The continuation percentages are drawn from TradingStats 12-year NQ IB study. They are reach/continuation rates, not win rates — no stops or targets are modeled. Treat the numbers as context for a discretionary decision, not a signal with a proven edge.
Filters (all optional, all toggleable): a regime-EMA gate (only flag breaks that agree with the trend), a break-timing window, a minimum-extension requirement, MACD divergence (pre-kill before the retest + post-void after), and a MACD slope/level kill with an immediate-slope reprieve. Killed setups are tagged with the reason so you can see which filter acted. An optional RSI pop/dip trigger flags a precise entry after a valid retest.
Intrabar note (important): break/extension/retest/entry are detected by walking the 1-minute path inside each chart bar, so the sequence is read in true order rather than inferred from bar OHLC. As a result, signals on the currently-forming bar update as 1-minute bars print and are final only on bar close. Historical signals do not change. Run on a 3–15 minute chart (the chart timeframe must be higher than the intrabar timeframe).
Credits: continuation statistics from the TradingStats 12-year NQ first-hour IB study. Indicator

Indicator

Indicator

Bridgewater All-Weather [JOAT]BRIDGEWATER ALL-WEATHER
A tribute to Ray Dalio's All-Weather framework — the macro-regime engine that classifies the current environment along two orthogonal axes : growth (rising or falling) and inflation/volatility (rising or falling) — and maps the resulting quadrant to the asset class that historically performs best in that regime. Bridgewater All-Weather distils that idea into a Pine script: a quadrant classifier built on Z-scored growth and volatility proxies, a 2×2 mini-chart rendered on the chart itself, a regime-tinted background, a rotation-event label, and a Suggested-JOAT-Indicator row that names the best companion script for the current quadrant.
The four quadrants
Q1 — Growth UP, Vol DOWN — Risk-On / Equities regime. Blue.
Q2 — Growth UP, Vol UP — Inflation / Commodities regime. Gold.
Q3 — Growth DOWN, Vol DOWN — Disinflation / Bonds regime. Sage.
Q4 — Growth DOWN, Vol UP — Crisis / Gold regime. Pink.
The asset-class analogues are Dalio's institutional defaults; they can be toggled off if you want pure regime classification without the asset overlay.
Growth and Vol proxies
Macro frameworks need macro inputs. The script approximates the two factors purely from chart data so it runs on any instrument:
Growth proxy — long-window smoothed return (default 100-bar EMA-smoothed return). Z-scored against a long baseline (default 252 bars, the trading-year canonical).
Volatility proxy — rolling standard deviation of returns over the volatility window (default 100 bars). Z-scored against the same baseline.
A configurable Z dead-zone (default ±0.10) treats small Z values as neutral and refuses to register quadrant changes until the Z moves clearly off zero. This eliminates flicker between adjacent quadrants when the signal is genuinely uncertain.
Minimum-bars-hold filter
A quadrant must persist for at least N bars (default 3) before a rotation is committed. This prevents whipsaw classification when growth and volatility cross their respective zero lines on the same bar.
Mini 2D quadrant chart
The script's signature visual: a 2×2 grid rendered directly on the chart (anchored to any of four corners, with configurable cell size in bars and price-height in ATR units). The currently-active quadrant is highlighted in its quadrant colour; the other three are muted. At a glance you see the entire four-state regime classification mapped to its asset analogue. The four hues appear simultaneously only in the mini chart — by design — because elsewhere the script obeys strict one-active-quadrant colour discipline.
Visual system
Background tint by active quadrant (configurable transparency, default 92 institutional-subtle).
Quadrant badge — right-side floating label showing the active quadrant with its colour. Configurable corner.
Rotation label — drops a label on the chart every time the quadrant changes.
Mini 2D quadrant chart (the signature) — 2×2 grid in the chosen corner.
Hidden growth-Z and vol-Z line plots — for users who want to see the underlying scores in the Data Window or feed them to alerts. Off by default.
A locked Sapphire palette: one hue per quadrant (Q1 blue, Q2 gold, Q3 sage, Q4 pink). Because only one quadrant is active at a time, the chart only ever shows one family + the muted background. The strict 4-hue discipline only appears in the mini chart.
Suggested JOAT Indicator row
The dashboard exposes a Suggested Indicator row that names the best-fit companion from the JOAT suite per quadrant. Defaults:
Q1 (risk-on) → Quantum Trend Matrix (trend amplification in a benign environment).
Q2 (inflation) → Liquid Reversal Engine (mean-reversion bands in a volatile-up regime).
Q3 (disinflation) → Smart SR Zones (structure-focused reads in a calming environment).
Q4 (crisis) → Z-Score Flow Pro (extreme-statistics regime for risk-off conditions).
Every suggestion is user-configurable.
Dashboard
Monospaced table, positionable to any of nine corners, with optional row-gradient. Surfaces:
Active quadrant with asset analogue.
Growth Z value and direction.
Vol Z value and direction.
Bars in current quadrant.
Last rotation: from → to with bars-ago.
Suggested JOAT Indicator (toggleable).
Alerts
Three alert conditions, each independently controllable:
Any Quadrant Rotation
Entered Q4 (Risk-Off / Crisis) — the most actionable single alert; usually accompanies risk-off moves across asset classes.
Entered Q1 (Risk-On) — off by default; useful for trend-following entry timing.
How to read it
Three reads, in order of conviction:
Q4 entry — the highest-priority macro alert. Growth is falling and volatility is rising — historically the regime in which risk assets sell off, gold rallies, and defensive positioning wins. Reduce risk exposure regardless of the chart-timeframe signal.
Sustained Q1 — the trend amplifier. The market is in a healthy growth/calm environment; momentum tools have their largest edge. The mini chart visually confirms the regime.
Rotation between adjacent quadrants (e.g. Q1 → Q2 or Q3 → Q4) — regime-transition warning. The market is rotating along one of the two axes; this often precedes the larger directional move.
Suggested settings
Defaults (growth 100 / vol 100 / baseline 252 / dead-zone 0.10 / 3-bar hold) are calibrated to daily charts on broad indices. For lower timeframes drop windows proportionally. For weekly+ raise to 200 / 200 / 500. The dead-zone is the single most important anti-flicker input; widen if your instrument has noisy growth/vol behaviour.
Originality / what's reused
The All-Weather framework is Ray Dalio / Bridgewater Associates' published macro philosophy — a public conceptual framework, not proprietary code. The implementation here — the chart-data-only growth and volatility proxies, the Z-baseline normalisation with dead-zone gate, the minimum-bars-hold rotation filter, the 2×2 mini-chart render in chart units with ATR-scaled cell height, the per-quadrant single-hue palette discipline, the suggested-JOAT-indicator dashboard row, and the rotation-event label engine — is JOAT-original. No third-party code reused. The script is a tribute , not a direct replication of any proprietary Bridgewater model.
Limitations
The growth and volatility proxies are computed from chart data only — they are approximations, not the macroeconomic series an actual All-Weather portfolio uses. The Z-baseline assumes 252 bars approximates a trading year; on non-daily timeframes the interpretation shifts (e.g. on 1H, 252 bars is roughly 10 trading days). The quadrant classification is descriptive of recent chart behaviour, not of the broader macro environment — pair with macro context for serious portfolio decisions.
—
-made with passion by jackofalltrades
Indicator

Indicator

HTF Candle PO3 AMD SessionsHTF Session Dashboard (Higher Timeframe Candles)
Core idea: This indicator allows you to view the price action of a Higher Timeframe (HTF) drawn as full candles directly on your current lower timeframe chart. It's designed to keep you aware of the macro market structure without needing to constantly switch timeframes.
How It Works
Instead of just showing standard HTF levels, this indicator dynamically builds and projects the current day's higher timeframe candles (e.g., 4-Hour candles) off to the right side of your active chart (e.g., a 1-minute or 5-minute chart).
The candles are constructed in real-time. As price moves on your lower timeframe, the active "current" HTF candle will grow its wicks and adjust its body live.
Key Features
Live HTF Candle Projection: Displays the sequence of HTF candles that make up the current trading day, spaced neatly to the right of the current price action.
Session Extremes: Automatically draws dotted reference lines stretching across your chart to highlight the absolute High, Low, Body High, and Body Low of the entire current session.
Live Countdown Timer: Shows a dynamic timer above and below the candle cluster indicating exactly how much time is left until the active HTF candle closes.
Hour Labels: Every HTF candle has a small label indicating its open hour (with an adjustable timezone offset setting) to help you quickly identify Kill Zones within the macro candles.
Visual Customization: Fully adjustable body width, transparency, spacing, offset distance, and bull/bear color schemes.
Clean Daily Reset: The indicator automatically clears the prior day's candles at midnight (exchange time) and begins building the new sequence, keeping your chart uncluttered.
Why Use This?
When trading intraday (like on a 1m chart), it's easy to get lost in the noise and trade right into a major 4-Hour support or resistance level. By projecting the 4-Hour candles directly onto your 1-minute chart, you always know exactly where you are relative to the higher timeframe narrative and structure.
Recommended Settings
HTF Setting: 240 (4 Hours) or 60 (1 Hour) when trading on a 1m–15m chart.
Hour Label Offset: Adjust this (e.g., +1 or -1) if you want the candle hour labels to match a specific local time zone (like EST) rather than exchange time.
Indicator

Indicator

Indicator

Smart Money Fibonacci OTE Engine [ChartPrime]🔶 OVERVIEW
In the world of Smart Money Concepts (SMC), finding a "cheap" or "expensive" price is not enough—you need to find the Optimal Trade Entry (OTE). The Smart Money Fibonacci OTE Engine is an automated structural analysis tool that identifies trend shifts and projects institutional retracement zones in real-time.
Unlike traditional Fibonacci tools that require manual drawing, this engine detects Break of Structure (BOS) events and automatically anchors a Fibonacci grid to the most relevant swing points. It specifically highlights the OTE zone, where institutional buying or selling typically occurs after a trend confirmation.
🔶 CORE MECHANICS: AUTOMATED ANCHORING
The engine operates on a sophisticated "Pivot and Shift" logic:
Swing Detection: The script monitors price for structural Swing Highs and Swing Lows based on your chosen pivot length.
Fibonacci Direction Shift Recognition: A direction shift is confirmed when pivot price exceeds the previous Swing Pivot High (Higher High), and a down direction shift is confirmed when price drops below the previous Swing Pivot Low (Lower Low).
Dynamic Stretching: Once a direction is established, the Fibonacci grid "breathes" with the market. If the trend continues to make new highs or lows, the grid automatically stretches to include the new extension, ensuring your retracement levels are always mathematically accurate.
🔶 THE OPTIMAL TRADE ENTRY (OTE) ZONE
The OTE zone is the primary focus of this indicator. Based on ICT (Inner Circle Trader) concepts, the OTE represents the "sweet spot" of a retracement.
The Range: By default, the zone is plotted between the 0.618 and 0.786 Fibonacci levels.
Institutional Discount/Premium: In a bullish trend, price retreating into the OTE zone is considered "buying at a discount." In a bearish trend, a rally into the OTE is "selling at a premium."
Visual Clarity: The zone is highlighted with a colored box (teal for bull, red for bear), making it easy to identify exactly where to look for price action reversal signals.
🔶 KEY VISUAL FEATURES
Structure Labels: Automatically marks HH (Higher High) and LL (Lower Low) points with Break-of-Structure (BOS) lines.
Swing Diagonal: A dotted line connects the two anchor points of the Fibonacci grid, providing a clear visual representation of the current swing's slope and magnitude.
Extended Levels: Horizontal Fibonacci lines (0.236, 0.382, 0.5, etc.) are projected across the chart, with price-sensitive labels that update every tick.
Historical Mode: Toggle "Show Previous Fibs" to see where past OTE zones were respected, helping you backtest the current asset's adherence to Fibonacci levels.
🔶 INDICATOR INPUTS
Pivot Length: Adjust this to filter between micro-structure (short length) and macro-structure (long length).
OTE Upper/Lower Levels: Fully customizable boundaries for your entry zone.
Visual Styles: Change line styles (Solid, Dashed, Dotted) and colors for the grid, labels, and structure shifts to match your chart theme.
🔶 TRADING UTILITY
High-Probability Entries: Instead of "chasing" a breakout, wait for the Smart Money Fibonacci Engine to identify the higher high or lower low, then wait for price to return to the OTE box.
Confluence Tool: Use the OTE zone in conjunction with Order Blocks or Liquidity Sweeps. When an OTE zone aligns with a previously swept EQL or EQH, the probability of a reversal increases significantly.
Objective Profit Taking: Use the 0.0 (origin) and various extension levels as objective targets for scaling out of positions.
🔶 CONCLUSION
The Smart Money Fibonacci OTE Engine removes the subjectivity from drawing Fibonacci retracements. By automating the detection of market structure and highlighting the most statistically relevant entry zones, it allows traders to focus on execution rather than chart drawing. Indicator

Ultimate Moving Averages Crossover1. Massive Moving Average Library (19 Types)
Instead of loading a different indicator for each type of average, this script has a built-in mathematical library that calculates 19 unique MA formulas. You can select any of these for each line:
Basic MAs: SMA (Simple), EMA (Exponential), WMA (Weighted)
Smoothed MAs: RMA (Running), HMA (Hull), DEMA (Double EMA), TEMA (Triple EMA), ZLEMA (Zero-Lag EMA)
Adaptive MAs: KAMA (Kaufman Adaptive), FRAMA (Fractal Adaptive), VAMA (Volatility Adjusted), McGinley Dynamic
Advanced MAs: ALMA (Arnaud Legoux), LSMA (Least Squares / Regression), TMA (Triangular), T3 (Tillson)
Volume Weighted MAs: VWMA (Standard Volume Weighted), EVWMA (Elastic Volume Weighted)
Symmetrical MAs: SWMA (Symmetrically Weighted)
2. Multi-Line Architecture (Up to 10 Lines)
You can plot up to 10 independent moving average lines on a single chart. For each line, the settings UI allows you to fully configure:
Toggle On/Off: Only plot the lines you need.
Type Selection: Choose any of the 19 types from the dropdown.
Source Data: Calculate based on close, open, high, low, hl2, hlc3, etc.
Length (Period): Define the lookback period (e.g., 20, 50, 200).
Visuals: Customize the color and line thickness.
3. Integrated Crossover Engine
The script functions as a built-in crossover scanner. You can explicitly assign any of the 10 MAs to act as your "Fast MA" and "Slow MA":
Visual Signals: When the Fast MA crosses above the Slow MA, it plots a green "Bullish Cross" triangle below the candle. When it crosses below, it plots a red "Bearish Cross" triangle above the candle.
Automated Alerts: It includes alertcondition functions. You can set up PulseWire alerts to ping your phone or webhook when a "Bullish MA Crossover" or "Bearish MA Crossover" occurs.
Summary
In essence, it is an All-in-One Trend & Confluence Hub. By combining 19 algorithms, 10 customizable lines, and an automated crossover detection system, it gives you complete freedom to build any moving average strategy—like a 3-EMA ribbon, a Golden Cross scanner, or a Hull MA scalping setup—without ever leaving the script's settings. Indicator

Ultimate RSIHere is a breakdown of its core features and how they work together:
1. Volatility-Adaptive RSI Length
How it works: Instead of using a static length (like the traditional 14-period RSI), the script calculates the market's standard deviation (volatility).
The Benefit: When the market is highly volatile, the RSI length dynamically shortens, making the indicator more responsive so you can catch quick reversals. When volatility drops (consolidation), the length expands, smoothing the RSI line to filter out "chop" and false signals.
2. Dynamic Overbought / Oversold Zones (Bollinger Bands)
How it works: Standard RSIs use static horizontal lines at 70 and 30. This script applies Bollinger Bands directly to the RSI values themselves.
The Benefit: A reading of 70 isn't always overbought in a strong trend. By wrapping the RSI in a standard deviation channel, you get a dynamic zone. If the RSI breaks above its upper dynamic band, you know momentum is genuinely extreme relative to recent conditions, rather than a fixed arbitrary number.
3. Automated Divergence Detection
How it works: The script constantly scans for discrepancies between price action and RSI momentum.
The Benefit: It automatically plots visual markers on the RSI pane when it detects:
Regular Divergences (Reversals): E.g., Price makes a Lower Low, but RSI makes a Higher Low (Bullish Divergence).
Hidden Divergences (Trend Continuations): E.g., Price makes a Higher Low, but RSI drops to a Lower Low (Hidden Bullish).
4. RSI Moving Average (Signal Line)
How it works: An additional moving average (you can choose between SMA, EMA, RMA, WMA, or HMA) is plotted alongside the RSI.
The Benefit: This acts as a trigger line. An RSI crossing above its EMA can be used as an early entry signal, or as confirmation that momentum has definitively shifted.
5. Multi-Timeframe (MTF) Support
How it works: You can configure the indicator to calculate RSI based on a higher timeframe (e.g., pulling 4-Hour RSI data while you are looking at a 15-minute chart).
The Benefit: This ensures your lower timeframe entries are always aligned with the macro momentum, preventing you from trading against the larger trend.
6. Visual Confluence & Alerts
The RSI line itself is color-coded. For example, it turns bright green when momentum is both above 50 and rising, and dark red when below 50 and falling.
It includes a full suite of alert conditions (divergences and MA crossovers) so you can automate your trading or get pinged when a setup occurs.
In summary, it's designed to replace 3 or 4 different indicators on your chart by giving you adaptive momentum, dynamic exhaustion zones, trend direction, and divergence signals all natively in one branded, professional package. Indicator

RichmondHillCM - DXY vs BTC Lagged and RescaledDXY vs BTC — Lagged & Rescaled
This indicator compares Bitcoin against a time-shifted, inverted US Dollar Index (DXY) to visualize the inverse relationship between dollar strength and risk assets — with the dollar shifted forward so its past moves line up against where Bitcoin tends to follow.
How it works
- Both DXY and BTC are normalized to a 0–100 range over a rolling window, putting two very differently-scaled instruments on the same axis so they can be read side by side.
- DXY is lagged forward by an adjustable number of bars (default 18 ≈ 4.5 months on the weekly), reflecting the idea that dollar moves tend to lead Bitcoin rather than move with it.
- DXY is inverted by default, so the two lines track together whenever the historical inverse correlation is holding.
- The shaded fill marks divergence: green when BTC is running above the projected dollar path, red when it's below.
- A rolling correlation line is rescaled onto the same 0–100 axis: 50 = no correlation, below 50 = inverse (the normal regime for these two), above 50 = positive. It tells you how much to trust the overlay at any given moment.
Inputs
- DXY Lag — bars to shift the dollar forward
- Normalization Window — lookback used for the 0–100 rescaling
- Correlation Lookback — window for the rolling correlation
- Invert DXY — toggle the inverse view on/off
- Show Divergence Fill / Show Rolling Correlation — visibility toggles
- Configurable DXY and BTC symbols
Reading it
When the inverted, lagged DXY line and BTC line track closely and the correlation line sits well below 50, the dollar overlay is acting as a rough roadmap for price. When the correlation line drifts toward or above 50, the relationship has weakened and the overlay should be discounted. Large green/red divergences flag where BTC is leading or lagging the dollar's implied path.
Notes
The lag is a heuristic, not a fixed law — the optimal shift drifts across market regimes, so experiment with the lag and lookback values. This is a research and visualization tool, not a trading signal, and nothing here is financial advice. Indicator

Indicator

Indicator

BTC 4-Year Cycle Labels + Future Points**BTC 4-Year Cycle Labels + Future Points**
This script is a simple visual roadmap for Bitcoin’s historical 4-year rhythm. It marks the major cycle tops and cycle lows that have defined Bitcoin’s previous macro cycles, then projects the next theoretical cycle points forward using the same measured cycle spacing.
The idea behind this tool is not to claim that Bitcoin must repeat the past perfectly. Markets evolve. Liquidity changes. Participants become more sophisticated. The ETF era, institutional flows, macro policy, and global adoption can all distort or even break patterns that once looked obvious.
But that is exactly why this indicator exists.
Bitcoin has spent more than a decade moving through recognizable expansion and contraction phases. Each cycle has had a major euphoric top, followed by a long bear-market drawdown and eventual accumulation low. This script takes those historical turning points and places them directly on the chart so the structure can be seen clearly.
The historical cycle labels included are:
**Cycle Tops**
* 25 Nov 2013
* 11 Dec 2017
* 08 Nov 2021
* Projected: 06 Oct 2025
**Cycle Lows**
* 12 Jan 2015
* 10 Dec 2018
* 07 Nov 2022
* Projected: 05 Oct 2026
The projected dates are based on the recurring spacing from prior Bitcoin cycle pivots. In this version, the projection uses a default 1428-day cycle spacing, which carries the 2021 top forward into the projected 2025 top, and the 2022 low forward into the projected 2026 low.
The script also includes background cycle zones. The red-shaded regions represent the historical top-to-low bear-market windows, while the green-shaded regions represent the broader expansion and recovery phases between cycle lows and tops.
This makes it easier to visually compare where Bitcoin is now relative to prior cycle structure.
The purpose of this script is to answer one question:
**Is Bitcoin still following the old cycle, or is the cycle finally breaking?**
If the projected window continues to hold, then Bitcoin may still be moving inside a recognizable 4-year structure. If price behavior begins to diverge meaningfully from the historical rhythm, that may be evidence that the market is entering a new regime.
This script is best used on higher timeframes, especially weekly and monthly Bitcoin charts. It is not designed for short-term trading signals. It does not generate buy or sell alerts. It does not predict a specific price target. The future labels only mark projected time windows, not guaranteed outcomes.
Useful ways to use this indicator:
* Compare the current Bitcoin cycle against prior macro cycles.
* Study the timing between historical tops and lows.
* Observe whether Bitcoin is compressing, extending, or breaking its 4-year rhythm.
* Use the projected future labels as time-based reference points.
* Combine with macro liquidity, on-chain data, sentiment, trend structure, and risk models.
Important note:
The projected cycle top and cycle low should be treated as a time-map, not a prophecy. The market does not owe anyone a repeat. Patterns become fragile when everyone sees them. The value of the script is not that it guarantees the future, but that it gives traders and investors a clean framework for watching whether the old cycle continues to matter.
Bitcoin has always forced the market to question what it thinks it knows.
Maybe the 4-year cycle continues.
Maybe it shifts.
Maybe it breaks completely.
Where we go from here is a choice the market leaves to us.
Indicator

Indicator

Indicator

Monthly Seasonal Anomaly (TrimmedMean,forcast)When analyzing seasonality, the issue of "outlier years" inevitably arises.
As a potential solution, I have utilized a trimmed mean approach.
While the reference values are still under consideration, I have designed the parameters to be fully customizable, and I hope this proves useful for your research.
・Indicator Overview
This script is a projection tool that extracts "monthly price fluctuation seasonality" from historical market data and plots a predicted trajectory for the next three months. Unlike a simple historical average, it features "cross-filtering" capabilities that automatically detect and exclude macroeconomic outliers (years marked by extreme crashes or surges).
・Core Architecture (Trimming Mechanism)
Instead of a standard "trimmed mean," this indicator incorporates a "cross-filtering" logic (annual assessment followed by monthly exclusion).
1. Rationale for Annual Exclusion
Consider a scenario where the market experienced a historic crash in October 2008 (the Lehman Shock). If this were included in the monthly average as an "October anomaly" (implying a general tendency for prices to fall in October), it would significantly distort statistics based on normal market conditions. This is because the event represents an "annual anomaly" rather than a "monthly anomaly."
2. Two-Step Trimming Process
The indicator eliminates noise through the following process:
Phase 1 (Identifying Anomaly Years):
First, the script calculates the "Year-to-Date (YTD) rate of change" for each year in the background and ranks them. Based on a configurable percentage (default: 10%), it identifies years with extreme gains (Top) and extreme losses (Bottom) and adds them to an "Excluded Years" list.
Phase 2 (Refined Monthly Calculation):
When calculating monthly seasonality (e.g., the March anomaly), any years blacklisted during Phase 1 are skipped in the calculation. This approach aims to isolate "pure seasonality" observed during normal market conditions.
You can verify exactly which years were excluded by checking the information table at the bottom right.
3. Compounding Chain Across Months
For the forecast line covering the next three months, we have moved away from simply connecting the monthly averages.
Instead, we use the "projected closing level for the current month" as a baseline and apply a compounding calculation using the "seasonal average rate of change" for the following month. This method differs from the calculation used for historical bars; it eliminates discontinuities at month-end transitions, resulting in a smooth projection line that flows continuously from the current price into the future.
・Intended Use Cases
Use Case 1: Trend-Following Market Context Analysis (Reinforcing Your Edge)
The seasonal line serves as a filter to gauge the "underlying market sentiment."
For example, suppose your primary trading strategy involves buying on a MACD "golden cross." If the future forecast line indicates a "gradual upward trend over the next two months," this provides additional support for your decision. Conversely, if the data shows that "next month is historically prone to a deep correction," you can use this as a risk management filter—deciding, for instance, to skip the trade or halve your position size.
Use Case 2: Swing Trading – Profit Taking and Position Adjustment
Since the tool plots a projection for the next three months, it offers a guideline on "how long to hold a position for a statistical advantage."
If you hold a long position and the forecast line traces an arc that "peaks between the latter half of the current month and the early part of the next month before declining," you can plan to take profits in stages (scaling out) as the price approaches that peak.
Use Case 3: Detecting Divergence from Current Market Action (Breakdown of Anomalies)
By enabling the "Show Current Month Line" setting, the actual price movement for the current year is overlaid as a white line. If there is a significant divergence between the historical average during normal market conditions (orange line) and this year's trend (white line), it provides a crucial insight: the market has entered a regime—or trading environment—where the usual seasonal cycle no longer applies. This serves as a basis for deciding to switch from a seasonal strategy to an alternative approach, such as a momentum breakout strategy.
A note on parameter adjustment:
The number of trading days varies depending on the market in question (e.g., stock indices, commodities, or cryptocurrencies). By adjusting the "Bars per Month (Days)" setting—typically to around 21 for stocks and forex, or 30 for cryptocurrencies—you can more accurately align the X-axis (time axis) of the future projection line with the chart. Indicator

Indicator

Buyer Control / CVD + Volume Divergence Score v6 (CPeletz)This Pine script is beautiful. The ultimate **buyer/seller control warning system**. It does not predict the future by itself. It watches whether price, volume, and CVD-style buying pressure are agreeing or starting to split apart.
The simple version:
> **Red line = buyers may be losing control.**
> **Green line = sellers may be getting exhausted.**
> **Blue line = price and CVD are agreeing or disagreeing.**
> **Bear Div / Bull Div markers = possible reversal warnings.**
## 1. It builds a fake/proxy CVD
True CVD uses real market buys vs market sells. PulseWire usually does not give that on normal candles, so your script estimates it.
It does this:
```pinescript
if close > open
signedVol = volume
else if close < open
signedVol = -volume
else
signedVol = 0
```
So:
* Green candle = count volume as buying pressure
* Red candle = count volume as selling pressure
* Then it adds that up over time with `ta.cum()`
That creates:
```pinescript
cvd = ta.cum(signedVol)
```
So your CVD line is basically:
> “Is volume building more on green candles or red candles?”
It is not perfect order flow, but it is useful for spotting pressure shifts.
## 2. It smooths the CVD
Then it smooths CVD with an EMA:
```pinescript
cvdSmooth = ta.ema(cvd, 5)
```
This makes it less noisy so the script does not overreact to every candle.
## 3. It calculates price slope and CVD slope
This is one of the most important parts.
```pinescript
priceSlope = ta.linreg(close, slopeLen, 0) - ta.linreg(close, slopeLen, 1)
cvdSlope = ta.linreg(cvdSmooth, slopeLen, 0) - ta.linreg(cvdSmooth, slopeLen, 1)
```
In plain English:
* Is price trending up or down?
* Is CVD trending up or down?
The dangerous setup is:
> **Price slope up, CVD slope down.**
That means price is rising, but buying pressure is fading.
That is buyer exhaustion.
## 4. It calculates price/CVD correlation
```pinescript
corrCvd = ta.correlation(ta.change(close), cvdDelta, corrLen)
```
This checks whether price movement and CVD movement agree.
Correlation ranges from:
* **+1.00** = price and CVD strongly agree
* **0.00** = no clear relationship
* **-1.00** = price and CVD are moving opposite
Then your script converts it into a 0–100 visual score:
```pinescript
corrScore = (corrCvd + 1.0) * 50.0
```
So:
* **100** = very strong agreement
* **50** = neutral/choppy
* **0** = strong disagreement
This is your blue line.
If price is rising but the blue line is falling hard, the rally may be unhealthy.
## 5. It checks volume strength
```pinescript
volRatio = volume / averageVolume
```
This tells you whether current volume is strong or weak compared to normal.
Examples:
* **0.50x** = half normal volume
* **1.00x** = normal volume
* **2.00x** = double normal volume
A breakout on low volume is suspicious.
A dump on high volume is more serious.
## 6. It finds swing highs and swing lows
This part:
```pinescript
ph = ta.pivothigh(high, pivotLen, pivotLen)
pl = ta.pivotlow(low, pivotLen, pivotLen)
```
It detects local tops and bottoms.
If `pivotLen = 5`, the script waits for a swing high/low confirmed by 5 candles on each side.
That means the divergence markers appear late by design, because Pine needs confirmation.
## 7. It detects bearish divergence
Bearish divergence means:
> Price makes a higher high, but CVD or volume makes a lower high.
That tells you buyers pushed price higher, but the pressure behind the move was weaker.
The script checks:
```pinescript
currPH > prevPH and currPHCvd < prevPHCvd
```
That means:
* Current price high is higher than previous high
* But current CVD is lower than previous CVD
That creates a **Bear Div** marker.
Bear Div means:
> “Do not chase long. Buyers may be weakening.”
It does **not** mean instant short.
## 8. It detects bullish divergence
Bullish divergence means:
> Price makes a lower low, but CVD improves or sell volume weakens.
The script checks:
```pinescript
currPL < prevPL and currPLCvd > prevPLCvd
```
That means:
* Price made a lower low
* But CVD made a higher low
That creates a **Bull Div** marker.
Bull Div means:
> “Sellers may be weakening. Watch for reclaim.”
It does **not** mean instant buy.
## 9. It builds the Buyer Loss Score
This is the red line.
The script adds points when bearish warning signs appear.
### Buyer Loss gets +25 if:
```pinescript
priceSlope > 0 and cvdSlope < 0
```
Price is rising but CVD is falling.
That is a big warning.
### Buyer Loss gets +20 or +10 if:
```pinescript
corrCvd < 0
corrCvd < 0.25
```
Price and CVD are not agreeing.
### Buyer Loss gets +10 if:
```pinescript
close > close and volRatio < 0.80
```
Price is rising on weak volume.
### Buyer Loss gets +10 if:
```pinescript
rsi > 55 and rsiSlope < 0 and priceSlope > 0
```
Price is rising, RSI is above 55, but RSI is weakening.
### Buyer Loss gets +25 if:
```pinescript
recentBearDiv
```
A recent bearish divergence happened.
### Buyer Loss gets +10 if:
```pinescript
close < emaControl
```
Price is below the control EMA.
So the red line is basically saying:
> “How many buyer weakness signs are stacking together?”
## 10. It builds the Seller Exhaustion Score
This is the green line.
It adds points when sellers may be running out of pressure.
Seller Exhaustion rises when:
* Price is falling but CVD is rising
* Bullish divergence appears
* Price drops on weak volume
* RSI starts improving while price is still weak
* Price reclaims the EMA
So the green line tells you:
> “Are sellers weakening enough for a possible bounce?”
## How to trade it
### For longs
Good long environment:
* Buyer Loss under **40**
* Seller Exhaustion rising after a dump
* Bull Div appears
* Price reclaims EMA/VWAP/midline
* CVD/correlation improves
* Price makes a higher low
Bad long environment:
* Buyer Loss above **65**
* Bear Div appears
* Price below EMA/VWAP/midline
* Blue correlation line falling
* CVD not confirming price
## Main score meanings
| Score | Meaning |
| --------------------------- | ----------------------------- |
| **Buyer Loss 0–40** | Buyers okay |
| **Buyer Loss 40–65** | Buyers stalling / caution |
| **Buyer Loss 65+** | Buyers likely losing control |
| **Seller Exhaustion 0–40** | Sellers still okay |
| **Seller Exhaustion 40–65** | Sellers slowing |
| **Seller Exhaustion 65+** | Possible bottom/reclaim setup |
## Important limitation
Your script is not true CVD.
It is a **candle-direction CVD proxy**.
So it can help you see pressure changes, but you should always confirm with:
* price structure
* support/resistance
* VWAP or Bollinger basis
* BTC direction
* actual volume
* reclaim/failure candles
## The cleanest way to use it
For a top/reversal warning:
> **Bear Div + Buyer Loss over 65 + price breaks EMA/VWAP = buyers lost control.**
For a bottom/reclaim warning:
> **Bull Div + Seller Exhaustion rising + price reclaims EMA/VWAP = sellers may be losing control.**
The script’s job is not to tell you “buy now” or “sell now.”
Its job is to tell you:
> **Is the move healthy, or is pressure starting to diverge?**
Indicator

Indicator

Indicator
