Regression Flux Candles [JOAT]Regression Flux Candles
Overview
Regression Flux Candles renders a parallel candle series on top of price using linear regression applied independently to each of the four OHLC components. The result is a noise-filtered "flux candle" — a linearised representation of current price action that removes the erratic intrabar variation of raw candles and reveals the underlying trend direction with far greater clarity. A signal line (SMA of regression close) produces crossover buy/sell signals. Pivot-anchored support/resistance zones mark structural confluence areas. A six-timeframe MTF trend table provides session bias context.
The Linear Regression Candle Concept
Standard Japanese candlesticks display the raw open, high, low, and close of each bar — capturing every tick-driven fluctuation including news spikes, stop hunts, and market-maker manipulation. Linear regression candles replace each OHLC component with the endpoint of a linear regression line fitted over the last N bars:
- LR Open = ta.linreg(open, length, 0)
- LR High = ta.linreg(high, length, 0)
- LR Low = ta.linreg(low, length, 0)
- LR Close = ta.linreg(close, length, 0)
The regression fits a straight line through the last N values of each component and returns the value of that line at the current bar. The resulting candle series is significantly smoother than raw price and acts like a weighted moving average of price structure without introducing the directional lag of traditional MAs. Bullish flux candles (LR close >= LR open) render in teal; bearish in purple.
Signal Line and Crossover Logic
A simple moving average of the LR close (default 7-bar SMA) acts as a signal line. When the LR close crosses above the signal line, a potential buy signal is generated. When it crosses below, a potential sell signal is generated. Crossovers are filtered by:
- Volume filter: Volume must exceed the 20-bar volume SMA (configurable). This ensures signals occur during genuine participation, not thin-market noise.
- RSI filter: Buy signals are blocked when RSI(14) >= 70 (overbought); sell signals are blocked when RSI(14) <= 30 (oversold). This prevents buying into extended moves and selling into oversold conditions.
- Warmup gate: All signals are suppressed until max(LR_length * 3, EMA_length + 5) bars have elapsed. This prevents the statistical noise of early LR calculations from generating false signals.
- Confirmed-bar gate: Signals only fire on barstate.isconfirmed — the final tick of a closed bar — preventing any repainting.
Trend EMA
A 200-period EMA (configurable length) is plotted as a gold line representing the macro trend bias. Position of price relative to the 200 EMA serves as a context filter that traders can apply manually: long signals above the EMA are higher quality, short signals below it are higher quality.
Pivot S/R Zones
Swing pivot highs and lows (configurable left/right bars) generate semi-transparent S/R boxes:
- Resistance zones (from pivot highs): drawn in the bear colour with 89% transparency
- Support zones (from pivot lows): drawn in the bull colour with 89% transparency
Each zone extends forward by a configurable width in bars (default 40) from the pivot bar, or can be extended infinitely to the right. A maximum of 6 zones (configurable) are maintained; older zones are deleted as new ones form.
Daily Signal Counter
The dashboard tracks how many buy and sell signals have fired on the current trading day, resetting at each new daily session (detected via ta.change(time("D"))). This provides a quick intraday reference for signal frequency — useful for understanding whether a session is particularly active or quiet.
Multi-Timeframe Trend Table
Six independently configurable timeframes are assessed using the same linear regression logic: LR close >= LR open on each HTF = bullish; below = bearish. Each cell displays BULL or BEAR in its directional colour. An alignment counter shows how many of the six timeframes agree with the current LR direction. 5+ aligned = strong directional bias (teal); 1 or fewer = strong counter-trend warning (red); middle values show gold.
Inputs Reference
Regression Engine
- LR Length (11) — lookback for all four linear regression calculations
- Signal SMA Length (7) — SMA applied to LR close for crossover signal line
- Trend EMA Length (200) — macro bias reference line
Filters & Signals
- Volume Filter on Signals — require volume > volume SMA
- Volume SMA Length (20)
- RSI Filter on Signals — block overbought/oversold crossovers
- RSI Length (14)
S/R Zones
- Pivot Left/Right Bars (15/10) — pivot detection sensitivity
- Show S/R Zones
- Extend Zones to Right — infinite extension toggle
- Zone Width (40 bars) — forward extension length when not extending to right
- Max Zones to Show (6)
MTF Dashboard
- Show MTF Table
- TF 1–6 — six configurable timeframes (default: 1, 5, 15, 60, 240, D)
Visual
- Bull / Bear Candle Color — OHLC candle colours for flux candles
- Signal Line Color — signal SMA line colour
- EMA Color — trend EMA line colour
- Show Dashboard
How to Use
1. Apply to any liquid market. Use LR length of 9–15 for intraday charts; 20–30 for swing trading.
2. Watch for flux candle colour transitions: a sustained sequence of teal candles above the signal line confirms an uptrend; purple candles below confirm a downtrend.
3. BUY labels appear below the bar when LR close crosses above the signal line with volume and RSI conditions met. SELL labels appear above the bar on crossunders.
4. Prefer signals where the flux candle direction (teal/purple) aligns with the EMA bias AND the MTF table shows 4+ timeframes in agreement.
5. S/R zones from prior pivots serve as target levels and potential reversal points — align entries near these zones for improved risk/reward.
Non-Repainting Design
All signals require barstate.isconfirmed. MTF data uses lookahead_off. LR calculations use only confirmed historical bars (offset 0 is the current bar's regression endpoint based on past data). Signal labels never move after being stamped on a closed bar.
Limitations
- Linear regression candles reduce volatility information. In sharp, impulsive markets, the flux candle series will understate the actual price range. Raw candles should be viewed alongside the indicator for context.
- Short LR lengths (< 7) make the flux candles nearly identical to raw candles; very long lengths (> 30) introduce significant lag into the signal line crossovers.
- The volume and RSI filters may suppress signals during thin trading hours on forex pairs (e.g., Asian session on EUR/USD pairs). Disabling filters during these sessions is a valid adjustment.
- S/R zones are drawn from the pivot confirmation bar, not the pivot bar itself (due to the right-bar confirmation delay). Zone left edges are placed correctly but appear N bars after the actual pivot.
Disclaimer
This indicator is for educational and informational purposes only. Linear regression candles and crossover signals are technical analysis tools and do not predict future price movement. Always use proper risk management and conduct your own analysis.
Made with passion by officialjackofalltrades
Indicator

Temporal Candle Grid [JOAT]Temporal Candle Grid
Overview
Temporal Candle Grid is a multi-timeframe structural confluence indicator that automatically pairs the current chart timeframe with a logical higher timeframe (HTF), fetches the HTF's open, high, low, and close series using non-repainting request.security() calls, and renders the resulting HTF candle geometry as a precision box overlay on the lower timeframe chart. Confirmation counters, buy-side/sell-side liquidity labels, and Fair Value Gap detection operate on confirmed bars only, giving traders a clean, lag-aware view of where HTF price structure begins and ends.
Intelligent Auto-Pairing
The indicator contains a timeframe pairing table that maps the current chart to a contextually appropriate higher timeframe without any manual configuration:
- 1m chart → 15m HTF
- 5m chart → 1H HTF
- 15m chart → 4H HTF
- 1H chart → Daily HTF
- 4H chart → Weekly HTF
- Daily chart → Monthly HTF
This auto-pairing logic ensures the HTF candle shown is always meaningfully larger than the current view — avoiding the degenerate case of pairing a 5m chart with a 10m HTF, which provides almost no additional information.
Users may override the auto-pair by specifying a custom HTF via input.
Non-Repainting HTF Data
Four separate request.security() calls retrieve HTF open, high, low, and close using:
- close offset on the HTF series (current-bar data from the HTF is never used)
- barmerge.lookahead_off
This combination guarantees that the HTF values shown were already fixed before the current bar opened — making the indicator safe for signal generation and alert use without lookahead contamination.
HTF Candle Box Rendering
The HTF candle is rendered as a transparent box spanning the full high-to-low range, with an inner body box (open-to-close) rendered in the candle direction colour (teal for bullish, red for bearish). At each HTF boundary (detected via ta.change() on the HTF open), the previous candle's boxes are finalised and new boxes begin drawing. This creates a visual grid of HTF candles overlaid on the lower timeframe, making the internal structure of each HTF bar immediately visible.
Confirmation Counter for HTF Range Breaks
Rather than signalling the moment price crosses an HTF boundary, the engine counts consecutive closes above the HTF high (for bullish breaks) or below the HTF low (for bearish breaks). A break is only confirmed after the count reaches a configurable threshold (default 2 consecutive closes). This eliminates wick-driven false breaks that resolve within the same HTF session.
Buy-Side / Sell-Side Liquidity Labels (BSL / SSL)
When a confirmed HTF high break occurs, the BSL (buy-side liquidity) level is marked with an upward label at the HTF high. When a confirmed HTF low break occurs, an SSL (sell-side liquidity) label is stamped at the HTF low. These labels persist and serve as reference levels for future pullbacks — common targets in institutional liquidity analysis.
Fair Value Gap Detection
Running on the current timeframe, the FVG engine identifies three-bar price gaps:
- Bullish FVG: Current bar's low is above the high from two bars ago — a gap in downside coverage indicating aggressive buying
- Bearish FVG: Current bar's high is below the low from two bars ago — a gap in upside coverage indicating aggressive selling
FVG boxes are drawn spanning the gap range and extend forward for 30 bars, rendering as reference zones for expected price return.
HTF Candle Projection
On the last bar (barstate.islast), the current in-progress HTF candle is projected forward as a semi-transparent dashed box, giving traders a visual reference for the current HTF session's range as it develops in real time.
Dashboard
A compact table at the bottom right displays:
- Current chart TF and detected HTF
- HTF candle direction (BULL / BEAR)
- Current break confirmation count
- Number of active BSL / SSL levels
- FVG status (open / filled) for the most recent gap
Inputs Reference
- Custom HTF Override — leave blank for auto-pair, enter a TF string (e.g., "60") to override
- Confirmation Bars Required (2) — consecutive closes beyond HTF range before break is confirmed
- Show HTF Candle Boxes — toggles the HTF overlay
- Show BSL / SSL Labels — toggles liquidity sweep labels
- Show FVG Boxes — toggles fair value gap boxes
- FVG Lookback (50) — how many bars back to scan for active FVGs
- Max BSL / SSL Labels (10) — prevents label accumulation over long sessions
- Theme: Dark, Light, Auto
How to Use
1. Apply on a 5m, 15m, or 1H chart. The indicator auto-detects the appropriate HTF.
2. The HTF candle boxes show the full range of each higher-timeframe session. Price tends to respect the HTF open, high, and low as decision levels.
3. Wait for the confirmation counter to reach the threshold before treating a HTF range break as confirmed.
4. BSL labels above prior HTF highs and SSL labels below prior HTF lows indicate pools of resting orders — common institutional sweep targets.
5. FVG boxes within the current HTF candle body often act as intra-session return targets.
Non-Repainting Design
All HTF data uses close with lookahead_off. Break signals require barstate.isconfirmed. FVG detection is based entirely on confirmed historical bars. The projection box at barstate.islast is explicitly marked as in-progress and does not generate signals.
Limitations
- Auto-pairing is based on standard timeframe relationships. Non-standard chart intervals (e.g., 3m, 7m) default to the nearest logical pair.
- The confirmation counter approach adds 1–2 bars of lag to break signals. This is intentional and necessary for non-repainting accuracy.
- On very fast-moving instruments, HTF candle boxes may be violated frequently, limiting their utility as structural references.
- FVG relevance degrades significantly on very high timeframes (Daily+) where gaps are rare and may take weeks to fill.
Disclaimer
This indicator is for educational and informational purposes only. Multi-timeframe structure analysis describes historical price behaviour and does not guarantee any specific future market outcome. Conduct your own analysis and use proper risk management at all times.
Made with passion by officialjackofalltrades
Indicator

Strata Volume Contour [JOAT]Strata Volume Contour
Introduction
Strata Volume Contour (SVC) is an open-source dynamic volume profile engine that divides a configurable lookback window into 25 equidistant price bins and accumulates the total traded volume within each bin. The result is a real-time horizontal histogram drawn to the right of the current bar, showing exactly where the market has spent the most volume over the selected period. The Point of Control (POC) — the highest-volume bin — is highlighted as the dominant fair-value level. The Value Area — the range of bins containing 70% of total volume — is shaded to mark the institutional accumulation zone.
The problem SVC solves is the inability of time-based charts to show volume distribution across price levels. Standard volume bars show how much was traded each period, but not at which prices. Volume profile reveals the price levels that attracted the most participation — these are the levels where institutional orders were concentrated, making them the most meaningful support and resistance references available. SVC brings this institutional-grade analysis directly to the chart without requiring specialized volume profile software.
Core Concepts
1. Price Range Binning
The indicator determines the highest high and lowest low across the full lookback window, then divides this range into 25 equal-width bins. Each bin represents a price zone:
float rangeHi = ta.highest(high, math.min(bar_index + 1, lookback))
float rangeLo = ta.lowest( low, math.min(bar_index + 1, lookback))
float binStep = (rangeHi - rangeLo) / BINS
A zero-range guard (binStep > 0) prevents division errors on flat or illiquid instruments. With 25 bins, the histogram provides enough granularity to identify structural features while remaining visually clean.
2. Volume Accumulation (Performance-Gated)
Volume accumulation runs exclusively on the last bar of the chart (barstate.islast). This is a critical design decision: running the O(bins x lookback) double-loop on every bar within the lookback window would create an O(bars x bins x lookback) computational cost that exceeds PulseWire's execution limits on longer charts. By gating to the last bar, the full recalculation costs O(bins x lookback) exactly once per chart update:
if barstate.islast
if binStep > 0.0
for i = 0 to BINS - 1
float binLevel = rangeLo + binStep * i
float binVol = 0.0
for k = 0 to lookback - 1
if math.abs(close - binLevel) <= binStep
binVol += nz(volume , 0.0)
array.set(volBins, i, binVol)
Each bar within the lookback is assigned to the nearest bin based on its closing price.
3. Point of Control (POC)
The POC is the bin with the highest accumulated volume. It represents the price level where the most trading activity occurred over the lookback period. Markets tend to use the POC as a magnet — price is attracted to it during consolidation and uses it as a reference when transitioning between ranges. The POC is rendered with a distinct highlight color (default orange) to make it immediately identifiable.
4. Value Area Calculation (70% Rule)
The Value Area is determined by a symmetric expansion algorithm. Starting from the POC, the algorithm expands outward one bin at a time, always adding the bin (above or below) that contributes the most volume, until the accumulated volume within the expanding range reaches 70% of total volume:
while vaVol < vaTarget and (vaLow > 0 or vaHigh < BINS - 1)
float addUp = vaHigh < BINS - 1 ? array.get(volBins, vaHigh + 1) : 0.0
float addDn = vaLow > 0 ? array.get(volBins, vaLow - 1) : 0.0
if addUp >= addDn and vaHigh < BINS - 1
vaHigh += 1
vaVol += addUp
else if vaLow > 0
vaLow -= 1
vaVol += addDn
The Value Area High (VAH) and Value Area Low (VAL) define the institutional accumulation zone. Price outside the value area represents a premium (above) or discount (below) relative to the lookback period's fair value.
5. Horizontal Histogram Visualization
Each bin is drawn as a horizontal box extending rightward from the current bar. The box width is proportional to the bin's volume relative to the POC volume — the POC spans the maximum width (50 bars right), and all other bins scale proportionally. Volume amounts are labeled on each bar.
Features
25-Bin Volume Profile Histogram: Full horizontal volume distribution rendered to the right of price with proportional bar widths and volume labels
Point of Control (POC): Highest-volume bin highlighted in a distinct color (default orange) with automatic detection each bar update
Value Area (VAH / VAL): The 70%-volume range shaded in a distinct color, with Value Area High and Low explicitly tracked and displayed in the dashboard
Gradient Bin Coloring: Each non-POC, non-VA bin is colored on a gradient from low volume (nearly transparent) to high volume (full opacity), creating a visual density map
Static Level Plots: All 25 bin levels are plotted as horizontal lines over the lookback window, providing a persistent price level grid even without the boxes visible
Price vs POC Context: The dashboard reports whether price is currently Above POC, Below POC, or At POC
8-Row Dashboard (Top Right): POC price, VA High, VA Low, price vs POC relationship, total volume, lookback period, and version
Watermark: JackOfAllTrades signature at chart center-bottom
Input Parameters
Profile Settings:
Lookback Period: Number of bars to include in the volume accumulation (default: 200, range: 50-500)
Visual Settings:
Show Volume Bins: Toggle the horizontal histogram boxes
Bin Color: Base color for the bin gradient (default: blue)
Bin Width: Border width of histogram boxes (default: 1, range: 0-5)
Highlight POC: Toggle POC highlighting
POC Color: Color for the highest-volume bin (default: orange)
Show Value Area: Toggle the 70%-volume range shading
VA High Color: Color for the Value Area High reference
VA Low Color: Color for the Value Area Low reference
Theme: Auto, Dark, or Light
How to Use This Indicator
Step 1: Identify the Point of Control
The POC is the most important level on the profile. It is the price the market spent the most time trading at — the ultimate fair-value anchor. Price below the POC is at a discount; above is at a premium. Trading setups at the POC during retest often exhibit tight risk/reward.
Step 2: Use Value Area Boundaries for Support and Resistance
The Value Area High and Low are the primary structural boundaries. Price often oscillates within the value area and struggles when attempting to leave it. A close outside the value area with high volume often signals the beginning of a new directional move.
Step 3: Adjust Lookback to Your Trading Style
Shorter lookbacks (50-100 bars) produce a profile of recent price structure, relevant for intraday traders. Longer lookbacks (300-500 bars) produce a macro structural view, relevant for swing traders. The POC and value area boundaries shift as the lookback changes.
Step 4: Watch Price Return to the POC
After price moves away from the POC, it frequently returns to it during low-volume periods. When price is far from the POC and trending, the POC can serve as a magnet target for reversion. When price is oscillating around the POC, it reflects a balanced, two-sided auction.
Indicator Limitations
The profile recalculates only on barstate.islast — it reflects the state at the last confirmed bar. During real-time market hours, the profile is not updating tick-by-tick; it updates each time a bar closes
The volume accumulation assigns each bar to a bin based on closing price, not the intrabar high-low range. This is a simplification — a professional volume profile distributes volume across all prices touched during the bar. The close-based method is computationally feasible within Pine Script's constraints
The 25-bin resolution is fixed. Very large price ranges (e.g., a lookback spanning a major crash) may produce bins too wide to be structurally meaningful. Users should adjust the lookback to keep the range within a reasonable structural period
Instruments with no volume data (some indices, spot forex) will show all zero bins and the profile will not render meaningfully
The histogram boxes are drawn to the right of the current bar. On instruments with extended right-side padding disabled, the boxes may be partially hidden off-chart
Originality Statement
SVC is original in its approach to making volume profile accessible within Pine Script's performance constraints. This indicator is published because:
The barstate.islast performance gate is the key design innovation — it collapses what would otherwise be an O(bars x bins x lookback) computation into a single O(bins x lookback) pass, making a 25-bin volume profile with 500-bar lookback feasible within PulseWire's execution limits
The 70% Value Area algorithm uses a symmetric expansion approach (always adding the larger of the next bin up or down) that correctly implements the standard Volume Profile Value Area methodology
The gradient bin coloring uses color.from_gradient() against the POC volume as the maximum reference, making the visual density map adaptive to the actual volume distribution rather than a fixed scale
The Price vs POC contextual label in the dashboard provides an immediately actionable market context read without requiring the user to visually judge their position relative to the histogram
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Volume profile levels are based on historical volume distribution and represent areas of past interest, not guarantees of future price behavior. The Point of Control and Value Area boundaries can and do shift significantly as the lookback window evolves. Always use proper risk management. The author is not responsible for any trading losses resulting from the use of this indicator.
-Made with passion by jackofalltrades
Indicator

MTF Confluence Gauge [JOAT]MTF Confluence Gauge
Introduction
One of the most persistent challenges in technical analysis is the problem of timeframe conflict. A setup that looks perfectly constructed on a 15-minute chart can be swimming against a powerful current on the 4-hour chart, while simultaneously aligned with the daily trend. Traders who operate on a single timeframe are making decisions without full awareness of the forces acting on the instrument across the full spectrum of market participants — from short-term speculators to institutional position traders whose horizons span weeks or months.
The MTF Confluence Gauge addresses this challenge by simultaneously reading the HEMA (Hull-EMA Hybrid) trend state of up to 5 configurable assets across 5 configurable timeframes — producing 25 individual trend readings. Each reading is a directional vote: +1 for bullish HEMA alignment, -1 for bearish alignment, 0 for neutral. These 25 votes are summed into a raw score ranging from -25 to +25, normalized to a -100 to +100 scale, and further refined by local market modifiers including a delta proxy, volume RSI, volatility squeeze state, and local HEMA trend. The result is a composite gauge that represents the aggregate directional consensus across assets and timeframes simultaneously.
This multi-asset capability makes the indicator unique even among multi-timeframe tools. Most MTF indicators read a single instrument across multiple timeframes. The MCG reads multiple instruments across multiple timeframes — enabling users to understand whether a bullish signal on their primary instrument is supported by correlated assets (e.g., sector ETFs, index futures, correlated crypto pairs) or is an isolated move that runs counter to the broader market ecosystem. A long signal supported by bullish readings across correlated assets and multiple timeframes is fundamentally different in quality from one that is isolated to a single timeframe of a single instrument.
Core Concepts
1. HEMA Trend Function for MTF Reads
The HEMA trend function is the foundational building block of every cell in the 5×5 matrix. For each asset-timeframe combination, request.security() retrieves the HEMA values on that timeframe, and the relative alignment of the fast, slow, and macro HEMA layers determines the trend vote. The lookahead parameter is explicitly set to barmerge.lookahead_off to ensure no future data contamination — the trend reading reflects only information that was available at the close of the most recent completed bar of the target timeframe.
f_hema(src, len) =>
ta.ema(2 * ta.ema(src, len / 2) - ta.ema(src, len), math.round(math.sqrt(len)))
f_mtfTrend(sym, tf) =>
h1 = request.security(sym, tf, f_hema(close, hFast), lookahead=barmerge.lookahead_off)
h2 = request.security(sym, tf, f_hema(close, hSlow), lookahead=barmerge.lookahead_off)
h3 = request.security(sym, tf, f_hema(close, hMacro), lookahead=barmerge.lookahead_off)
h1 > h2 and h2 > h3 ? 1 : h1 < h2 and h2 < h3 ? -1 : 0
This function is called 25 times — once per cell in the matrix. The result for each call is stored in a 5×5 array of integers and subsequently used for both the raw score calculation and the table cell coloring.
2. Raw Score and Normalization
The 25 individual trend votes are summed to produce a raw score. This sum is then smoothed with a 3-bar EMA to reduce single-bar noise. Normalization to the range is achieved by dividing the smoothed raw score by 25 (the maximum possible absolute value) and multiplying by 100.
rawScore = 0
for r = 0 to 4
for c = 0 to 4
rawScore += trendMatrix.get(r * 5 + c)
smoothedRaw = ta.ema(rawScore, 3)
normalizedScore = smoothedRaw / 25 * 100
The normalized score forms the base for the histogram and is displayed in the dashboard as the "MTF Bias" value. By normalizing against the theoretical maximum, the scale is consistent regardless of how many assets are configured as neutral (0 votes) — the maximum expressible bull consensus is always +100 and the maximum bear consensus is always -100.
3. Local Score Modifiers
The raw MTF score represents the multi-asset, multi-timeframe consensus, but it does not account for the specific conditions of the primary chart instrument at the current moment. Four local modifier calculations adjust the score based on immediate market context. The local HEMA trend applies a ±10 point bonus. The delta proxy (bar-range-based buying/selling pressure) applies a ±5 point bonus. Volume RSI above threshold applies a ±5 point bonus in the direction of the local trend. The volatility squeeze state applies a ±5 bonus when the market is not squeezing (i.e., volatility is freely expressing direction). All individual bonuses are summed and the combined total is clamped to the range.
localBonus = localTrend * 10
deltaBonus = deltaPos ? 5 : -5
volBonus = highVol ? (localTrend > 0 ? 5 : -5) : 0
sqzBonus = squeezing ? 0 : localTrend * 5
totalScore = math.max(-100, math.min(100, normalizedScore + localBonus + deltaBonus + volBonus + sqzBonus))
displayScore = ta.ema(totalScore, 5)
The final display score is a 5-bar EMA of the adjusted total, providing visual smoothness in the histogram while retaining the responsiveness of the underlying calculations. Local modifiers mean the gauge can show strong bull bias from MTF readings while still being dampened by bearish local conditions — a useful warning mechanism.
4. The 5×5 Color-Coded Table
The visual centerpiece of this indicator is the 5×5 table rendered in the oscillator pane. Each of the 25 cells represents one asset-timeframe combination. Bullish cells are filled with teal and display an upward arrow (▲). Bearish cells are filled with red and display a downward arrow (▼). Neutral cells are filled with violet and display a dash (—). Row 6 of the table shows the column-sum score for each timeframe column, giving an immediate vertical read of how strongly any given timeframe is leaning across all configured assets. This allows traders to identify whether bias is uniform across timeframes or concentrated in specific horizons.
5. Histogram, Squeeze Background, and Reference Lines
The composite score is rendered as a histogram with gradient fill — teal shades above zero transitioning toward deep teal at maximum bull readings, red shades below zero deepening toward maximum bear. Reference lines at ±25 define the "bias threshold" — readings beyond this level indicate a meaningful multi-timeframe lean. Reference lines at ±60 define the "strong conviction threshold" — readings here suggest near-uniform agreement across the majority of configured cells. When the local volatility squeeze is active (detected via ATR compression), the oscillator pane background tints violet, visually indicating that the current score may be elevated or depressed relative to its normal expression due to compressed price action.
Features
25-Cell MTF Matrix: 5 configurable assets × 5 configurable timeframes, each independently returning a HEMA trend vote.
lookahead_off Security Calls: All request.security() calls use barmerge.lookahead_off to prevent future bar data contamination.
Smoothed Normalization: Raw score EMA-smoothed then normalized to for consistent cross-session comparability.
Four Local Modifiers: Local HEMA trend, delta proxy, volume RSI, and squeeze state each contribute bonus points to produce a context-aware composite score.
5×5 Color-Coded Table: Teal/red/violet cells with directional arrows and column score totals for immediate visual matrix reading.
Gradient Histogram: color.from_gradient fill above and below zero with reference lines at ±25 (bias) and ±60 (strong conviction).
Squeeze Background Tint: Violet overlay on oscillator pane background when local volatility compression is detected.
Nine-Row Dashboard: MTF bias label (six levels from STRONG BULL to STRONG BEAR), composite score, raw MTF score, squeeze state, Pearson R, delta bias, volume RSI, and local trend.
Six Alert Conditions: Cross above +25, cross below -25, cross above +60, cross below -60, cross above 0, cross below 0.
Input Parameters
Asset Configuration:
Asset 1-5 Symbols: Ticker symbols for each of the five configurable assets (defaults: current symbol, SPY, QQQ, GLD, TLT or equivalents)
Timeframe Configuration:
TF1-TF5: Five timeframe strings for the matrix columns (defaults: "15", "60", "240", "D", "W")
HEMA Settings:
Fast Length: HEMA fast period for all MTF reads (default: 20)
Slow Length: HEMA slow period for all MTF reads (default: 50)
Macro Length: HEMA macro period for all MTF reads (default: 100)
Local Modifier Settings:
Delta Window: Smoothing period for delta proxy calculation (default: 10)
Volume RSI Threshold: Level above which volume is considered high (default: 65)
ATR Squeeze Length: Period for local volatility compression detection (default: 20)
Display Settings:
Show Table: Toggle the 5×5 trend matrix table (default: true)
Show Histogram: Toggle the composite score histogram (default: true)
Show Dashboard: Toggle the nine-row information table (default: true)
Show Squeeze Background: Toggle the violet compression tint (default: true)
How to Use This Indicator
Step 1: Configure Assets for Your Trading Context
The indicator's value scales directly with the relevance of the configured assets to your primary instrument. For equity traders, configuring sector ETFs correlated with the primary stock (e.g., XLK for technology stocks, XLF for financials) alongside index instruments (SPY, QQQ, DIA) creates a meaningful consensus gauge. For crypto traders, configuring BTC, ETH, and leading altcoins provides an ecosystem-wide directional read. For forex traders, related currency pairs and safe-haven instruments (gold, bonds) capture macro correlation. Spend time selecting assets whose price behavior is structurally linked to your primary trading instrument.
Step 2: Use the Table for Timeframe Structure Analysis
Before looking at the composite score, read the table column by column. If the shorter timeframe columns (15m, 1H) are predominantly teal (bullish) but the longer timeframe columns (Daily, Weekly) are predominantly red (bearish), the market is in short-term counter-trend bounce territory — a higher-risk environment for long trades. Conversely, when both short and long timeframe columns are aligned in the same direction, the consensus is clean and structural. The column score row at the bottom of the table quantifies this alignment numerically.
Step 3: Interpret the Composite Score Levels
The ±25 threshold is the first meaningful level. A score above +25 indicates that more than half of the 25 cells are bullish (adjusted for local modifiers), suggesting a genuine bias rather than random noise. Between +25 and +60, the market has a directional lean but lacks uniform agreement. Above +60, the consensus is strong — the majority of assets across the majority of timeframes are in bullish alignment. The inverse applies below -25 and -60. Cross-zero signals (score moving from negative to positive) indicate a shift in aggregate consensus, which is often a leading indicator of trend changes on the primary instrument.
Step 4: Monitor Local Modifier Impact
The dashboard displays both the raw MTF score and the composite adjusted score. The difference between these two values reflects the cumulative impact of local modifiers. A large positive difference means local conditions (delta, volume, squeeze, HEMA) are amplifying the MTF signal. A large negative difference means local conditions are dampening it — the MTF matrix shows bulls, but the primary instrument itself is not confirming. In these cases, patience is warranted before entering.
Indicator Limitations
The indicator makes 25 request.security() calls plus additional local calculations. On crowded chart setups with many other indicators, this computational load may affect chart loading time. PulseWire enforces limits on request.security() calls per script; users should be aware of this limit if adding other indicators with security calls.
All 25 MTF trend readings update on the chart's native timeframe bars. Readings from higher timeframes update only when a new bar completes on that timeframe — the HEMA reading for a weekly timeframe, for instance, updates only at the weekly close. Between weekly closes, the weekly cell reading remains at the prior week's value.
HEMA calculations at very short periods on very high timeframes (e.g., period 20 on a Monthly timeframe) may have insufficient bars to produce statistically stable readings. Users should ensure the target instrument has sufficient history on all configured timeframes.
Asset correlation is dynamic — assets that are correlated in one market regime may decouple in another. A gauge configured for normal market correlation may produce misleading readings during crisis events when traditional correlations break down.
The local modifier adjustments (±10, ±5, ±5, ±5) are fixed contribution weights. They do not adapt to changing market conditions and may disproportionately influence the composite score during specific regimes.
The composite score is a simplified linear aggregation of heterogeneous signals. It treats a weekly HEMA reading as equivalent to a 15-minute HEMA reading in terms of contribution weight, which may not reflect the practical importance of longer timeframe trends.
Originality Statement
The MTF Confluence Gauge is an original multi-dimensional trend aggregation tool that differs meaningfully from existing multi-timeframe indicators.
The 5×5 asset-timeframe matrix — simultaneously reading five user-configurable assets (not just one instrument across five timeframes) across five user-configurable timeframes — is an original architectural choice that enables cross-asset consensus analysis not available in standard MTF indicators.
The HEMA-based trend vote function (requiring all three HEMA layers to be in sequence for a definitive +1 or -1 vote, otherwise returning 0) is a more stringent trend classification than simple moving average crossovers typically used in MTF dashboards.
The four-component local modifier system — HEMA bonus, delta proxy bonus, volume RSI bonus, and squeeze state bonus — applied as additive adjustments to the normalized MTF score before display is an original composite scoring architecture.
The six-level bias label system in the dashboard (STRONG BULL, BULL, SLIGHT BULL, SLIGHT BEAR, BEAR, STRONG BEAR) derived from the composite score threshold ranges provides a human-readable categorical summary not commonly implemented in MTF oscillators.
The visual integration of the 5×5 table within the oscillator pane (rather than as a separate overlay) alongside the gradient histogram, squeeze background tint, and reference lines at ±25 and ±60 represents a unified pane design not seen in comparable indicators.
Disclaimer
The MTF Confluence Gauge is provided for educational and informational purposes only. It is a technical analysis tool and does not constitute financial advice. Multi-timeframe and multi-asset confluence does not guarantee trade success. Correlation between assets changes over time and cannot be relied upon to remain stable. All trading involves risk of loss. Users are solely responsible for their own trading decisions. Please consider your individual risk tolerance and consult a licensed financial professional before engaging in any trading activity.
-Made with passion by officialjackofalltrades
Indicator

SNP420 - SAO - Ultima - Multi-Asset Momentum IndicatorMulti-timeframe trend-following indicator for H1 charts. Combines D1 + H4 trend alignment with H1 entry precision using EMA, RSI, MACD, and ADX filters. Designed for EURUSD, USDJPY, and GBPUSD during London/NY
sessions.
Entry: Requires D1 and H4 trend agreement, price above/below EMA21, RSI in momentum zone (50-75 long / 25-50 short), positive MACD histogram, and ADX above 25. Signals only fire during active sessions (London,
Overlap, NY).
Exit logic (8 layers, priority-ordered): Hard SL at 2.5×ATR, TP at 5R, trailing stop from 2R profit, breakeven protection at 2R, stale position killer at 8 bars, D1/H4 trend reversal exits, and adaptive time
stops (48 bars losers / 96 bars winners).
On-chart display: Entry arrows (LONG/SHORT), color-coded exit labels (SL, TP, TRAIL, BE, STALE, FLIP, TIME), live SL/TP/trail level lines, trend background shading, EMA ribbon (21/50/200), and real-time info
panel showing D1/H4 trend, ADX, RSI, session status, and position state. Built-in alerts for all entry and exit events.
Backtested: +448% in 2025 (12/12 months profitable), +107% in 2026 Q1. Profit driven by TRAIL exits (100% WR, 83% of total profit). Robust across 10 synthetic market Monte Carlo scenarios (100% profitable, avg
78% of backtest performance).
Piece and love. Indicator

Indicator

Confluence Ledger [JOAT]Confluence Ledger
Introduction
The Confluence Ledger is an advanced open-source multi-timeframe confluence scoring engine that evaluates eight independent analytical dimensions across five configurable timeframes, producing a unified directional bias score from 0 to 100. It answers the question every trader asks: "Do the timeframes agree, and how strongly?" Rather than checking multiple indicators on multiple charts, this single tool synthesizes trend alignment, momentum phase, volatility state, market structure, volume conviction, RSI regime, VWAP bias, and ATR expansion into one actionable number.
The indicator overlays on the price chart with gradient-colored candles, confluence pressure zones, regime transition lines, divergence detection boxes, and institutional confluence signals - all backed by a compact 12-row dashboard that displays every metric in real-time.
Why This Indicator Exists
Multi-timeframe analysis is widely recognized as essential for high-probability trading, but executing it manually is tedious and error-prone. A trader might check the daily trend, the 4H momentum, the 1H structure, and the 15m entry — but doing this across eight different analytical dimensions is impractical without automation.
The Confluence Ledger automates this entire process by:
Scoring eight distinct analytical dimensions on each of five timeframes, producing 40 individual data points per bar
Weighting higher timeframes more heavily (Daily gets 2x the weight of the 5-minute chart), reflecting the institutional reality that higher timeframe trends dominate
Mapping the weighted aggregate to a 0-100 scale where 50 is perfectly neutral, above 60 is bullish, and below 40 is bearish
Adding institutional features that analyze the score itself: pressure zones where extreme confluence persisted, regime transitions where the bias flipped, and divergences between price and the confluence score
The Eight Scoring Dimensions
Each dimension returns a score from -1 (maximum bearish) to +1 (maximum bullish). Here is what each measures and why it matters:
1. Trend Alignment
Combines EMA slope direction with price position relative to the adaptive moving average. If price is above a rising EMA, the trend score is +1. If price is below a falling EMA, it is -1. Mixed conditions produce intermediate scores. This captures the most fundamental question: is the trend up or down?
2. Momentum Phase
A composite of three normalized oscillators — Bollinger %B, CCI, and ROC. Each is scored independently and averaged. This measures whether momentum is bullish, bearish, or neutral, using three different mathematical approaches to reduce the chance of a single oscillator giving a misleading signal.
3. Volatility State
Measures Bollinger Band width relative to its 50-bar average. Expanding volatility scores positive (in the direction of price), compressing volatility scores near zero. This dimension captures whether the market is in expansion (trending) or compression (range-bound).
4. Structure Bias
Uses an oscillator-based swing detection method to track whether the market is making higher highs/higher lows (bullish structure, score +1) or lower highs/lower lows (bearish structure, score -1). This is the structural backbone of Smart Money analysis.
5. Volume Conviction
Calculates current volume relative to the 20-bar average and weights it by candle direction. A bullish candle on 2x average volume scores strongly positive. A bearish candle on low volume scores weakly negative. This measures whether volume confirms the directional move.
6. RSI Regime
RSI position relative to 50 provides the base score, with additional weight for extreme readings (above 70 or below 30). This captures overbought/oversold conditions and the general momentum regime.
7. VWAP Bias
Price distance from VWAP normalized by ATR. When price is significantly above VWAP, institutional flow is net bullish. Below VWAP, net bearish. The ATR normalization ensures the score adapts to the instrument's volatility.
8. ATR Expansion
The rate of change of ATR itself, weighted by candle direction. When ATR is expanding in the direction of price, it confirms the move has volatility behind it. Contracting ATR suggests the move is losing energy.
Multi-Timeframe Aggregation
All eight dimensions are calculated on each of five timeframes (default: 5m, 15m, 1H, 4H, Daily) using request.security(). The per-timeframe scores are then weighted:
TF1 (5m): weight 1.0
TF2 (15m): weight 1.2
TF3 (1H): weight 1.5
TF4 (4H): weight 1.8
TF5 (Daily): weight 2.0
This weighting reflects the institutional principle that higher timeframe trends are more significant. A strong daily bias overrides conflicting 5-minute noise.
The weighted aggregate is mapped from to :
float confluence_score = math.round((raw_agg + 1.0) / 2.0 * 100)
Score interpretation:
80-100: EXTREME LONG — near-unanimous multi-TF bullish agreement
70-79: STRONG LONG — clear bullish bias across most timeframes
60-69: LEAN LONG — moderate bullish tilt
41-59: NEUTRAL — no clear directional consensus
31-40: LEAN SHORT — moderate bearish tilt
21-30: STRONG SHORT — clear bearish bias
0-20: EXTREME SHORT — near-unanimous bearish agreement
Institutional Analytics Engine
Beyond the core score, the indicator calculates several advanced metrics:
TF Agreement: Counts how many of the five timeframes are bullish vs bearish. When 4+ timeframes agree, a "Full Alignment" signal fires — these are the highest-conviction directional setups.
Score Velocity: The rate of change of the confluence score itself. "ACCEL UP" means the score is rising and accelerating. "FALLING" means directional conviction is weakening. This is the first derivative of confluence — it tells you whether agreement is building or fading.
Conviction Meter: Measures how tightly aligned the five timeframe scores are using standard deviation. Low variance (high conviction) means all timeframes agree closely. High variance (low conviction) means timeframes are giving conflicting signals.
Cross-TF Momentum Divergence: Compares the average of lower timeframes (TF1+TF2) against higher timeframes (TF4+TF5). When lower TFs are leading (diverging bullish while higher TFs lag), it can signal an early trend change. When upper TFs are leading, the higher timeframe trend is asserting dominance.
HTF Dominance: Identifies which higher timeframe is currently driving the overall bias the most. This tells you whether the daily, 4H, or 1H is the primary force behind the score.
Dimension Consensus: Averages each of the eight dimensions across all five timeframes to find which dimension is the strongest driver. If "TREND" is the strongest dimension, the trend alignment across timeframes is the primary force. If "VOLUME" is strongest, volume conviction is driving the bias.
Chart Features
1. Confluence Pressure Zones
When the confluence score stays extreme (above 70 or below 30) for a configurable minimum number of bars (default 5), the indicator draws a dashed box marking the price range during that period. These "pressure zones" represent areas where sustained multi-timeframe agreement created institutional accumulation or distribution. They often act as future support/resistance.
2. Regime Transition Lines
When the confluence score crosses from bullish to bearish territory (or vice versa), a labeled dashed line is drawn at the transition price. These lines show the exact price where the multi-timeframe consensus shifted — they act as institutional support/resistance levels that are derived from confluence rather than price structure.
3. Confluence Divergence Detector
When price makes a new 20-bar high but the confluence score is declining (or price makes a new low but the score is rising), the indicator marks a confluence divergence. This is a unique concept — it detects divergence between a multi-timeframe composite score and price action, which is fundamentally different from single-oscillator divergence.
4. Institutional Confluence Signals
Multi-condition filtered signals that fire when confluence score exceeds thresholds, velocity confirms, and a cooldown period has elapsed. These are the highest-conviction signals the indicator produces.
5. Gradient Confluence Candles
Candles are colored on a gradient from the bearish color (score near 0) to the bullish color (score near 100). This creates an instant visual read of confluence strength on every candle.
Input Parameters
Timeframes:
TF 1 through TF 5 (defaults: 5m, 15m, 60m, 240m, Daily) — all configurable
Scoring Parameters:
MA Length (27), ATR Length (14), BB Length (20), BB Mult (2.0)
CCI Length (23), ROC Length (50), RSI Length (14), Swing Length (10)
Institutional Features:
Gradient Confluence Candles, Confluence Pressure Zones, Regime Transition Lines
Confluence Divergence Boxes, Institutional Confluence Signals
Signal Cooldown (20 bars), Pressure Zone Min Bars (5)
How to Use This Indicator
Step 1: Read the Score
The confluence score (0-100) is your primary directional gauge. Above 60 = bullish bias. Below 40 = bearish bias. 40-60 = no clear edge — consider staying flat or reducing position size.
Step 2: Check TF Agreement
The dashboard shows how many timeframes agree. 4/5 or 5/5 agreement in one direction is a high-conviction setup. 2B/3S or similar splits suggest conflicting signals — proceed with caution.
Step 3: Monitor Score Velocity
A score of 72 that is "ACCEL UP" is more bullish than a score of 72 that is "FALLING." Velocity tells you whether the consensus is strengthening or weakening.
Step 4: Use Pressure Zones as S/R
When price returns to a previous pressure zone, expect a reaction. These zones represent areas where sustained multi-timeframe agreement existed — institutional memory.
Step 5: Watch for Confluence Divergences
If price is making new highs but the confluence score is declining, the multi-timeframe consensus is not confirming the move. This is a warning sign that the advance may stall or reverse.
Step 6: Trade Regime Transitions
When the score crosses from bearish to bullish territory (or vice versa), the regime transition line marks the pivot price. These transitions often produce sustained directional moves.
Limitations
The indicator uses request.security() to fetch data from five timeframes. On very low timeframes (1m), the higher timeframe data updates less frequently, which can create lag in the score.
The weighting system (higher TFs get more weight) is a design choice that works well for trend-following. Scalpers who trade against the higher timeframe trend may find the score misleading for their style.
Confluence score is a composite of mathematical calculations. A score of 80 does not mean "80% chance of going up" — it means 80% of the weighted analytical dimensions agree on a bullish reading.
The indicator evaluates current conditions, not future ones. A high confluence score can reverse quickly on unexpected news or institutional repositioning.
VWAP calculations may behave differently on instruments without continuous trading sessions.
Past confluence patterns do not guarantee future confluence patterns.
Originality Statement
This indicator is original in its systematic multi-dimensional, multi-timeframe confluence approach. While individual components (EMA trend, RSI, VWAP, etc.) are established concepts, this indicator is justified because:
It evaluates eight independent analytical dimensions simultaneously — not just trend and momentum, but also volatility state, market structure, volume conviction, RSI regime, VWAP bias, and ATR expansion
Each dimension is scored on five timeframes with weighted aggregation, producing 40 data points synthesized into a single actionable score
The Confluence Pressure Zone concept — marking areas where extreme multi-TF agreement persisted — creates institutional S/R levels derived from confluence rather than price structure
Regime Transition Lines mark the exact price where multi-timeframe consensus shifted, providing a unique form of dynamic support/resistance
Confluence Divergence Detection compares a multi-TF composite score against price action — fundamentally different from single-oscillator divergence
Score Velocity, Conviction Meter, Cross-TF Momentum Divergence, HTF Dominance, and Dimension Consensus provide meta-analysis of the confluence score itself
The integration of all these features with gradient candle coloring and a comprehensive dashboard creates a unified confluence analysis system not available in any single existing indicator
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss.
The confluence score is a mathematical composite of current market conditions across multiple timeframes. It does not predict future price movement. High confluence does not guarantee profitable trades. Market conditions can change rapidly, and past confluence patterns do not guarantee future patterns.
Always use proper risk management. Never risk more than you can afford to lose. The author is not responsible for any losses incurred from using this indicator.
-Made with passion by officialjackofalltrades
Indicator

Singularity Convergence Protocol [JOAT]Singularity Convergence Protocol
Introduction
The Singularity Convergence Protocol is an advanced open-source multi-system confluence strategy that combines eight distinct analytical methodologies into a unified trading system. This strategy integrates momentum analysis, Smart Money Concepts, velocity waves, liquidity tracking, trend detection, divergence analysis, volatility measurement, and institutional flow into a comprehensive decision-making engine that generates high-probability trading signals through systematic confluence scoring.
Unlike single-indicator strategies, the Singularity Convergence Protocol provides institutional-grade signal generation through multi-dimensional analysis, weighted confluence scoring, and adaptive risk management. The strategy is designed for traders who understand that the highest probability setups occur when multiple independent analytical systems align simultaneously, creating a "singularity" of confluence.
Why This Strategy Exists
This strategy addresses the critical challenge of signal reliability in algorithmic trading. By requiring confluence across multiple independent systems, it dramatically reduces false signals while identifying the highest probability setups. The strategy reveals:
System 1 - Momentum Analysis: Quantum Flux Oscillator methodology combining VFI, Laguerre RSI, Fisher Transform, TSI, MFI, OBV, and A/D
System 2 - Structure Detection: Smart Money Concepts including Order Blocks, Fair Value Gaps, Liquidity Levels, and Market Structure
System 3 - Velocity Waves: Multi-layer momentum spectrum with five EMA layers and ALMA enhancement
System 4 - Liquidity Tracking: Pivot-based liquidity detection with sweep confirmation
System 5 - Trend Analysis: Hull MA, SuperTrend, ADX, and moving average alignment
System 6 - Divergence Detection: Multi-oscillator divergence with RSI, MACD, TSI, and Stochastic
System 7 - Volatility Analysis: ATR, Bollinger Bands, Keltner Channels, Historical Volatility, and Squeeze detection
System 8 - Institutional Flow: CMF, MFI, OBV, VWAP, and A/D Line integration
Core Strategy Logic
1. Eight Independent Analytical Systems
Each system operates independently and generates binary signals (bullish/bearish):
Momentum System:
Calculates composite momentum from seven components
Generates bullish signal when momentum > 0 and rising
Generates bearish signal when momentum < 0 and falling
Score: +1 for bullish, -1 for bearish, 0 for neutral
Structure System:
Detects order blocks, FVGs, and market structure
Bullish when OB/FVG active + bullish structure + discount zone
Bearish when OB/FVG active + bearish structure + premium zone
Score: +1 for bullish, -1 for bearish, 0 for neutral
Velocity Wave System:
Analyzes five momentum layers with ALMA enhancement
Bullish when Basis 1 > Basis 2 and rising with spread > 5
Bearish when Basis 1 < Basis 2 and falling with spread < -5
Score: +1 for bullish, -1 for bearish, 0 for neutral
Liquidity System:
Tracks liquidity sweeps with volume confirmation
Bullish when SSL swept with volume surge
Bearish when BSL swept with volume surge
Score: +1 for bullish, -1 for bearish, 0 for neutral
Trend System:
Combines Hull MA, SuperTrend, ADX, and MA alignment
Bullish when Hull rising + SuperTrend bullish + ADX > 20 + MA alignment
Bearish when Hull falling + SuperTrend bearish + ADX > 20 + MA alignment
Score: +1 for bullish, -1 for bearish, 0 for neutral
Divergence System:
Detects divergences across RSI, MACD, TSI, and Stochastic
Bullish when regular bullish divergence with 2+ oscillator confluence
Bearish when regular bearish divergence with 2+ oscillator confluence
Score: +1 for bullish, -1 for bearish, 0 for neutral
Volatility System:
Measures volatility through ATR, BB Width, KC, HV, and Squeeze
Bullish when squeeze breakout upward with low volatility index
Bearish when squeeze breakout downward with low volatility index
Score: +1 for bullish, -1 for bearish, 0 for neutral
Institutional Flow System:
Tracks institutional positioning through CMF, MFI, OBV, VWAP, A/D
Bullish when flow index > 10 with CMF > 0 and MFI > 50
Bearish when flow index < -10 with CMF < 0 and MFI < 50
Score: +1 for bullish, -1 for bearish, 0 for neutral
2. Confluence Scoring System
The strategy employs two scoring methods:
Binary Signal Count:
Counts how many systems generate bullish signals (0-8)
Counts how many systems generate bearish signals (0-8)
Minimum signals required (default: 2) filters weak setups
Weighted Confluence Score:
Sums all system scores (range: -8 to +8)
Adds bonus points for extreme conditions:
- Extreme momentum regimes (+1)
- All velocity layers aligned (+1)
- 4/4 divergence confluence (+1)
- Volume surge with strong flow (+1)
Total score can exceed ±8 with bonuses
3. Entry Conditions
Two entry modes are available:
Standard Mode (Binary Count):
Long Entry: Bullish signals >= minimum AND bullish signals > bearish signals
Short Entry: Bearish signals >= minimum AND bearish signals > bullish signals
Simple and straightforward
Confluence Mode (Weighted Score):
Long Entry: Total bullish score >= minimum AND bullish score > bearish score
Short Entry: Total bearish score >= minimum AND bearish score > bullish score
Accounts for bonus conditions and extreme setups
4. Risk Management System
The strategy includes comprehensive risk management:
Position Sizing:
Risk per trade: Percentage of equity (default: 2%)
Position size calculated based on stop distance and risk percentage
Prevents over-leveraging on any single trade
Stop Loss Placement:
ATR-based stops: Stop distance = ATR × multiplier (default: 2.0)
Long stops: Entry price - (ATR × multiplier)
Short stops: Entry price + (ATR × multiplier)
Adapts to current volatility
Take Profit Targets:
Risk:Reward ratio (default: 2.0)
Target distance = Stop distance × R:R ratio
Long targets: Entry price + (Stop distance × R:R)
Short targets: Entry price - (Stop distance × R:R)
Trailing Stops:
Optional trailing stop (default: enabled)
Trail distance = ATR × trailing multiplier (default: 3.0)
Locks in profits as trade moves favorably
Adjusts to volatility changes
5. Visual Features
The strategy includes comprehensive visual elements:
Hull Moving Average: Primary trend line with dynamic coloring
SuperTrend Bands: Dynamic support/resistance levels
EMA Matrix: Three EMAs showing trend alignment
Order Block Boxes: Bullish and bearish OB zones
Fair Value Gap Boxes: FVG zones with dashed borders
Liquidity Lines: BSL and SSL levels with sweep tracking
Equilibrium Line: Premium/discount zone reference
Background Coloring: Regime indication (extreme bull/bear, squeeze, entry signals)
Information Dashboard: Real-time display of all metrics and scores
Dashboard Metrics
The comprehensive dashboard displays:
Bull/Bear Scores: Total confluence scores with signal counts
Volatility Index: Current volatility level and regime
Spread: Velocity wave spread indicating momentum strength
Flow Index: Institutional positioning measurement
Price Zone: Premium/discount position with percentage
Win Rate: Strategy performance with trade count
Position: Current position status (Long/Short/Flat)
Signal: Current signal status with confluence indication
Strategy Settings and Defaults
Backtest Configuration:
Initial Capital: $100,000
Position Size: 100% of equity (adjusted by risk management)
Commission: 0.1% per trade
Slippage: 2 ticks
Pyramiding: Disabled (one position at a time)
Risk Management Defaults:
Risk Per Trade: 2.0% of equity
Stop Loss: 2.0 × ATR
Take Profit: 2.0 × Risk (2:1 R:R)
Trailing Stop: Enabled, 3.0 × ATR
Strategy Defaults:
Minimum Signals: 2 (requires at least 2 systems to agree)
Use Confluence Scoring: Enabled (uses weighted scores)
Show Visual Features: Enabled (displays all chart elements)
How to Use This Strategy
Step 1: Configure Risk Parameters
Set risk per trade, stop loss ATR multiplier, and take profit R:R ratio based on your risk tolerance.
Step 2: Choose Entry Mode
Select standard mode (binary count) for simplicity or confluence mode (weighted scores) for advanced filtering.
Step 3: Set Minimum Signals
Higher minimum (3-4) = fewer but higher quality trades. Lower minimum (2) = more trades but lower quality.
Step 4: Enable Trailing Stops
Trailing stops lock in profits on winning trades. Adjust trailing ATR multiplier based on market volatility.
Step 5: Monitor Dashboard
Watch bull/bear scores in real-time. Scores >= 4 indicate strong confluence. Scores >= 6 indicate exceptional setups.
Step 6: Review Visual Confluence
Check that multiple visual elements align: trend, structure, liquidity, and flow should all confirm signal direction.
Step 7: Backtest Thoroughly
Test on multiple instruments and timeframes. Adjust parameters based on results. Aim for 100+ trades for statistical significance.
Best Practices
Use on liquid instruments (major forex, large-cap stocks, major crypto)
Test on multiple timeframes - higher timeframes generally more reliable
Increase minimum signals in choppy markets, decrease in trending markets
Monitor win rate - aim for 40%+ with 2:1 R:R for profitability
Adjust stop loss ATR multiplier based on instrument volatility
Use confluence mode for highest quality signals
Review dashboard before entering - ensure multiple systems align
Combine with higher timeframe analysis for additional confirmation
Be patient - wait for high confluence scores (4+) for best results
Respect the risk management - never override stop losses
Strategy Limitations
Requires sufficient historical data for all eight systems
May generate fewer signals than single-indicator strategies
Performance varies by instrument and timeframe
Backtesting results do not guarantee future performance
Slippage and commission can significantly impact results
Extreme market conditions may cause all systems to fail simultaneously
Requires regular monitoring and parameter adjustment
Not suitable for very low timeframes (< 5 minutes) due to noise
Input Parameters
Risk Management:
Risk Per Trade %: Percentage of equity to risk (default: 2.0%)
Stop Loss (ATR): ATR multiplier for stops (default: 2.0)
Take Profit (R:R): Risk:reward ratio (default: 2.0)
Use Trailing Stop: Enable trailing stops (default: enabled)
Trailing ATR: ATR multiplier for trailing (default: 3.0)
Strategy Settings:
Minimum Signals: Required system agreements (default: 2)
Use Confluence Scoring: Enable weighted scoring (default: enabled)
Show Visual Features: Display chart elements (default: enabled)
Originality Statement
This strategy is original in its comprehensive multi-system approach. While individual analytical methodologies are established concepts, this strategy is justified because:
It integrates eight distinct analytical systems into a unified decision-making engine
The confluence scoring system measures agreement across independent methodologies
Bonus scoring for extreme conditions identifies exceptional setups
Comprehensive risk management adapts to volatility and account size
Visual integration allows traders to verify confluence across multiple dimensions
The dashboard provides real-time transparency into all system states
Systematic approach removes emotional decision-making from trading
Strategy Performance Notes
When publishing this strategy, ensure you:
Use realistic account size (default: $100,000)
Include realistic commission (0.1%) and slippage (2 ticks)
Generate 100+ trades for statistical significance
Document all default settings in description
Explain risk management parameters clearly
Show results on multiple instruments/timeframes
Discuss limitations and market conditions where strategy works best
Never make unrealistic claims about future performance
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Past performance does not guarantee future results. Backtesting results are hypothetical and do not represent actual trading. Actual results may differ significantly from backtested results due to slippage, commission, market conditions, and execution differences.
The strategy combines multiple analytical systems, but no combination of indicators can predict future price movement with certainty. Market conditions change, and strategies that worked historically may not work in the future. Users must conduct their own analysis and risk assessment before using this strategy.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this strategy. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Strategy

Periodic Anchored VWAPPeriodic Anchored VWAP
Overview
The Periodic Anchored VWAP is a professional volume-weighted average price indicator that anchors VWAP calculations to fixed calendar periods. Unlike traditional anchored VWAP tools that require manual point-and-click anchoring, this indicator automatically resets VWAP calculations at predefined interval boundaries (hourly, daily, weekly, monthly), providing a clean, systematic approach to volume-weighted support and resistance analysis.
Key Features
13 Anchor Periods: 1H, 4H, 6H, 12H, 1D, 3D, 1W, 2W, 1M, 2M, 3M, 6M, 12M
Smart Timeframe Filtering: Automatically hides VWAPs when chart timeframe equals or exceeds anchor period
Individual Period Controls: Toggle each VWAP on/off independently with custom colors
Master Toggle: Global show/hide for all VWAP lines
Dynamic Labels: Real-time price labels at the right edge of chart
Compact Settings: Streamlined input panel with inline color pickers
How It Works
The Golden Rule
VWAP is displayed ONLY when: Chart Timeframe < Anchor Period
This ensures VWAP lines always represent meaningful continuous calculations. For example:
1H VWAP appears only on timeframes smaller than 1 hour (e.g., 15min, 5min, 1min)
1D VWAP appears only on timeframes smaller than daily (e.g., 4H, 1H, 15min)
1W VWAP appears only on timeframes smaller than weekly (e.g., daily, 4H, 1H)
Anchor Logic
Each VWAP resets at its respective period boundary:
Intraday Anchors (1H, 4H, 6H, 12H): Reset at the start of each hour/4-hour/6-hour/12-hour period
Daily Anchors (1D, 3D): Reset at daily market open
Weekly Anchors (1W, 2W): Reset at weekly market open
Monthly Anchors (1M, 2M, 3M, 6M, 12M): Reset at month boundaries
Input Settings
Master Control:
VWAP Display Show / Hide Global toggle for all VWAP lines
Intraday Anchors (Default: Off):
1H => Teal => Short-term intraday reference
4H => Pink => Medium-term intraday reference
6H => Magenta => Half-day session reference
12H => Cyan => Full session reference
Anchor VWAP Periods (Default: On):
1D => Yellow/Green => Daily support/resistance
3D => Purple => Multi-day trend reference
1W => Blue => Weekly pivot levels
2W => Light Blue => Bi-weekly trend
1M => Green => Monthly support/resistance
2M => Dark Green => 2-month horizon
3M => Yellow => Quarterly reference
6M => Orange => Semi-annual trend
12M => Red => Annual benchmark
Visual Display
VWAP Lines: Colored lines plotted at 2px thickness for clear visibility:
Right-Edge Labels: Compact labels showing period and current VWAP value
Smart Label Colors: Black or white text automatically based on line color for optimal readability
Use Cases
Intraday Trading:
Use 1H, 4H, 6H, 12H VWAPs on lower timeframes (e.g., 5min, 15min) to identify intraday support/resistance levels
Multiple intraday VWAPs reveal stacked liquidity zones
Swing Trading:
1D, 3D, 1W, 2W VWAPs help identify trend direction and mean reversion levels
Weekly VWAP provides context for daily price action
Position Trading:
1M, 3M, 6M, 12M VWAPs offer long-term benchmarks for valuation assessment
Multiple monthly VWAPs show multi-year price distribution
Multi-Timeframe Analysis:
Visualize up to 13 VWAP levels simultaneously
Identify confluences where multiple VWAP periods align
Observe how price interacts with different anchored levels
Important Notes
Timeframe Limitations: VWAPs automatically hide when the chart timeframe is equal to or greater than the anchor period (prevents misleading point-to-point lines)
Intraday Anchors Disabled by Default: Enable only the periods relevant to your trading style to reduce visual clutter
Monthly Anchors: Use 30-day approximation for minute calculations; display logic ensures they only appear on daily or lower timeframes
Label Positioning: Labels appear 1-13 bars to the right of the current bar to prevent overlap with price action
Performance
Efficiently coded with looped label management
No repainting — all calculations are historical
Compatible with all markets and symbols
Version History
v.1.0 => Initial release with 13 anchor periods, timeframe validation, and dynamic labels
Start using Periodic Anchored VWAP to elevate your volume-weighted analysis across all timeframes!
Indicator

Indicator

Adaptive Flow Analyzer [JOAT]Adaptive Flow Analyzer
Introduction
The Adaptive Flow Analyzer is an advanced open-source volatility regime classification indicator that combines dynamic regime detection, entropy analysis, adaptive bands, and momentum waves into a unified flow state system. This indicator helps traders identify whether the market is trending, ranging, or choppy by analyzing volatility patterns, price distribution entropy, and momentum characteristics in real-time.
Unlike basic volatility indicators that simply show ATR or Bollinger Bands, this system classifies market conditions into actionable regimes and recommends appropriate trading strategies. Trending regimes favor breakout and trend-following approaches, ranging regimes favor mean-reversion strategies, and choppy regimes signal to avoid trading. The indicator is designed for traders who understand that different market conditions require different strategies and that regime identification is critical for consistent profitability.
Why This Indicator Exists
This indicator addresses a fundamental challenge in trading: applying the right strategy to the right market condition. Most traders lose money because they use trend-following strategies in ranging markets or mean-reversion strategies in trending markets. By combining multiple regime analysis methodologies, this indicator reveals:
Volatility Regime Detection: Classifies markets as Trending, Ranging, or Choppy based on volatility ratio and directional alignment
Entropy Analysis: Measures price distribution chaos using information theory - high entropy = uncertainty, low entropy = order
Adaptive Bands: Dynamic upper/lower bands that adjust to volatility - shows price position relative to extremes
Momentum Waves: RSI rate-of-change visualization showing momentum acceleration and deceleration
Chaos Zones: Identifies extreme uncertainty periods when trading should be avoided
Strategy Recommendations: Suggests Trend Follow, Mean Revert, or Avoid based on current regime
Each component provides a different lens on market flow. Regime classification shows condition, entropy shows uncertainty, bands show extremes, momentum shows acceleration, and chaos zones show danger. Together, they create a comprehensive view of market state.
Core Components Explained
1. Volatility Regime Detection
The indicator classifies markets into three regimes using volatility ratio and trend alignment:
atr = ta.atr(14)
atrSma = ta.sma(atr, 50)
volRatio = atr / atrSma
// Trending: Aligned EMAs + normal volatility
trendStrength = (ema9 > ema21 and ema21 > ema50) or
(ema9 < ema21 and ema21 < ema50)
regime = volRatio > 1.5 ? 0 : // Choppy
trendStrength ? 2 : // Trending
1 // Ranging
Regime classification:
Trending (2): EMAs aligned + volatility ratio < 1.5 - directional market with follow-through
Ranging (1): EMAs not aligned + volatility ratio < 1.5 - oscillating market with mean reversion
Choppy (0): Volatility ratio > 1.5 - erratic market with no clear pattern
The indicator displays regime with color-coded background and text in dashboard. Trending = green, Ranging = orange, Choppy = red.
2. Entropy Calculation
Entropy measures the randomness or uncertainty in price distribution using information theory:
The indicator:
Collects price changes over lookback period (default 50 bars)
Creates histogram by dividing changes into bins (default 10 bins)
Calculates Shannon entropy: -Σ(p * log(p)) where p = probability
Normalizes to 0-100 scale for easy interpretation
Entropy interpretation:
High entropy (>70): Price changes are random and unpredictable - high uncertainty
Medium entropy (40-70): Moderate predictability - mixed conditions
Low entropy (<40): Price changes are ordered and predictable - low uncertainty
High entropy warns of chaotic conditions where patterns break down. Low entropy confirms regime reliability. The indicator plots entropy as a gradient area chart (green to red).
3. Adaptive Bands System
Adaptive bands adjust to volatility and show price position relative to extremes:
ma = ta.sma(close, 50)
upperBand = ma + (atr * 2.0)
lowerBand = ma - (atr * 2.0)
// Normalize price position to 0-100
pricePosition = (close - lowerBand) / (upperBand - lowerBand) * 100
The indicator displays:
Price position oscillator (0-100 scale)
Reference lines at 0 (lower band), 50 (middle), 100 (upper band)
Multi-layer glow effect on position line for visibility
Color changes based on regime (green for trending, orange for ranging, red for choppy)
Price position interpretation:
Above 75: Overbought - expect mean reversion in ranging regime
Below 25: Oversold - expect mean reversion in ranging regime
Sustained above 50: Bullish in trending regime
Sustained below 50: Bearish in trending regime
4. Momentum Waves
Momentum waves visualize RSI rate-of-change to show acceleration and deceleration:
rsi = ta.rsi(close, 14)
rsiMomentum = ta.change(rsi, 3)
momentumStrength = math.abs(rsiMomentum) / 10 * 100
The indicator plots momentum as gradient area chart:
Green gradient: Positive momentum (RSI rising)
Red gradient: Negative momentum (RSI falling)
Intensity: Stronger color = faster momentum change
Height: Taller wave = larger momentum shift
Momentum waves reveal:
Acceleration into trends (expanding waves)
Deceleration at reversals (contracting waves)
Momentum divergence from price (warning signal)
Momentum exhaustion (extreme waves followed by collapse)
5. Chaos Zone Detection
Chaos zones occur when entropy exceeds threshold (75) AND volatility ratio exceeds 1.5:
inChaosZone = entropyNormalized > 75 and volRatio > 1.5
When chaos zone is active:
Pulsing red background appears
"CHAOS ZONE" label displays
Dashboard shows "CHAOS" flow state
Strategy recommendation changes to "AVOID"
Chaos zones represent extreme uncertainty where technical patterns break down. Trading during chaos zones typically results in whipsaws and losses. The indicator warns to stay flat.
6. Strategy Recommendations
Based on regime classification, the indicator recommends trading approach:
Trending Regime: "TREND FOLLOW" - Use breakout strategies, ride momentum, trail stops
Ranging Regime: "MEAN REVERT" - Fade extremes, buy support, sell resistance
Choppy Regime: "AVOID" - Stay flat, wait for regime clarity
The dashboard displays current recommendation with color coding. This prevents applying wrong strategy to wrong condition.
Visual Elements
Price Position Oscillator: Multi-layer glow line showing position in bands (0-100)
Reference Lines: Horizontal lines at 0, 50, 100 with gradient colors
Regime Background: Color-coded background (green/orange/red) based on regime
Entropy Area Chart: Gradient fill (green to red) showing uncertainty level
Momentum Waves: Gradient area chart showing RSI momentum
Chaos Zone Background: Pulsing red background during extreme uncertainty
Dashboard: Real-time regime state and strategy recommendations
The dashboard displays 9 key metrics:
1. Flow Regime (Trending/Ranging/Choppy)
2. Flow Ratio (volatility multiple)
3. Chaos Index (entropy percentage)
4. Strategy Mode (Trend Follow/Mean Revert/Avoid)
5. Momentum (Strong Up/Strong Down/Neutral)
6. Confidence (High/Medium/Low)
7. Flow State (Directional/Oscillating/Erratic/Chaos)
8. Position (Overbought/Oversold/Neutral)
Input Parameters
Flow Dynamics:
Flow Period: ATR calculation length (default: 14)
Band Multiplier: ATR multiple for bands (default: 2.0)
Equilibrium Period: Moving average length (default: 50)
Adaptive Bands: Enable dynamic band adjustment
Entropy Analysis:
Chaos Measurement: Lookback for entropy calculation (default: 50)
Distribution Bins: Number of histogram bins (default: 10)
Chaos Zones: Enable/disable chaos zone detection
Visualization:
Flow Bands: Show/hide adaptive bands
Regime Coloring: Enable/disable background colors
Entropy Overlay: Show/hide entropy chart
Momentum Waves: Show/hide RSI momentum
How to Use This Indicator
Step 1: Identify Current Regime
Check the dashboard for Flow Regime. This determines your trading approach. Trending = breakouts, Ranging = reversals, Choppy = avoid.
Step 2: Assess Chaos Index
Check entropy level. High chaos (>70) = unreliable patterns. Low chaos (<40) = reliable patterns. Only trade when chaos is low to medium.
Step 3: Check Strategy Recommendation
Dashboard shows recommended approach. Follow it. Don't use trend strategies in ranging markets or mean reversion in trending markets.
Step 4: Monitor Price Position
In ranging regime: Buy near 0-25 (oversold), sell near 75-100 (overbought). In trending regime: Stay with trend when above/below 50.
Step 5: Watch Momentum Waves
Expanding waves = acceleration (enter trends). Contracting waves = deceleration (prepare for reversal). Divergence = warning.
Step 6: Avoid Chaos Zones
When chaos zone activates (pulsing red background), close positions and wait. Don't trade during extreme uncertainty.
Best Practices
Regime determines strategy - always check before trading
High entropy + choppy regime = stay flat
Low entropy + trending regime = best trend-following conditions
Low entropy + ranging regime = best mean-reversion conditions
Momentum waves lead price - watch for acceleration
Chaos zones are dangerous - respect them
Confidence level in dashboard shows setup quality
Flow ratio > 1.5 = elevated risk regardless of regime
Position oscillator works differently in each regime
Regime changes take time to confirm - don't trade transitions
Indicator Limitations
Regime classification is retrospective - may lag at transitions
Entropy calculation requires sufficient data - unreliable on new instruments
Choppy regime can persist longer than expected
Adaptive bands can whipsaw during regime transitions
Momentum waves show acceleration, not direction
Chaos zones can have false positives during news events
The indicator shows current state, not future regime
Strategy recommendations are general - not specific entry signals
Regime classification may differ across timeframes
Technical Implementation
Built with Pine Script v6 using:
ATR-based volatility ratio calculations
EMA alignment for trend strength detection
Shannon entropy calculations with histogram binning
Adaptive band system with dynamic adjustment
RSI momentum rate-of-change analysis
Chaos zone detection with dual criteria
Multi-gradient visualization with pulsing effects
Real-time dashboard with 9 regime metrics
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive regime integration approach. While individual components (ATR, entropy, bands, RSI) are established concepts, this indicator is justified because:
It synthesizes volatility analysis, entropy theory, and momentum detection into unified regime classification
The entropy calculation applies information theory to price distribution for uncertainty measurement
Chaos zone detection combines entropy and volatility for extreme condition identification
Strategy recommendations adapt to regime in real-time
Momentum wave visualization shows RSI acceleration, not just level
The confidence scoring system quantifies regime reliability
Multi-gradient visualization with pulsing effects enhances regime awareness
Real-time dashboard presents 9 metrics simultaneously for holistic regime analysis
Each component contributes unique information: Regime shows condition, entropy shows uncertainty, bands show extremes, momentum shows acceleration, chaos shows danger, and strategy shows approach. The indicator's value lies in presenting these complementary perspectives simultaneously with unified classification and actionable recommendations.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Regime analysis is a tool for understanding market conditions, not a crystal ball for predicting future behavior. Trending regimes can become ranging. Ranging regimes can become choppy. Past regime patterns do not guarantee future regime patterns. Market conditions change, and strategies that worked historically may not work in the future.
The regime classifications displayed are analytical constructs based on current market data, not predictions of future market state. High confidence scores do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Indicator

Indicator

Institutional Decision Engine [JOAT]Institutional Decision Engine
Introduction
The Institutional Decision Engine is a comprehensive, unified trading system that integrates six distinct analytical engines into a cohesive decision-making framework. This is not just another indicator - it's a complete trading intelligence system designed to replicate the analytical approach of institutional trading desks. By combining market regime classification, structural analysis, momentum pressure, volatility intelligence, directional bias, and signal qualification into one unified system, this engine provides the holistic market analysis that professional traders rely on for consistent success.
This tool is built for serious traders who understand that successful trading requires multiple layers of analysis and confirmation. Whether you're a systematic trader needing a complete decision framework, a discretionary trader seeking comprehensive market intelligence, or an algorithm developer requiring robust signal generation, this engine provides the institutional-grade analysis needed to trade with the confidence and precision of professional market participants.
Why This Engine Exists
Most traders use fragmented indicators that provide conflicting signals, leading to confusion and poor decisions. This engine solves that fundamental problem by:
Unified Framework: Six engines working together as one cohesive system
Regime-Adaptive Logic: Automatically adjusts analysis based on market conditions
Multi-Layer Confirmation: Requires confluence across multiple analytical dimensions
Signal Qualification: Objectively scores and grades every potential signal
Risk Intelligence: Dynamic risk management based on market volatility and structure
Visual Clarity: Comprehensive visualization of all analytical components
The engine transforms the chaotic world of multiple indicators into a single, unified source of market truth that provides clear, actionable trading intelligence.
Core Components Explained
Engine 1: Market Regime Classification
The first engine identifies the current market environment:
// Regime Classification: 0=Neutral, 1=Trending, 2=Ranging, 3=Volatile
int market_regime = 0
if volatility_state == 1 and adx_value < i_trend_threshold
market_regime := 3 // Volatile Expansion
else if adx_value >= i_trend_threshold
market_regime := 1 // Trending
else if volatility_state == -1
market_regime := 2 // Ranging/Consolidation
// Regime Strength (0-100)
float regime_strength = 0.0
if market_regime == 1
regime_strength := math.min(adx_value / 50.0 * 100, 100)
else if market_regime == 2
regime_strength := math.min((1 - volatility_ratio) / (1 - i_contraction_mult) * 100, 100)
Regime types:
Trending: Strong directional markets with ADX > 25
Ranging: Low volatility consolidation phases
Volatile: High volatility, chaotic conditions
Neutral: Transition periods between defined states
Regime Strength: How strongly the market exhibits regime characteristics
Regime classification determines which strategies are appropriate and how risk should be managed.
Engine 2: Structural Behavior Analysis
The second engine maps market structure and key levels:
// Structure Analysis
bool higher_high = not na(last_swing_high) and not na(prev_swing_high) and last_swing_high > prev_swing_high
bool lower_low = not na(last_swing_low) and not na(prev_swing_low) and last_swing_low < prev_swing_low
bool higher_low = not na(last_swing_low) and not na(prev_swing_low) and last_swing_low > prev_swing_low
bool lower_high = not na(last_swing_high) and not na(prev_swing_high) and last_swing_high < prev_swing_high
// Structure Score (0-100)
float structure_score = 0.0
structure_score += structure_bias == 1 ? 30 : structure_bias == -1 ? 0 : 15
structure_score += higher_high ? 20 : lower_low ? 0 : 10
structure_score += bos_bullish ? 30 : bos_bearish ? 0 : 15
Structure components:
Swing Points: Key highs and lows defining market structure
Market Structure: Higher highs/higher lows (bullish) or lower highs/lower lows (bearish)
Break of Structure: Confirmation of trend changes
Liquidity Zones: Equal highs/lows where orders cluster
Structure Score: Quantifies structural quality (0-100)
Structural analysis identifies the levels where professional traders place orders.
Engine 3: Momentum Pressure Analysis
The third engine measures buying and selling pressure:
// Composite Momentum Score
float momentum_bull_score = 0.0
momentum_bull_score += wt_bullish ? 25 : 0
momentum_bull_score += rsi_bullish ? 25 : 0
momentum_bull_score += weighted_pressure > 0.1 ? 25 : weighted_pressure > 0 ? 12.5 : 0
momentum_bull_score += macd_bullish ? 25 : 0
// Net Momentum State
float net_momentum = momentum_bull_score - momentum_bear_score
int momentum_state = net_momentum > 25 ? 1 : net_momentum < -25 ? -1 : 0
Momentum components:
WaveTrend: Trend-following momentum oscillator
RSI: Relative strength with momentum filter
Pressure Analysis: Volume-weighted buying/selling pressure
MACD: Trend acceleration and deceleration
Momentum State: Bullish, bearish, or neutral momentum
Momentum analysis confirms the strength and timing of potential moves.
Engine 4: Volatility Intelligence Layer
The fourth engine analyzes volatility cycles and squeezes:
// Squeeze Detection
bool squeeze_on = bb_lower > kc_lower and bb_upper < kc_upper
bool squeeze_off = bb_lower < kc_lower or bb_upper > kc_upper
// Volatility Cycle Phase
int vol_cycle_phase = 0
if squeeze_on and squeeze_duration > 5
vol_cycle_phase := 1 // Compression
else if squeeze_off and squeeze_duration > 0
vol_cycle_phase := 2 // Expansion Trigger
else if volatility_ratio > 1.2
vol_cycle_phase := 3 // Active Expansion
// Adaptive Multipliers
float stop_multiplier = vol_cycle_phase == 3 ? 1.5 : vol_cycle_phase == 1 ? 0.8 : 1.0
float target_multiplier = vol_cycle_phase == 3 ? 1.3 : vol_cycle_phase == 1 ? 1.5 : 1.0
Volatility components:
Bollinger Bands: Standard deviation-based volatility
Keltner Channels: ATR-based volatility
Squeeze Detection: Volatility compression patterns
Cycle Phases: Compression, trigger, expansion, normal
Adaptive Multipliers: Dynamic risk adjustments
Volatility intelligence ensures risk management adapts to market conditions.
Engine 5: Directional Bias Model
The fifth engine establishes directional conviction:
// Bias Computation
float bullish_bias = 0.0
bullish_bias += ma_bullish_stack ? 30 : 0
bullish_bias += price_above_structure ? 20 : 0
bullish_bias += close > ma_anchor ? 15 : 0
bullish_bias += pos_di > neg_di ? 20 : 0
bullish_bias += slopes_aligned_bull ? 15 : 0
// Net Bias
float net_bias = bullish_bias - bearish_bias
int bias_direction = net_bias > i_bias_threshold / 2 ? 1 : net_bias < -i_bias_threshold / 2 ? -1 : 0
Bias components:
MA Stack: Fast/slow/anchor moving average relationships
Price Position: Where price sits relative to MAs
ADX Direction: +DI vs -DI for trend confirmation
MA Slopes: Directional momentum of moving averages
Bias Strength: 0-100 indicating directional conviction
Directional bias provides the primary directional framework for trading decisions.
Engine 6: Signal Qualification System
The sixth engine evaluates and qualifies all signals:
// Confluence Scoring
int bull_confluence = 0
bull_confluence += market_regime == 1 and trend_direction == 1 ? 2 : 0
bull_confluence += structure_bias == 1 ? 1 : 0
bull_confluence += bos_bullish ? 1 : 0
bull_confluence += momentum_state == 1 ? 2 : 0
bull_confluence += bias_direction == 1 ? 2 : 0
bull_confluence += squeeze_off and net_momentum > 0 ? 1 : 0
// Qualification Check
bool bull_qualified = bull_confluence >= i_min_confluence
bool bear_qualified = bear_confluence >= i_min_confluence
// Final Signal Generation
bool long_signal = bull_qualified and bull_trigger and bars_since_bull > i_signal_cooldown and
bar_confirmed and market_regime != 3
Qualification components:
Confluence Score: Points from each engine (max 10)
Minimum Threshold: Required confluence for signals (default: 5)
Signal Triggers: Entry conditions (crossovers, breakouts, etc.)
Cooldown Management: Prevents overtrading
Quality Grades: A-D grades based on confluence score
Signal qualification ensures only high-probability setups are traded.
Visual Elements
Directional Cloud: Dynamic cloud showing trend and conviction
Signal Markers: Clear entry signals with quality grades
Risk Levels: Visual stop loss and target levels
Structure Points: Marked swing highs and lows
Squeeze Background: Volatility compression indication
Signal Background: Signal strength background shading
Moving Averages: Color-coded MA system
Dashboard: Comprehensive intelligence panel
The dashboard displays:
1. Current market regime and strength
2. Trend direction and bias scores
3. Momentum state and pressure readings
4. Volatility cycle and squeeze status
5. Structure analysis and bias
6. Signal qualification and grade
7. Risk metrics and multipliers
8. Active position information
Input Parameters
Regime Engine:
ADX Period: Trend strength calculation (default: 14)
Trend Threshold: Minimum ADX for trend (default: 25)
Volatility Multipliers: Expansion/contraction thresholds
Structure Engine:
Swing Sensitivity: Pivot detection sensitivity (default: 10)
Structure Confirmation: Bars for confirmation (default: 3)
Show Liquidity: Display liquidity zones
Momentum Engine:
Pressure Period: Pressure calculation (default: 14)
WaveTrend Settings: Channel and average periods
RSI Period: Momentum oscillator (default: 14)
Volatility Layer:
Bollinger Settings: Period and deviation
Keltner Settings: Period and multiplier
Adaptive Stops: Enable dynamic stops
Signal Qualification:
Minimum Confluence: Required score (default: 5)
Signal Cooldown: Bars between signals (default: 5)
Minimum R:R: Risk/reward requirement (default: 1.5)
How to Use This Engine
Step 1: Understand Market Regime
Check the dashboard for current regime. Avoid trading in volatile regimes (red), focus on trending regimes (green), and adapt strategy for ranging regimes (purple).
Step 2: Assess Directional Bias
Look for strong bias scores (>60) with MA stack confirmation. The bias should be clear across multiple components before considering entries.
Step 3: Confirm Momentum
Ensure momentum supports the directional bias. Look for pressure in the direction of trade and momentum acceleration.
Step 4: Verify Structure
Entries near structural levels have higher probability. Look for BOS confirmation and avoid trading against established structure.
Step 5: Check Volatility
Be aware of volatility cycles. Squeeze releases offer high-probability breakout opportunities. Adjust stops based on volatility multipliers.
Step 6: Qualify Signals
Only take signals with 5+ confluence points. A-grade signals (8+ points) offer the highest probability and deserve larger position sizing.
Best Practices
Always trade in the direction of the dominant bias
Higher confluence scores mean higher probability setups
Respect regime changes - they signal strategy adjustments
Use the directional cloud as primary trend guidance
Place stops using the volatility-adjusted levels
Scale out at multiple targets as provided
Avoid trading during volatile regimes unless experienced
Wait for A-grade setups rather than forcing mediocre trades
Keep a trade journal tracking regime/bias combinations
Never override the system's risk management without strong reason
Strategy Integration
This engine is a complete trading system:
Use signal qualification as primary entry filter
Apply regime-based position sizing
Import bias scores for trend confirmation
Use structure levels for stop placement
Integrate volatility multipliers for risk management
Export all engine outputs for custom strategies
Technical Implementation
Built with Pine Script v6 featuring:
Six-engine architecture with unified signal processing
Advanced regime detection with ADX/ATR analysis
Comprehensive structure analysis with swing detection
Multi-factor momentum scoring system
Volatility cycle analysis with squeeze detection
Directional bias calculation with multiple confirmations
Signal qualification with confluence scoring
Dynamic risk management with adaptive multipliers
Comprehensive visualization with directional cloud
Real-time dashboard with 12 key metrics
Export functions for complete system integration
The code uses confirmed bars throughout to prevent repainting and ensure reliable signals.
Originality Statement
This engine is original in its comprehensive integration of six distinct analytical systems into a unified decision framework. While individual components (ADX, moving averages, RSI, etc.) are established tools, this engine is justified because:
It synthesizes six independent analytical engines into one cohesive system
The regime-adaptive logic automatically adjusts behavior based on market conditions
Signal qualification provides objective, numerical evaluation of trade quality
The directional cloud visualization offers intuitive trend analysis
Dynamic risk management adapts to volatility and structure
Comprehensive dashboard presents all critical metrics in one view
Each engine contributes unique insights: regime shows when to trade, structure shows where, momentum shows timing, volatility shows how much, bias shows direction, and qualification shows quality
The engine solves the real problem of indicator overload and conflicting signals
Export functions enable complete system integration and customization
This is institutional-grade analysis typically available only to professional traders
The engine's value lies in providing a complete, unified trading intelligence system that eliminates analysis paralysis and provides clear, actionable signals based on comprehensive market analysis.
Disclaimer
This engine is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. This is a comprehensive analysis tool, not a guaranteed profit system.
Even with comprehensive analysis, markets can behave unpredictably due to news events, economic data, or changes in market structure. Past performance of the system does not guarantee future results. The engine's signals are mathematical calculations based on historical patterns and should be used with proper risk management.
Always use stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose on any single trade, regardless of signal quality or confluence score.
The author is not responsible for any losses incurred from using this engine. Users assume full responsibility for all trading decisions made using this system.
-Made with passion by officialjackofalltrades
Indicator

[ A L P H A X ] Market Pulse - Real-Time Confluence EngineAlphaX Market Pulse — 5-Timeframe MTF Alignment Dashboard, Weighted Bias Scoring, Market Structure Detection & Real-Time Confluence Engine
AlphaX Market Pulse is a professional-grade multi-timeframe analysis cockpit that reads trend, momentum, volatility, and volume across five independent timeframes simultaneously and synthesizes everything into a single weighted Pulse Score and clear trade Verdict. Designed for traders who want to know — before placing a single trade — whether the market is genuinely aligned or simply creating the illusion of a move. Built for XAUUSD, indices, and forex majors on any intraday timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 Visual Overview
Full dashboard view showing 5-timeframe alignment, Pulse Score, Verdict, and real-time confluence data on XAUUSD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Core Problem This Solves
Every experienced trader knows that the single biggest edge in intraday trading is multi-timeframe alignment. When the 1-minute, 5-minute, 15-minute, 1-hour, and 4-hour charts all point in the same direction, trades have dramatically higher follow-through. When they conflict, even technically perfect setups fail.
The problem is that manually checking five timeframes before every trade is slow, inconsistent, and easy to bias. AlphaX Market Pulse does it for you — automatically, on every bar, with a weighted scoring engine that gives higher timeframes more influence over the final verdict.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ The Four-Engine Analysis System
Every timeframe is independently analyzed by four engines running simultaneously:
Trend Engine
Four factors assessed per timeframe:
EMA Ribbon alignment (Fast / Medium / Slow) — is the ribbon stacked bullishly or bearishly?
Price position relative to the 200 EMA Anchor — is the market above or below the macro baseline?
EMA slope direction — are the moving averages rising or falling?
Price position relative to the Fast EMA — is price leading or lagging the momentum line?
Each factor contributes to a per-timeframe Trend Score. A score of +4 means all four factors are bullish. A score of -4 means all four are bearish. This granularity is what separates a "technically bullish" market from a genuinely strong one.
Momentum Engine
Four independent momentum reads per timeframe:
RSI position relative to configurable bull and bear thresholds
Stochastic K position (above or below midpoint)
Stochastic K/D crossover direction
MACD line vs signal line relationship
Volatility Engine
Bollinger Band width measured against its own 20-bar average. When the band is expanding relative to its baseline, the market is entering a higher-conviction phase. When it is compressed below average, the market is coiling — potential breakout pending, but no edge yet.
Volume Engine
Current bar volume measured against a configurable SMA. Classified into four states — DRY, NORMAL, HIGH, and SPIKE — and used to weight the final bias score upward when institutional participation is evident.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 The Weighted Pulse Score
Once all five timeframes are analyzed, AlphaX Market Pulse calculates a single Pulse Score from 0 to 100 using a weighted average that gives higher timeframes more influence:
4H (TF5) — 30% weight
1H (TF4) — 25% weight
15M (TF3) — 20% weight
5M (TF2) — 15% weight
1M (TF1) — 10% weight
This weighting reflects a core trading principle: the higher the timeframe, the more reliable the signal. A bullish 4H with a bearish 1M is still a bullish market. The Pulse Score reflects that reality rather than treating all timeframes equally.
The score is displayed as ▲ BULL 78 / 100 or ▼ BEAR 65 / 100 — directional and quantified at a glance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 The Verdict — One Line That Answers Everything
Below the Pulse Score sits the most important row in the dashboard: the VERDICT . This single line synthesizes alignment count, score strength, and confluence quality into a direct trading instruction:
✓ HIGH CONFIDENCE LONG — all or nearly all timeframes bullish with strong score. This is the setup to trade.
✓ HIGH CONFIDENCE SHORT — all or nearly all timeframes bearish with strong score.
△ LEAN LONG — CAUTION — majority bullish but not full confirmation. Reduce size or wait.
▽ LEAN SHORT — CAUTION — majority bearish but incomplete alignment.
✕ MIXED — STAND ASIDE — timeframes are conflicting. This is the most important message the dashboard can give you. No trade.
✕ NO CLEAR EDGE — insufficient directional conviction. Wait for clarity.
The Verdict alone can prevent the most common and costly trading mistake: entering when the market has no clear direction.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 The Dashboard — Complete Reference
The dashboard is organized into three sections:
Section 1 — Multi-Timeframe Grid
Five rows, one per timeframe. Each row shows:
Timeframe label — the period being analyzed (fully configurable)
Trend • Momentum — combined directional arrows for both engines. ▲▲ means strongly bullish, △ means mildly bullish, — means flat
Bias score — the directional bias value for that timeframe with a ▲ or ▼ prefix
At a glance you can see exactly which timeframes agree, which are lagging, and which are conflicting.
Section 2 — Synthesis Layer
ALIGNMENT — the alignment state across all five timeframes with a count (e.g. 4▲ 1▼ 0—)
PULSE SCORE — the weighted composite score with direction
VERDICT — the single-line trade instruction
Section 3 — Current Timeframe Detail
RSI — value with state label (OVERSOLD / DEPRESSED / NEUTRAL / ELEVATED / OVERBOUGHT)
STOCH K — value with zone label (OS ZONE / MID RANGE / OB ZONE)
MACD — directional state with momentum confirmation and histogram value
STRUCTURE — real-time price structure detection (HIGHER H/L, LOWER H/L, HIGHER HIGH, LOWER LOW, RANGING)
VOLATILITY — BB width state (COMPRESSED / NORMAL / ELEVATED / EXPANDING) with percentage value
BB WIDTH — expanding or contracting relative to baseline
VOLUME — DRY / NORMAL / HIGH / SPIKE with current ratio vs SMA
ATR — current ATR value and percentage of price — essential for position sizing
EMA STACK — full structural EMA alignment check (FULL BULL STACK / BULL STACK / BEAR STACK / FULL BEAR STACK / MIXED)
BULL SCORE — raw weighted bullish score out of 100
BEAR SCORE — raw weighted bearish score out of 100
VS EMA 200 — price distance from the 200 EMA anchor as a percentage — identifies extended and exhausted moves before they reverse
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
☁ Bias Cloud & EMA System
Four EMAs are plotted directly on the chart as structural context:
Fast EMA (8) — the immediate momentum reference, colored bullish or bearish based on ribbon state
Medium EMA (21) — the intermediate trend filter
Slow EMA (55) — the trend backbone
Anchor EMA (200) — the macro structural divider used in confidence scoring
The Bias Cloud fills the space between the Fast and Slow EMAs with a subtle color — yellow-green when the ribbon is bullish, red when bearish — giving instant visual trend context without cluttering the chart. Both the cloud and the EMAs can be toggled independently.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying When NOT to Trade
AlphaX Market Pulse is as valuable for telling you to stay out as it is for confirming entries. Watch for these no-trade conditions:
VERDICT shows MIXED or NO CLEAR EDGE — the market has no directional consensus. Any trade here is a coin flip.
Alignment count is split (e.g. 2▲ 2▼ 1—) — timeframes are fighting each other.
PULSE SCORE is below 40 — insufficient conviction in either direction.
VOLATILITY shows COMPRESSED — the market is coiling. No trend energy present.
VS EMA 200 shows extreme extension (±3% or more) — the move may already be exhausted. Late entries here carry high reversal risk.
EMA STACK shows MIXED — the moving averages are tangled, a reliable sign of a choppy ranging market.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Use AlphaX Market Pulse — Step by Step
Step 1 — Check the Verdict first
If it says MIXED or NO CLEAR EDGE — close the dashboard and do not trade. Wait for alignment.
If it says HIGH CONFIDENCE — proceed to Step 2.
Step 2 — Read the Alignment row
How many timeframes agree? 5▲ 0▼ is the strongest possible setup.
Which timeframes are dissenting? A dissenting TF1 (1-minute) is less significant than a dissenting TF5 (4-hour).
Step 3 — Check the Pulse Score
Above 70 — strong conviction, full size appropriate
55–70 — moderate conviction, consider reduced size
Below 55 — marginal, wait for a higher score bar
Step 4 — Validate with Section 3
Is RSI in a supportive zone for the direction?
Is MACD confirming with momentum?
Is STRUCTURE showing the right price behavior (Higher H/L for longs, Lower H/L for shorts)?
Is VOLUME at least NORMAL? A signal into DRY volume has poor follow-through probability.
Is VOLATILITY NORMAL or EXPANDING? COMPRESSED volatility means no energy behind the move.
Step 5 — Use VS EMA 200 as a risk check
If price is already 2–3% extended from the 200 EMA in your direction, the risk/reward is poor. Wait for a pullback.
If price is near or just crossing the 200 EMA, the setup has maximum structural support.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
📊 5-timeframe simultaneous analysis — fully configurable timeframes, all running independently
⚖ Weighted Pulse Score — higher timeframes carry more weight, reflecting real trading hierarchy
🎯 Single-line Verdict — HIGH CONFIDENCE / LEAN / MIXED / NO EDGE — one answer, no ambiguity
🔬 Four-engine analysis — Trend, Momentum, Volatility, and Volume assessed per timeframe
📋 14-row live dashboard — MTF grid, synthesis layer, and current TF detail in one panel
📐 EMA Stack check — full structural alignment across Fast / Medium / Slow / Anchor EMAs
📉 Market Structure detection — real-time Higher H/L, Lower H/L, swing identification
📏 VS EMA 200 distance — percentage deviation from the macro anchor for exhaustion detection
☁ Bias Cloud — subtle EMA ribbon fill showing trend direction directly on the price chart
🎨 Cohesive dual-tone color theme — yellow-green for bullish, red for bearish, gray for neutral
⚙ Fully configurable — all timeframes, EMA periods, RSI/Stoch thresholds, BB and ATR settings adjustable
🔕 No repainting — all calculations confirmed on bar close
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Timeframes
Timeframe 1–5 — set any five timeframes to analyze. Defaults: 1 / 5 / 15 / 60 / 240
Trend Engine
Fast EMA — default 8
Medium EMA — default 21
Slow EMA — default 55
Anchor EMA — default 200
Momentum Engine
RSI Period — default 14
RSI Bull Threshold — default 60 (RSI above this = bullish momentum)
RSI Bear Threshold — default 40 (RSI below this = bearish momentum)
Stoch Period — default 14
Stoch Smooth — default 3
Volatility
ATR Period — default 14
BB Period — default 20
BB StdDev — default 2.0
Volume
Volume SMA Period — default 20
Chart Overlay
Show Bias Cloud — toggle the EMA ribbon fill
Show EMAs — toggle all four EMA lines
Dashboard
Show Dashboard — toggle the entire panel
Position — Top Left / Top Right / Bottom Left / Bottom Right
Text Size — Tiny / Small / Normal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is tuned for XAUUSD (Gold) on the 1-minute timeframe with a 5-timeframe stack of 1M / 5M / 15M / 1H / 4H:
EMA periods (8 / 21 / 55 / 200) calibrated for gold's intraday volatility structure
RSI thresholds at 40/60 rather than 30/70 — captures momentum earlier in the move
BB period 20 with 2.0 StdDev — standard institutional volatility reference
Volume SMA 20 — smoothed enough to filter single-bar spikes while still responsive
For other instruments or timeframes, adjust:
Swing traders (4H / Daily) — set TF stack to 15 / 60 / 240 / D / W, increase EMA periods to 13 / 34 / 89 / 200
Forex majors — defaults work well; lower RSI thresholds to 35/65 for more conservative momentum detection
Indices (NAS100, US30) — increase Anchor EMA to 200, use TF stack 5 / 15 / 60 / 240 / D
More sensitive — lower RSI thresholds to 35/65, reduce EMA periods
Less noise — raise RSI thresholds to 45/55, increase EMA periods
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Gold (XAUUSD) intraday traders — built and tuned specifically for gold's fast-moving multi-session structure
📉 Forex scalpers and day traders — works on all major and minor pairs with minor setting adjustments
📊 Index traders — applicable to US30, NAS100, SPX500, DAX, and others
🧠 Traders who over-trade — the MIXED verdict physically stops you from entering in unfavorable conditions
📈 Traders who manually check multiple timeframes — this replaces that entire workflow with a single dashboard
⚙ Systematic and rule-based traders — the quantified Pulse Score provides an objective entry threshold rather than a subjective feeling
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All calculations are non-repainting — values confirmed on bar close
The VS EMA 200 row uses the current timeframe's 200 EMA, not a higher timeframe value
Market Structure detection (Higher H/L, Lower H/L) uses the last three bars — designed for fast intraday reads, not swing structure mapping
The Bias Cloud and EMA lines can be hidden independently if you prefer a clean price chart with dashboard only
All five timeframes are analyzed using the same four-engine framework — no timeframe receives a different logic set
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All values are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal or score does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who want one answer before every trade — not five charts to check. Indicator

MTF Fair Value GapsMulti-Timeframe Fair Value Gaps (MTF-FVG) with Smart Mitigation
Overview
The Multi-Timeframe Fair Value Gaps (MTF-FVG) indicator is a high-performance price action tool designed for ICT and SMC (Smart Money Concepts) traders. Unlike standard FVG indicators that limit you to your current view, this script allows you to overlay gaps from up to five additional timeframes simultaneously, providing a "birds-eye view" of institutional liquidity without ever switching charts.
Key Features
True MTF Integration: Visualize 5m, 15m, 1h, 4h, and Daily FVGs (or your own custom selection) directly on a 1-minute chart.
Institutional Alignment: Each FVG is drawn with precision, starting exactly at the wick of the first candle in the 3-bar sequence for professional-grade alignment.
Smart Mitigation Engine: To prevent "chart clutter," the indicator automatically detects when price has traded through a zone. Once a gap is mitigated, the script cleans up the box in real-time.
Visual Midpoints: Every gap includes an optional dotted midpoint line (Consequent Encroachment), a key level for entries and institutional reactions.
Fully Customizable Aesthetic: Includes a refined color palette by default (Grey, Orange, Yellow, Blue, Purple) with 10% shading to ensure your price action remains the focal point.
How to Use
Confluence Trading: Look for "Stacked FVGs"—areas where a Higher Timeframe (HTF) gap overlaps with a Current Timeframe (CTF) gap. These are high-probability zones for reversals or continuations.
Liquidity Re-entry: Use the dotted midpoint line to identify the 50% level (CE) of the gap, where institutions often seek to fill orders.
Trend Confirmation: Use HTF gaps to determine the higher-level bias. If a Daily FVG is sitting above price, look for bullish setups on lower timeframes to fill that draw on liquidity.
Settings
Threshold %: Filter out tiny gaps by setting a minimum percentage size relative to price.
Box Extension: Control how far to the right the FVG zones project.
Timeframe Toggles: Individually enable or disable the 5 HTF slots.
Mitigation Toggle: Choose between keeping historical gaps for reference or auto-deleting them for a cleaner look.
Developer Note
Built on Pine Script® v6 with dynamic_requests enabled, this indicator is optimized for speed and accuracy. It respects the core logic of the original LuxAlgo FVG detection while expanding it into a powerful multi-timeframe suite.
Disclaimer: Trading involves significant risk. This indicator is a tool to assist in technical analysis and does not constitute financial advice. Indicator

ICT/SMC Sessions + SMT DivergencePro ICT/SMC Structural Suite: Sessions, SMT Divergence & RTH Gaps
Overview
The ICT/SMC Structural Suite is a highly optimized, "pure structure" indicator designed for traders utilizing Inner Circle Trader (ICT) and Smart Money Concepts (SMC). Unlike traditional indicators that rely on lagging oscillators or moving averages, this script focuses entirely on Time and Price Geometry.
It provides an all-in-one visual overlay for institutional trading sessions, Opening Prices, Fair Value Gaps (FVGs), real-time SMT Divergences, and a highly advanced Regular Trading Hours (RTH) Gap engine. It is engineered to be lightweight, incredibly fast, and meticulously anchored to "America/New_York" time to natively handle Daylight Saving Time (DST) shifts without user intervention.
Core Features & Technical Breakdown
1. Asset-Aware RTH Gap Engine
One of the most complex challenges in charting is accurately mapping the daily RTH gap on continuous Extended Trading Hours (ETH) charts, especially over the weekend.
The Logic: This script uses a custom state-management system to bypass the Sunday overnight session on Futures. It isolates the true Regular Trading Hours (session.regular), explicitly locking the Friday close and drawing a dynamic gap box to the Monday 09:30 AM open.
Asset-Aware: The engine dynamically reads syminfo.type. If you are trading Futures (e.g., ES/NQ), it tracks the close until 16:15 EST. If you switch to Equities (e.g., AAPL/NVDA), it automatically snaps back to 16:00 EST, preventing after-hours earnings volatility from breaking your gap levels.
Quartiles: Automatically calculates and plots the 25%, 50% (Consequent Encroachment), and 75% levels inside the gap.
2. Real-Time Multi-SMT Divergence
Traditional divergence indicators wait for a candle to close before signaling. This script utilizes a custom real-time evaluation engine.
The Logic: The script establishes historical swing points using a 5-bar pivot lookback (ta.pivothigh / ta.pivotlow). It then compares your active, live tick against those historical pivots. If the current ticker sweeps a previous high/low, but your correlated assets fail to do so, a real-time label flashes on the chart.
Customization: Supports up to 5 concurrent assets. Includes a built-in VIX tracker (auto-inversed) and 4 customizable tickers (e.g., NQ, YM, DXY) with toggleable inversion logic.
3. Institutional Time Sessions
Visualizes key accumulation and distribution zones via clean, customizable background boxes.
Tracks Equity Pre-Market (EPM), London, Asia, and CBDR (Central Bank Dealers Range).
DST Proof: All sessions are mathematically forced to America/New_York time in the background, meaning your 09:30 AM open and macro times will never drift when Daylight Saving Time begins or ends.
4. 1st AM FVG Detector
Automatically detects and highlights the very first Fair Value Gap (FVG) that forms exclusively during the opening volatility window (09:31 AM – 10:30 AM EST). This box is extended forward in time as a high-probability draw on liquidity or retracement POI for the remainder of the session.
5. ICT Macros & Opening Prices
Macros: Highlights the 14 standard ICT Macro windows (e.g., 09:50-10:10, 10:50-11:10) with non-intrusive, bottom-anchored X-axis labels to keep your price action completely uncluttered. Includes an optional End-of-Day (15:15) macro toggle.
True Daily Opens: Plots the Midnight (00:00) Open, NY (08:30) Open, and Equity (09:30) Open as extended horizontal rays.
6. Higher Timeframe (HTF) Liquidity Levels
Automatically pulls and plots the Previous Day High/Low (PDH/PDL) and Previous Week High/Low (PWH/PWL) without requiring you to change timeframes.
How to Use This Script
This indicator is not a "buy/sell" signal generator; it is a structural mapping tool designed to give you contextual awareness of institutional order flow.
Trading the RTH Gap: The RTH gap box acts as a powerful magnetic zone. Traders can look for price to rebalance into the gap, using the internal 50% line (Consequent Encroachment) as a target or a bounce level.
Validating Reversals with SMT: When price pushes into a Higher Timeframe Liquidity Level (like PDH or PWL), look for an SMT Divergence label to appear. If ES sweeps the high but NQ fails to make a higher high, the divergence adds high-probability confluence to a reversal setup.
Opening Price Lenses: Use the Midnight and 08:30 Opens as your daily bias gauge. If price is above the Midnight Open, the daily profile is expansive (bullish); look for manipulation moves below the open to accumulate longs (Judas Swing).
Under the Hood (For Pine Geeks)
This script was heavily refactored for enterprise-grade execution speed. Repetitive drawing logic has been extracted into single-pass functions, state arrays are trimmed using optimized while loops, and request.security calls are fully gated by boolean toggles to prevent API overhead when custom tickers are disabled. Indicator

Pressure Zone Analyzer [JOAT]Pressure Zone Analyzer
Introduction
The Pressure Zone Analyzer is an advanced open-source support/resistance indicator that combines dynamic pivot-based zone detection, Fibonacci level analysis, institutional level tracking, zone strength scoring, and multi-timeframe analysis into a comprehensive pressure zone intelligence system. This indicator helps traders identify where significant buying and selling pressure exists, where institutional levels act as magnets for price, and which zones have the highest probability of holding.
Unlike basic support/resistance indicators that draw static horizontal lines, this analyzer dynamically tracks pressure zones based on pivot points, calculates zone strength using volume, touches, and age, integrates Fibonacci golden zone analysis, monitors institutional weekly/daily levels, and provides real-time position assessment. The indicator is designed for traders who understand that not all support/resistance levels are equal and that zone quality determines trading success.
Why This Indicator Exists
This indicator addresses the challenge of identifying high-quality support and resistance zones in real-time. Markets respect some levels and ignore others. By systematically analyzing zone characteristics, this indicator reveals:
Dynamic Pressure Zones: Identifies support and resistance zones based on pivot points with automatic updates
Zone Strength Scoring: Calculates zone quality (0-100%) using volume, touch count, and age
Fibonacci Integration: Tracks key Fibonacci levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) and golden zone (50-61.8%)
Institutional Levels: Monitors weekly and daily highs/lows that act as institutional reference points
Premium/Discount Zones: Identifies institutional buying zones (discount 0-30%) and selling zones (premium 70-100%)
Multi-Timeframe Analysis: Tracks higher timeframe levels for additional confluence
Position Assessment: Provides real-time analysis of price position relative to all zones
Each component provides different zone intelligence. Pivot-based zones show where price reversed, strength scoring shows zone quality, Fibonacci shows mathematical levels, institutional levels show reference points, premium/discount shows institutional bias, and position assessment shows current market context. Together, they create a comprehensive pressure zone system.
Core Components Explained
1. Dynamic Pivot-Based Zone Detection
Pressure zones are identified using pivot highs and lows:
float pivotHigh = ta.pivothigh(high, pivotLength, pivotLength)
float pivotLow = ta.pivotlow(low, pivotLength, pivotLength)
When a pivot high is detected, a resistance zone is created:
if not na(pivotHigh) and barstate.isconfirmed
PressureZone newZone = PressureZone.new()
newZone.zoneLine := line.new(bar_index - pivotLength, pivotHigh, bar_index + 50, pivotHigh,
color=resistanceColor, width=2, extend=extend.right)
newZone.price := pivotHigh
newZone.startBar := bar_index - pivotLength
newZone.zoneType := "resistance"
newZone.volumeAtZone := volume
Similarly for support zones with pivot lows. Zones are stored in arrays and automatically managed (old zones are removed when maximum count is reached).
Zone thickness is calculated as a percentage of price:
calcZoneThickness(float price, float thicknessPercent) =>
float thickness = price * (thicknessPercent / 100)
Default thickness is 0.5% of price, creating a zone rather than a single line. This accounts for the fact that support/resistance is a zone, not a precise price level.
2. Zone Strength Scoring System
Zone strength is calculated using three weighted components:
calcZoneStrength(int touches, float volAtZone, int age, float volWeight, float touchWeight, float ageWeight) =>
// Volume score (0-1)
float avgVolume = ta.sma(volume, 50)
float volScore = avgVolume > 0 ? math.min(volAtZone / avgVolume, 3.0) / 3.0 : 0.5
// Touch score (0-1)
float touchScore = math.min(touches / 5.0, 1.0)
// Age score (0-1) - newer zones score higher
float ageScore = math.max(1.0 - (age / 500.0), 0.0)
// Weighted combination
float strength = (volScore * volWeight) + (touchScore * touchWeight) + (ageScore * ageWeight)
Default weights:
Volume Weight: 40% - Higher volume at zone formation indicates institutional interest
Touch Weight: 30% - More touches indicate stronger zone
Age Weight: 30% - Newer zones are more relevant than old zones
Strength interpretation:
> 70%: Strong zone - high probability of holding
50-70%: Moderate zone - decent probability of holding
< 50%: Weak zone - lower probability of holding
The indicator tracks touches in real-time:
for zone in resistanceZones
if inZone(high, zone.price, thickness)
zone.touches += 1
zone.volumeAtZone := math.max(zone.volumeAtZone, volume)
Each touch increases zone strength, and high-volume touches increase it further.
3. Fibonacci Level Analysis
Fibonacci levels are calculated based on recent swing range:
calcFibLevels(float high, float low) =>
float priceRange = high - low
float fib236 = low + (priceRange * 0.236)
float fib382 = low + (priceRange * 0.382)
float fib500 = low + (priceRange * 0.500)
float fib618 = low + (priceRange * 0.618)
float fib786 = low + (priceRange * 0.786)
The indicator focuses on key levels:
50% (0.5): Equilibrium level - often acts as support/resistance
61.8% (0.618): Golden ratio - strongest Fibonacci level
Golden Zone is calculated as the area between 50% and 61.8%:
calcGoldenZone(float high, float low) =>
float priceRange = high - low
float goldenTop = low + (priceRange * 0.618)
float goldenBottom = low + (priceRange * 0.5)
The golden zone represents optimal entry area with best risk:reward ratio. Entries in the golden zone allow tight stops below 50% with targets at swing high.
4. Institutional Level Tracking
The indicator monitors key institutional reference levels:
Weekly High/Low:
float lastWeekHigh = request.security(syminfo.tickerid, "W", high ,
barmerge.gaps_off, barmerge.lookahead_off)
float lastWeekLow = request.security(syminfo.tickerid, "W", low ,
barmerge.gaps_off, barmerge.lookahead_off)
Daily High/Low:
float yesterdayHigh = request.security(syminfo.tickerid, "D", high ,
barmerge.gaps_off, barmerge.lookahead_off)
float yesterdayLow = request.security(syminfo.tickerid, "D", low ,
barmerge.gaps_off, barmerge.lookahead_off)
These levels act as magnets for price because:
Institutional algorithms reference these levels for order placement
Retail traders watch these levels for breakouts/breakdowns
Options and futures contracts often reference these levels
Previous day/week ranges provide context for current price action
5. Premium/Discount Zone System
Based on weekly range, the indicator calculates institutional bias zones:
float weekRange = lastWeekHigh - lastWeekLow
// Premium Zone (70-100% of range) - Institutional selling zone
float premiumTop = lastWeekHigh
float premiumBot = lastWeekLow + (weekRange * 0.7)
// Discount Zone (0-30% of range) - Institutional buying zone
float discountTop = lastWeekLow + (weekRange * 0.3)
float discountBot = lastWeekLow
// Golden Zone (50-61.8% of range) - Optimal entry zone
float goldenTop = lastWeekLow + (weekRange * 0.618)
float goldenBot = lastWeekLow + (weekRange * 0.5)
Trading logic:
In Discount Zone: Look for long entries - institutions are likely buying
In Premium Zone: Look for short entries - institutions are likely selling
In Golden Zone: Optimal risk:reward for entries in direction of trend
Between Zones: Neutral area - wait for price to reach discount or premium
This concept is based on institutional order flow: institutions buy in discount zones (value area) and sell in premium zones (overvalued area).
6. Multi-Timeframe Level Analysis
The indicator tracks higher timeframe levels for additional confluence:
float htfHigh = request.security(syminfo.tickerid, htfTimeframe, high ,
barmerge.gaps_off, barmerge.lookahead_off)
float htfLow = request.security(syminfo.tickerid, htfTimeframe, low ,
barmerge.gaps_off, barmerge.lookahead_off)
HTF timeframe is customizable (default: Daily). When current timeframe zones align with HTF levels, confluence increases zone strength.
7. Real-Time Position Assessment
The indicator continuously assesses price position:
// Check if in golden zone
bool inGoldenZone = close >= goldenBottom and close <= goldenTop
// Check if near resistance
bool nearResistance = false
for zone in resistanceZones
if inZone(close, zone.price, thickness * 2)
nearResistance := true
// Check if near support
bool nearSupport = false
for zone in supportZones
if inZone(close, zone.price, thickness * 2)
nearSupport := true
Position status:
AT RESISTANCE: Price near strong resistance zone - consider shorts or exits
AT SUPPORT: Price near strong support zone - consider longs or exits
GOLDEN ZONE: Price in optimal entry area - look for entries in trend direction
NEUTRAL: Price not near any significant zones - wait for better positioning
Visual Elements
Pressure Zone Lines: Horizontal lines showing resistance (red) and support (green) zones
Zone Strength Boxes: Filled boxes showing only strongest zones (strength > 60%) with strength percentage
Fibonacci Lines: Key Fibonacci levels (50% and 61.8%) with distinct colors
Golden Zone Fill: Shaded area between 50% and 61.8% Fibonacci levels
Institutional Lines: Weekly high/low (purple, thick) and Daily high/low (yellow, medium)
HTF Lines: Higher timeframe high/low (cyan) for additional confluence
Premium/Discount Fills: Shaded zones showing premium (red), discount (green), and golden (orange) areas
Position Markers: Visual alerts when price enters golden zone or approaches strong zones
Comprehensive Table: Dashboard showing top 2 resistance zones, top 2 support zones, institutional levels, Fibonacci levels, and current position status
Input Parameters
Pressure Zone Settings:
Zone Detection Length: Period for swing range calculation (default: 50, range: 20-200)
Pivot Length: Period for pivot detection (default: 10, range: 5-50)
Max Zones: Maximum zones to display (default: 8, range: 4-20)
Zone Thickness Percent: Zone width as percentage of price (default: 0.5%, range: 0.1-2.0%)
Fibonacci Settings:
Show Fibonacci Levels: Toggle Fib lines (default: enabled)
Show Golden Zone: Toggle golden zone fill (default: enabled)
Institutional Levels:
Show Last Week High/Low: Toggle weekly levels (default: enabled)
Show Yesterday High/Low: Toggle daily levels (default: enabled)
Strength Scoring:
Show Zone Strength: Toggle strength boxes (default: enabled)
Volume Weight: Weight for volume component (default: 0.4, range: 0.0-1.0)
Touch Weight: Weight for touch component (default: 0.3, range: 0.0-1.0)
Age Weight: Weight for age component (default: 0.3, range: 0.0-1.0)
Multi-Timeframe:
HTF Timeframe: Higher timeframe for level tracking (default: Daily)
Show HTF Levels: Toggle HTF lines (default: enabled)
Colors:
All colors are fully customizable including resistance, support, Fibonacci, golden zone, HTF levels, and institutional levels.
How to Use This Indicator
Step 1: Identify Strongest Zones
Look at the table to see top 2 resistance and support zones with strength percentages. Focus on zones with strength > 70%.
Step 2: Check Institutional Levels
Monitor weekly and daily highs/lows. These act as magnets for price and often provide strong support/resistance.
Step 3: Assess Premium/Discount Position
Determine if price is in premium zone (look for shorts), discount zone (look for longs), or golden zone (optimal entries).
Step 4: Look for Fibonacci Confluence
When pressure zones align with Fibonacci levels (especially 50% and 61.8%), zone strength increases significantly.
Step 5: Monitor Position Status
Check the table's position row. "AT RESISTANCE" or "AT SUPPORT" signals potential reversal or bounce areas.
Step 6: Wait for Zone Tests
Don't chase price. Wait for price to return to strong zones before entering. The best entries occur when price tests a zone and shows rejection.
Step 7: Use HTF Confluence
When current timeframe zones align with HTF levels, probability of zone holding increases. Look for these high-confluence areas.
Best Practices
Use on 15-minute to 4-hour timeframes for optimal zone clarity
Focus on zones with strength > 70% - these have highest probability of holding
Multiple touches increase zone strength - zones that held before are likely to hold again
Golden zone entries offer best risk:reward - tight stops with large targets
Premium/discount zones work best in trending markets
Weekly levels are stronger than daily levels - prioritize weekly when they conflict
Wait for price to reach zones - don't anticipate, react
Look for volume confirmation when zones are tested - high volume rejections are strongest
Combine with price action - zones show where, price action shows when
HTF confluence significantly increases zone strength - prioritize these areas
Indicator Limitations
Zones don't always hold - even strong zones can break during major news or trend changes
Zone strength is relative to recent history - not absolute
Pivot-based detection requires sufficient price history - may not work on newly listed instruments
Maximum zone limits (8 default) mean some valid zones may not be displayed
Zone thickness is a percentage - may be too wide or narrow for some instruments
Premium/discount zones are relative to weekly range - not absolute value areas
Fibonacci levels are based on recent swing - may not align with longer-term structure
The indicator shows zones, not direction - requires trader interpretation
Works best on liquid instruments with clear support/resistance behavior
Zone strength scoring is a guide, not a guarantee - strong zones can still fail
Technical Implementation
Built with Pine Script v6 using:
Custom type definition for PressureZone with strength tracking
Array-based storage for resistance and support zones
Pivot-based zone detection with confirmation
Multi-component zone strength scoring
Touch and volume tracking for each zone
Fibonacci level calculations
Golden zone identification
Multi-timeframe security requests for institutional levels
Premium/discount zone calculations based on weekly range
Real-time position assessment
Dynamic table with 13 rows showing all metrics
Overlap prevention for visual clarity
Automatic zone cleanup when maximum count is reached
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive pressure zone analysis. While individual components (pivot-based S/R, Fibonacci, institutional levels) are established concepts, this indicator is justified because:
It synthesizes five distinct zone analysis methodologies into a unified system
Zone strength scoring combines volume, touches, and age with customizable weights
Automatic zone management prevents clutter while highlighting strongest zones
Integration of Fibonacci golden zone with pivot-based zones
Premium/discount zone system based on institutional order flow concepts
Multi-timeframe level tracking for confluence analysis
Real-time position assessment provides actionable trading context
Comprehensive table shows all metrics simultaneously for holistic analysis
Overlap prevention ensures clean charts without sacrificing information
Each component contributes unique zone intelligence: pivot zones show where price reversed, strength scoring shows zone quality, Fibonacci shows mathematical levels, institutional levels show reference points, premium/discount shows institutional bias, HTF levels show confluence, and position assessment shows current context. The indicator's value lies in presenting these complementary perspectives simultaneously with quantitative strength scoring and intelligent display management.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Pressure zone analysis is a tool for identifying potential support and resistance areas, not a crystal ball for predicting future price movement. Strong zones, high strength scores, and institutional levels do not guarantee profitable trades. Past zone behavior does not guarantee future zone behavior. Market conditions change, and strategies that worked historically may not work in the future.
The zones and levels displayed are mathematical calculations based on current market data, not predictions of future price movement. High-strength zones can break, golden zone entries can fail, and institutional levels can be violated. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Regime Classification System [JOAT]Regime Classification System
Introduction
The Regime Classification System is an advanced open-source market regime detection indicator that combines smooth range filtering, multi-timeframe trend analysis (10 timeframes), impulse detection, Chandelier Exit integration, and regime strength scoring into a comprehensive market state classification system. This indicator helps traders identify whether the market is trending, ranging, volatile, or transitioning between states, enabling them to adapt their trading strategies to current market conditions.
Unlike basic trend indicators that simply show up or down, this system classifies markets into distinct regimes (Trend Bull, Trend Bear, Volatile Bull, Volatile Bear, High Vol Range, Low Vol Range, Flat) and provides confidence metrics, regime strength scores, multi-timeframe alignment analysis, and transition warnings. The indicator is designed for traders who understand that different market conditions require different trading approaches and that regime identification is critical for consistent profitability.
Why This Indicator Exists
This indicator addresses a fundamental challenge in trading: adapting strategy to market conditions. A trend-following strategy that works in trending markets fails in ranging markets. A mean-reversion strategy that works in ranging markets fails in trending markets. By systematically classifying market regimes, this indicator enables traders to:
Identify Current Regime: Classify market as trending, ranging, volatile, or flat with quantitative metrics
Measure Regime Strength: Score regime quality (0-100%) based on trend clarity, volatility consistency, impulse confirmation, and duration
Detect Regime Transitions: Warn when market is likely changing character before it becomes obvious
Analyze Multi-Timeframe Alignment: Confirm regime across 10 timeframes (1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, Daily, Weekly)
Calculate Regime Confidence: Provide confidence score combining regime strength, MTF alignment, and transition probability
Integrate Dynamic Stops: Use Chandelier Exit for adaptive stop-loss placement based on volatility
Each component provides different regime intelligence. Range filtering shows directional movement, trend strength shows conviction, volatility ratio shows market character, impulse detection shows momentum, MTF alignment shows multi-timeframe conviction, and Chandelier Exit provides dynamic risk management. Together, they create a comprehensive regime classification system.
Core Components Explained
1. Smooth Range Filter (from RealGains Algorithm)
The range filter uses a sophisticated smoothing algorithm to identify directional movement:
// Smooth range calculation
smoothrng(x, t, m) =>
wper = t * 2 - 1
avrng = ta.ema(math.abs(x - x ), t)
smoothrng = ta.ema(avrng, wper) * m
// Range filter
rngfilt(x, r) =>
rngfilt = x
rngfilt := x > nz(rngfilt ) ? x - r < nz(rngfilt ) ? nz(rngfilt ) : x - r :
x + r > nz(rngfilt ) ? nz(rngfilt ) : x + r
The filter creates upper and lower bands based on smoothed range. When price breaks above the filter, it signals upward movement. When price breaks below, it signals downward movement. The filter adapts to volatility, widening in volatile conditions and tightening in calm conditions.
Filter direction is tracked using consecutive bar counts:
upward = filt > filt ? nz(upward ) + 1 : 0
downward = filt < filt ? nz(downward ) + 1 : 0
Longer consecutive counts indicate stronger directional conviction.
2. Impulse Detection (SMMA and ZLEMA)
The indicator uses Smoothed Moving Average (SMMA) and Zero-Lag EMA (ZLEMA) to detect impulse moves:
// SMMA calculation
calc_smma(src, len) =>
var float smma = na
smma := na(smma) ? ta.sma(src, len) : (smma * (len - 1) + src) / len
// ZLEMA calculation
calc_zlema(src, len) =>
ema1 = ta.ema(src, len)
ema2 = ta.ema(ema1, len)
d = ema1 - ema2
ema1 + d
// Impulse detection
hi = calc_smma(high, 34)
lo = calc_smma(low, 34)
mi = calc_zlema(hlc3, 34)
md = mi > hi ? mi - hi : mi < lo ? mi - lo : 0
is_impulse = md != 0
When impulse is detected, the market has momentum. When impulse is absent (flat), the market lacks directional conviction. This helps filter out choppy, directionless periods.
3. Trend Strength Calculation (ADX-based)
The indicator calculates trend strength using Directional Movement Index (DMI) and Average Directional Index (ADX):
calcTrendStrength(int length) =>
float plusDM = high - high > low - low ? math.max(high - high , 0) : 0
float minusDM = low - low > high - high ? math.max(low - low, 0) : 0
float plusDI = atr > 0 ? ta.sma(plusDM, length) / atr * 100 : 0
float minusDI = atr > 0 ? ta.sma(minusDM, length) / atr * 100 : 0
float dx = math.abs(plusDI - minusDI) / (plusDI + minusDI) * 100
float adx = ta.sma(dx, length)
float trendStrength = adx / 100
bool bullish = plusDI > minusDI
Trend strength ranges from 0 (no trend) to 1 (strong trend). The threshold (default: 0.6) determines when a market is classified as trending vs ranging.
4. Volatility Regime Classification
Volatility regime is determined by comparing current ATR to average ATR:
calcVolatilityRegime(int length) =>
float atr = ta.atr(length)
float atrMA = ta.sma(atr, length)
float volRatio = atrMA > 0 ? atr / atrMA : 1.0
Volatility ratio interpretation:
volRatio > 1.5: High volatility (default threshold)
volRatio 0.67-1.5: Normal volatility
volRatio < 0.67: Low volatility
High volatility regimes require wider stops and larger profit targets. Low volatility regimes allow tighter stops and smaller targets.
5. Regime Classification Logic
The indicator combines trend strength, volatility ratio, and impulse detection to classify regimes:
classifyRegime(float trendStr, bool isBullish, float volRatio, float threshold, float volThresh, bool impulse) =>
if not impulse and catchFlat
regime := "Flat"
else if trendStr >= threshold
if volRatio > volThresh
regime := isBullish ? "Volatile Bull" : "Volatile Bear"
else
regime := isBullish ? "Trend Bull" : "Trend Bear"
else
if volRatio > volThresh
regime := "High Vol Range"
else
regime := "Low Vol Range"
Regime classifications:
Trend Bull: Strong uptrend with normal volatility - trend-following strategies
Trend Bear: Strong downtrend with normal volatility - trend-following strategies
Volatile Bull: Uptrend with high volatility - wider stops, larger targets
Volatile Bear: Downtrend with high volatility - wider stops, larger targets
High Vol Range: No clear trend with high volatility - avoid or use wide ranges
Low Vol Range: No clear trend with low volatility - mean-reversion strategies
Flat: No impulse detected - avoid trading
6. Regime Strength Scoring (0-100%)
Regime strength is calculated using four components:
calcRegimeStrength(float trendStr, float volRatio, bool impulse, int barsInRegime) =>
// Component 1: Trend clarity (40 points)
float trendScore = trendStr * 40
// Component 2: Volatility consistency (20 points)
float volScore = volRatio < volThreshold ? 20 : math.max(0, 20 - (volRatio - volThreshold) * 10)
// Component 3: Impulse confirmation (20 points)
float impulseScore = impulse ? 20 : 0
// Component 4: Regime duration (20 points)
float durationScore = math.min(barsInRegime / 50.0, 1.0) * 20
float totalScore = trendScore + volScore + impulseScore + durationScore
Regime strength interpretation:
> 70%: Excellent regime - high confidence trades
40-70%: Good regime - moderate confidence trades
< 40%: Weak regime - low confidence or avoid
7. Regime Transition Detection
The indicator warns when regime is likely changing:
detectRegimeTransition(float trendStr, float volRatio, bool impulse) =>
bool weakTrend = trendStr < trendThreshold * 0.8
bool volSpike = volRatio > volThreshold * 1.5
bool lostImpulse = not impulse and catchFlat
float transitionProb = 0.0
if weakTrend
transitionProb += 40
if volSpike
transitionProb += 30
if lostImpulse
transitionProb += 30
bool inTransition = transitionProb >= 50
Transition warnings help traders exit positions before regime changes become obvious in price.
8. Multi-Timeframe Alignment (10 Timeframes)
The indicator analyzes regime across 10 timeframes:
= request.security(syminfo.tickerid, '1', get_trend_status())
= request.security(syminfo.tickerid, '3', get_trend_status())
= request.security(syminfo.tickerid, '5', get_trend_status())
= request.security(syminfo.tickerid, '15', get_trend_status())
= request.security(syminfo.tickerid, '30', get_trend_status())
= request.security(syminfo.tickerid, '60', get_trend_status())
= request.security(syminfo.tickerid, '120', get_trend_status())
= request.security(syminfo.tickerid, '240', get_trend_status())
= request.security(syminfo.tickerid, 'D', get_trend_status())
= request.security(syminfo.tickerid, 'W', get_trend_status())
MTF alignment score is calculated with weighted timeframes (higher timeframes have more weight):
calcMTFAlignment(string t1m, string t5m, string t15m, string t1h, string t4h, string tD) =>
int bullCount = 0
int bearCount = 0
// Count each timeframe with weights
// 1m, 5m, 15m: weight 1
// 1h: weight 2
// 4h: weight 3
// Daily: weight 4
float alignmentScore = (bullCount - bearCount) / totalCount * 100
Alignment interpretation:
> 60: Strong Bull alignment
30-60: Moderate Bull alignment
-30 to 30: Mixed alignment
-60 to -30: Moderate Bear alignment
< -60: Strong Bear alignment
9. Regime Confidence Calculation
Overall confidence combines regime strength, MTF alignment, and transition status:
calcRegimeConfidence(float regimeStrength, float alignmentScore, bool inTransition) =>
float confidence = regimeStrength
// Adjust for alignment
float alignmentBonus = math.abs(alignmentScore) / 100 * 20
confidence += alignmentBonus
// Penalize if in transition
if inTransition
confidence *= 0.5
confidence := math.min(confidence, 100)
Confidence > 70% indicates high-quality regime suitable for aggressive trading. Confidence < 40% suggests caution or avoiding trades.
10. Chandelier Exit Integration
The indicator includes Chandelier Exit for dynamic stop-loss placement:
atrCE = ceMult * ta.atr(ceLength)
longStop = (ceUseClose ? ta.highest(close, ceLength) : ta.highest(ceLength)) - atrCE
shortStop = (ceUseClose ? ta.lowest(close, ceLength) : ta.lowest(ceLength)) + atrCE
Chandelier Exit adapts to volatility, providing wider stops in volatile regimes and tighter stops in calm regimes. The stops trail price, locking in profits as trends develop.
Visual Elements
Range Filter Line: Main line showing directional filter with color-coded regime (green = bull, red = bear, cyan = neutral)
Target Bands: Upper and lower bands showing filter range with gradient fills
Regime Strength Zones: Gradient fills showing regime strength intensity
Volatility Expansion Zones: Circles marking high volatility periods
Chandelier Exit Lines: Dynamic stop-loss lines (green for long stops, red for short stops)
Regime Value Histogram: Histogram showing regime direction and strength (-3 to +3)
Regime Background: Subtle background coloring based on current regime
Regime Change Markers: Circles marking regime transitions
Transition Warnings: X-crosses marking potential regime changes
Regime Signals: Triangle markers for strong bull/bear regime confirmations
MTF Table: Comprehensive table showing all 10 timeframes with trend status
Statistics Panel: Additional metrics including regime strength, duration, alignment, confidence, and transition status
Input Parameters
Range Filter Settings:
Sampling Period: Period for range calculation (default: 100, range: 1+)
Range Multiplier: Multiplier for range width (default: 3.0, range: 0.1+)
Regime Detection:
Trend Threshold: Minimum trend strength for trending classification (default: 0.6, range: 0.3-0.9)
Volatility Threshold: Multiplier for high volatility classification (default: 1.5, range: 1.0-3.0)
Regime Strength Period: Period for strength calculations (default: 20, range: 5-100)
Show Regime Signals: Toggle regime confirmation markers (default: enabled)
Chandelier Exit:
Chandelier ATR Period: Period for ATR calculation (default: 22, range: 1+)
Chandelier ATR Multiplier: Multiplier for stop distance (default: 3.0, range: 0.1+)
Use Close for Extremums: Use close vs high/low for calculations (default: enabled)
Impulse Detection:
Try to Catch Flat: Enable flat regime detection (default: enabled)
Multi-Timeframe Table:
Show MTF Table: Toggle timeframe table (default: enabled)
Table Position: Dashboard location (Top Right/Top Left/Bottom Right/Bottom Left/Middle Right)
Show Regime Statistics: Toggle additional statistics panel (default: enabled)
Colors:
All colors are fully customizable including trend bull/bear, mid trend, range, high volatility, text, transition, and excellent regime colors.
How to Use This Indicator
Step 1: Identify Current Regime
Check the regime classification (Trend Bull, Trend Bear, Volatile Bull, Volatile Bear, High Vol Range, Low Vol Range, Flat). This determines your trading approach.
Step 2: Check Regime Strength
Look at regime strength percentage. > 70% indicates high-quality regime suitable for aggressive trading. < 40% suggests caution.
Step 3: Verify MTF Alignment
Check the MTF table. Strong alignment (> 60) across multiple timeframes confirms regime conviction. Mixed alignment suggests caution.
Step 4: Monitor Regime Confidence
Overall confidence score combines strength, alignment, and transition status. > 70% confidence indicates high-quality trading conditions.
Step 5: Watch for Transition Warnings
X-cross markers warn of potential regime changes. Consider tightening stops or exiting positions when transition probability is high.
Step 6: Use Chandelier Exit for Stops
The Chandelier Exit lines provide dynamic stop-loss levels that adapt to volatility. Trail stops as trends develop.
Step 7: Adapt Strategy to Regime
Trend Bull/Bear: Use trend-following strategies, ride trends, trail stops
Volatile Bull/Bear: Use wider stops, larger targets, reduce position size
High Vol Range: Avoid or use very wide ranges
Low Vol Range: Use mean-reversion strategies, fade extremes
Flat: Avoid trading, wait for impulse to return
Best Practices
Use on 15-minute to 4-hour timeframes for optimal regime clarity
Trade with the regime, not against it - trend-following in trending regimes, mean-reversion in ranging regimes
Higher regime strength = higher confidence = larger position sizes
MTF alignment is critical - don't trade against higher timeframe regimes
Transition warnings are early signals - tighten stops or exit before regime change becomes obvious
Chandelier Exit provides objective stop-loss levels - use them
Regime duration matters - longer regimes are more reliable
Confidence > 70% = aggressive trading, confidence < 40% = defensive or avoid
Flat regimes lack directional conviction - patience is key
Volatile regimes require wider stops and larger targets - adjust risk accordingly
Indicator Limitations
Regime classification is based on recent data - sudden news events can invalidate regimes instantly
Transition warnings are probabilistic, not guaranteed - regimes can persist longer than expected
MTF alignment requires sufficient data on all timeframes - may not work on newly listed instruments
Range filter is adaptive but can lag during rapid regime changes
Impulse detection can produce false flat signals during consolidation within trends
Regime strength scoring is relative to recent history - not absolute
Chandelier Exit can be stopped out during volatile whipsaws
The indicator identifies regimes but doesn't predict when they will end
Works best on liquid instruments with clear trending and ranging periods
Regime confidence is a guide, not a guarantee - high confidence regimes can still fail
Technical Implementation
Built with Pine Script v6 using:
Smooth range filter with adaptive volatility adjustment
SMMA and ZLEMA calculations for impulse detection
ADX-based trend strength calculations
ATR-based volatility regime classification
Multi-component regime strength scoring
Transition probability calculations
Multi-timeframe security requests (10 timeframes)
Weighted MTF alignment scoring
Regime confidence calculations
Chandelier Exit with trailing stops
Dynamic table with 17 rows showing all timeframes and statistics
Gradient fills and color-coded visualizations
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive regime classification approach. While individual components (range filter, ADX, Chandelier Exit) are established concepts, this indicator is justified because:
It synthesizes six distinct regime analysis methodologies into a unified classification system
Regime strength scoring combines trend clarity, volatility consistency, impulse confirmation, and duration
Transition detection provides early warnings before regime changes become obvious
MTF alignment analysis across 10 timeframes with weighted scoring
Regime confidence calculation integrates strength, alignment, and transition probability
Integration of Chandelier Exit provides regime-adaptive risk management
Comprehensive statistics panel shows regime quality metrics in real-time
Visual regime signals help traders identify high-quality trading conditions
Each component contributes unique regime intelligence: range filter shows direction, trend strength shows conviction, volatility ratio shows character, impulse shows momentum, MTF alignment shows multi-timeframe conviction, transition detection shows regime changes, and Chandelier Exit provides adaptive stops. The indicator's value lies in presenting these complementary perspectives simultaneously with quantitative regime classification and confidence scoring.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Regime classification is a tool for understanding market conditions, not a crystal ball for predicting future price movement. High regime strength, strong MTF alignment, and high confidence scores do not guarantee profitable trades. Past regime patterns do not guarantee future regime patterns. Market conditions change, and strategies that worked historically may not work in the future.
The metrics displayed are mathematical calculations based on current market data, not predictions of future price movement. Transition warnings are probabilistic, not guaranteed. Chandelier Exit stops can be hit during volatile whipsaws. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Institutional Accumulation and Distribution Detector - PhenLabs📊 IADD — Institutional Accumulation & Distribution Detector
Version: PineScript™ v6
📌 Description
IADD is a professional-grade, no-repaint zone detection engine that identifies where institutional capital is quietly accumulating or distributing before major price moves. By fusing Volume Spread Analysis (VSA) with momentum candle classification, a five-factor quality scoring system, and a built-in micro Volume Profile engine, IADD draws only the highest-conviction institutional footprints — complete with POC, HVN sub-zones, breakout signals, and ATR-projected targets.
🚀 Points of Innovation
Dual-Type Candle Classification (VSA + Momentum): Detects both high-volume momentum candles (directional conviction) and high-volume absorption candles (hidden buying/selling via long wicks) — capturing institutional activity that pure momentum filters miss.
5-Factor Zone Quality Score (0–5 ★): Zones are graded across five objective criteria: RVOL intensity, absorption presence, consolidation tightness, candle participation, and directional bias. Only zones clearing your minimum threshold are drawn.
Embedded Volume Profile per Zone: On confirmation, IADD calculates a micro volume profile across the cluster window, identifying the POC and HVN — the highest-density levels hidden inside each zone.
No-Repaint Architecture: All zones, signals, and targets are anchored to closed-bar data using fixed coordinates and extend.none rendering. Signals lock permanently — nothing shifts or disappears after the bar closes.
ATR-Projected 1R/2R/3R Targets: On breakout, three risk-reward levels and a structural stop-loss are automatically projected using ATR at the breakout close — a complete trade plan in a single signal.
🔥 Key Features
✅ Accumulation Zones (Blue) above trend EMA — where institutions absorbed supply
✅ Distribution Zones (Orange) below trend EMA — where institutions offloaded into strength
✅ POC dashed line per zone — the highest-volume price level within each cluster
✅ Star-rated quality labels (★ to ★★★★★) with POC price, bias %, and peak RVOL
✅ ▲ LONG / ▼ SHORT breakout labels on zone boundary breaks with expanded volume
✅ 5 alert conditions: Zone Formed (Bull/Bear), Breakout (Long/Short), Any Breakout
📖 Settings Guide
⚙️ Volume & Candle Filters
Avg Volume Length | Default: 20 | Rolling baseline period for RVOL calculation.
Min RVOL Multiplier | Default: 1.8 | Volume must exceed this multiple of the average to qualify a candle as institutional.
Min Body % (Momentum) | Default: 55% | Minimum body-to-range ratio for momentum candle classification.
Min Wick % (Absorption) | Default: 45% | Minimum wick-to-range ratio for VSA absorption candle classification.
⚙️ Cluster & Quality Filters
Cluster Lookback | Default: 15 bars | Rolling window scanned for institutional candle clusters.
Min Inst. Candles | Default: 3 | Minimum institutional candles required within the window.
Min Directional Bias % | Default: 60% | Minimum directional agreement among institutional candles.
Min Zone Quality Score | Default: 3/5 | Minimum score gate before a zone is drawn. Raise to 4–5 for maximum selectivity.
ATR Squeeze Filter | Default: On | Rejects wide, choppy zones. Keeps tight institutional consolidations only.
Max Zone Range (× ATR) | Default: 3.5 | Maximum acceptable zone width as an ATR multiple.
⚙️ Trend Context Filter
Enable Trend Filter | Default: On | Accumulation requires price above EMA; distribution requires price below.
Trend EMA Length | Default: 200 | Macro trend reference period.
⚙️ Volume Profile
Profile Bins | Default: 20 | Price bins for micro volume profile resolution within each zone.
HVN Threshold % | Default: 70% | Bins must reach this % of peak bin volume to qualify as part of the HVN.
⚙️ Targets & Risk
Show ATR-Based Targets | Default: On | Projects 1R/2R/3R and structural SL on every breakout.
ATR Target Multiplier (1R) | Default: 1.5 | ATR distance per risk unit from the breakout close.
⚙️ Display
Show Accumulation / Distribution Zones | Default: Both On | Individual visibility toggles per zone type.
Show Breakout Signals | Default: On | Enables ▲ LONG / ▼ SHORT breakout labels.
Show Quality Score on Label | Default: On | Appends star rating to each zone label.
Max Zones (per type) | Default: 8 | Oldest zones auto-purge when cap is reached.
✅ Best Use Cases
● Identifying institutional demand zones before trend continuation entries
● Confirming breakouts with zone quality context — a 5-star zone breakout carries far more weight than an unqualified one
● Using the POC as a magnet or retest entry level after a breakout
● Anchoring structural stop-losses to zone boundaries (below accumulation low, above distribution high)
● Multi-timeframe confluence: identify IADD zones on higher timeframes, enter on HVN touches on lower timeframes
● Filtering setups to macro EMA-aligned trades only for higher win-rate execution
⚠️ Limitations
Volume Data: Requires reliable volume. On some forex pairs or synthetic instruments, RVOL accuracy may be reduced.
Trend Filter: Counter-trend zones are suppressed when the filter is enabled. Disable for full detection.
Not Standalone: IADD identifies where institutions were active — not when price will return. Combine with price action confirmation and proper risk management.
💡 Note:
Best performance on equities, crypto, and futures across 1-minute to Daily timeframes. Start with default settings, then tighten Min Quality Score and RVOL Multiplier to match your instrument’s volatility profile. Indicator

Inverse Golden Pocket MTF ZonesIGP Multi-TF Zones — Inverse Golden Pocket Mapper
Overview
IGP Multi-TF Zones identifies dynamic support and resistance by detecting when price inverts through a Fibonacci golden pocket (the 0.618–0.786 zone) on any timeframe. When price breaks through a golden pocket from one side, that zone flips from resistance to support (or vice versa), creating a high-probability area for re-entry on a retest.
The indicator overlays golden pocket zones from up to four timeframes simultaneously — your chart timeframe plus three configurable higher timeframes — so you can spot multi-timeframe confluence at a glance. Each zone tracks its lifecycle from formation through inversion or invalidation, with full visual feedback at every stage.
How it works:
Detects swing high → swing low pairs using pivot-based logic
Draws the golden pocket zone (0.618–0.786 retracement) between the swings
Monitors for inversion — a candle closing through the 0.786 level, confirming the zone has flipped
Inverted zones change color (green for long, red for short) and become active areas to watch for retests
Zones that get broken the wrong way (price closes beyond the swing origin) are invalidated and removed
This is not a signal generator — it's a zone mapper. It shows you where the important levels are across multiple timeframes and lets you apply your own entry logic.
Settings Reference
Timeframe Combo
Preset — Quick selection for which timeframes to display:
Chart Only: Only your chart's own timeframe zones
Chart + 15m: Chart TF plus 15-minute zones
Chart + 15m + 30m: Three-tier view (default)
Chart + 15m + 30m + 1h: Full four-tier stack
Custom: Manually select each HTF and toggle independently
Chart TF
Show Chart TF Zones — Master toggle for your chart's native timeframe zones. Turn off if you only want higher TF zones overlaid.
Extend Right (bars) — How many bars ahead the zone box extends past the current bar. Default: 15.
Label Position — Where the zone info label sits relative to the box: Top-Left, Top-Right, Bot-Left, or Bot-Right. Use different positions per TF to prevent overlap.
HTF 1 / HTF 2 / HTF 3
Each higher timeframe has its own self-contained settings group:
Timeframe — Which timeframe to pull swing data from (e.g., 15m, 30m, 1h, 4h, D).
Enabled — Toggle this HTF on/off.
Min Swing (pts) — Minimum size in points for a swing to qualify. Higher timeframes naturally produce larger swings, so set this proportionally. Defaults: HTF1 = 45, HTF2 = 80, HTF3 = 145.
Extend Right (bars) — Independent extend per TF. Higher TF zones represent bigger structures, so longer extensions make sense. Defaults: HTF1 = 30, HTF2 = 50, HTF3 = 80.
Freeze Inverted — When on, inverted zones stop extending after a set number of bars, freezing them in place on the chart.
Freeze After (bars) — How many bars after inversion before the zone freezes.
Label Position — Top-Left, Top-Right, Bot-Left, or Bot-Right. Set different TFs to different corners to avoid label stacking.
Swing Detection
Pivot Lookback — Number of bars on each side to confirm a swing high/low. Higher values = fewer, more significant swings. Default: 5.
Min Swing (pts) — Chart TF — Minimum point range between swing high and swing low for chart timeframe zones. Filters out insignificant micro-swings. Default: 25.
Fibonacci
Entry Level — Which fib level defines the entry edge of the golden pocket box. Options: 0.618 (default), 0.705, 0.786. The box always draws from your chosen entry level to 0.786.
Show Entry Lines — Dashed line at the entry fib level (the bottom/top edge of the GP zone).
Show CE Line — Consequent Encroachment line at the midpoint of the golden pocket (halfway between entry level and 0.786). CE is a key reaction level within the zone. Turns green/red on inversion.
Show 0.786 Line (uninverted) — Dotted line at the inversion trigger level. Visible only on potential (uninverted) zones — once the zone inverts, this line disappears since it has served its purpose.
Show 0.886 Line (uninverted) — Dotted line at the deep retracement level. Shows the extreme edge of the golden pocket. Also disappears on inversion.
Direction
Long Setups (Bearish GP) — Show zones where a bearish swing (high → low) creates a golden pocket that could invert into long support.
Short Setups (Bullish GP) — Show zones where a bullish swing (low → high) creates a golden pocket that could invert into short resistance.
IDs & Swing Labels
Show Zone IDs — Each zone gets a unique sequential ID (Z1, Z2, Z3...) shown on the zone label.
Show Swing IDs — Labels at each swing high (H) and swing low (L) that formed a zone, tagged with the zone ID and timeframe. Example: "Z42 5m H". Only swings that generated a zone are labeled. When multiple zones share the same swing point, labels merge with a "/" separator (e.g., "Z42 5m H / Z43 15m H").
Show Swing Lines — Dotted horizontal lines extending from each swing high and swing low to the right edge of the zone box. Lines turn solid on inversion.
Swing ID Size — Text size for swing labels: tiny, small, or normal.
Swing High ID Color — Color for swing high labels and lines. Default: orange.
Swing Low ID Color — Color for swing low labels and lines. Default: blue.
Zone ID Size — Text size for the zone ID portion of labels.
Zone Lifecycle
Delete Invalidated Zones — When on, zones that get broken (price closes beyond the swing origin) are immediately removed from the chart. When off, they stay visible with gray dotted borders.
Max Zones Per TF — Maximum number of zones to keep per timeframe. When exceeded, the oldest zone is removed. Default: 6. Max: 50.
Invalidation
Invalidate on Swing Break — When price closes below the swing low (for long zones) or above the swing high (for short zones), the zone is marked as invalidated. Turn off to keep all zones alive indefinitely.
Visuals
Show Zone Labels — Master toggle for all zone info labels.
Zone Label Size — Text size for zone labels: tiny, small, or normal.
Zone Label Content
Fine-grained control over what information appears in each zone's label. Every field can be toggled independently:
Zone ID (Z123) — The sequential zone identifier. Default: ON.
Timeframe + Direction — Shows the source timeframe and direction arrow, e.g., "5m GP↑" or "15m IGP↓". Default: ON.
Swing Size (42pt) — The point range of the swing that formed the zone. Default: ON.
Swing Refs — Shows which swing high and low IDs created the zone, e.g., " ". Default: OFF.
Swing Time — Timestamp (ET) of when the swing that formed the zone was detected. Default: ON.
Inversion Time — Timestamp (ET) of when the zone inverted. Only appears on inverted zones. Default: ON.
CE Value — The Consequent Encroachment price level. Default: ON.
TF Colors
Chart TF — Color for chart timeframe zones. Default: purple.
HTF 1 — Color for the first higher timeframe. Default: blue.
HTF 2 — Color for the second higher timeframe. Default: orange.
HTF 3 — Color for the third higher timeframe. Default: teal.
CE Line — Color for the Consequent Encroachment line. Default: white.
Inverted Long — Color for zones that have inverted bullish (long). Default: green.
Inverted Short — Color for zones that have inverted bearish (short). Default: red.
Zone States
Potential (colored by TF) — A golden pocket has formed but price hasn't broken through the 0.786 level yet. The zone extends to the right each bar. This is a zone to watch.
Inverted (green or red) — Price closed through the 0.786 level, confirming the golden pocket has flipped. The zone is now an active support/resistance area for retests. The CE line and swing lines turn solid. The 0.786 and 0.886 helper lines disappear.
Invalidated (gray/deleted) — Price closed beyond the swing origin, breaking the zone. Depending on settings, the zone is either deleted or shown as a gray dotted outline.
Multi-Timeframe Confluence
The real power is in stacking timeframes. When a 5m zone overlaps with a 15m and 30m zone at the same price level, that's multi-timeframe confluence — a much higher probability reaction area than any single-TF zone alone.
Higher timeframe zones draw with thicker borders and more opacity so they stand out visually. Color-coding by timeframe lets you instantly see which TFs are aligned.
Tips
Start with Chart + 15m + 30m preset and adjust from there
Set different label positions per TF (e.g., chart = Top-Left, HTF1 = Top-Right) to avoid clutter
Higher TFs need larger min swing values to filter noise — the defaults are tuned for NQ but adjust for your instrument
Use Freeze Inverted on lower TFs to keep the chart clean, turn it off on higher TFs so they keep extending
The CE line is often the first reaction level within a zone — watch for wicks to CE
When swing labels show merged IDs (Z42/Z43), that swing point is extra significant — multiple timeframes agree on it
Built for NQ futures. Works on any instrument — adjust min swing sizes to match your market's typical range. Indicator

Precision SPXPrecision SPX — Multi‑Timeframe Levels + Automated Alerts for SPX Traders
Precision SPX is a manual‑control Support and Resistance system built for SPX traders who rely on structure, precision, and daily level updates. It plots Monthly, Weekly, Daily, and Daily Range levels to map where price may react, reverse, or consolidate. This version includes a full alert engine that notifies you the moment price interacts with any level.
Core Features
Multi‑Timeframe Levels
The indicator plots a complete structure:
Monthly Levels — High & Low
Weekly Levels — High & Low
Daily Levels — Six total (4 Red, 2 Pink)
Daily Range Levels — High & Low
All levels are manually entered for maximum precision.
Customizable Visuals
Adjustable label size
Adjustable horizontal label placement
Toggle level labels on/off
Clean color‑coded hierarchy
ES/SPY Conversion Support
Optional manual ES spread or SPY ratio input
Automatically adjusts SPX levels
Lightweight & User‑Friendly
No repainting
No heavy calculations
Easy to integrate into any chart layout
How It Works
Precision SPX plots manually‑controlled Support and Resistance levels across multiple timeframes. Each level is labeled and color‑coded so you can quickly identify:
Higher‑timeframe structure
Daily intraday reaction zones
Overnight range boundaries
Breakout and reversal points
How to Use It
1. Apply the Indicator
Add Precision SPX to your chart.
2. Enter Your Levels
Input your Daily, Daily Range, Weekly, and Monthly levels into the string fields.
3. Trade With Structure
Use the plotted levels to identify:
Reversals
Breakouts
Retests
Stop‑loss placement
High‑probability reaction zones
Combine with trendlines, volume profile, or oscillators for confirmation.
Built‑In Alerts
Precision SPX includes a complete alert engine so you can receive notifications when price crosses any level.
Alert Modes
Any alert() function call — triggers when price crosses any level, with duplicate‑candle suppression.
Individual Level Alerts — choose a specific level such as:
R2_Hi, R1_Hi, P_Hi, P_Lo, R1_Lo, R2_Lo, DR_Hi, DR_Lo, W_Hi, W_Lo, M_Hi, M_Lo.
Level Categorization
Daily Levels:
Red: R2_Hi, R1_Hi, R1_Lo, R2_Lo
Pink: P_Hi, P_Lo
Daily Range:
DR_Hi, DR_Lo
Weekly Levels:
W_Hi, W_Lo
Monthly Levels:
M_Hi, M_Lo
How to Add Alerts
Open the PulseWire alert panel
Select Precision SPX as the condition
Choose Any alert() function call or a specific level
Set expiration, message, and notification preferences
Save
Daily Workflow
Because SPX levels change daily:
Update your daily string values
Create a new alert each day (PulseWire requires this for updated values)
Alerts will trigger based on the conditions you select
Release Notes — Precision SPX
Feb 2026 — Major Update
Full alert engine added
“Any alert() function call” support
Duplicate‑candle suppression
Complete level categorization
Daily update workflow
Cleaned and reorganized structure
Legacy Notes (From Precision Levels)
Jun 12, 2025
Added highlighted price labels with adjustable size
Added ES/SPY conversion inputs
Dragging disabled when conversion is active
Jun 28, 2025
Added customizable label placement
Reordered string input structure
Standardized daily color order
Added toggle for level labels
Nov 8, 2025
Added Daily Range levels
Updated string hierarchy
Example structure:
Red, Red, Pink, Pink, Red, Red, DR_Hi, DR_Lo, Weekly, Weekly, Monthly, Monthly Indicator

Indicator
