Momentum Consensus Heatmap [StrixEDGE]█ MOMENTUM CONSENSUS HEATMAP
A multi-timeframe momentum aggregation system that scans 6 oscillators across 4 customizable timeframes and fires high-conviction BUY/SHORT signals only when a critical mass of indicators reach overbought or oversold consensus simultaneously.
█ CONCEPT
Most momentum-based strategies rely on a single oscillator on a single timeframe — a setup prone to false signals and noise. This indicator solves that by requiring cross-timeframe and cross-indicator agreement before generating a signal.
The core logic works in two layers:
Layer 1 — Timeframe Consensus (per indicator):
Each oscillator is evaluated across 4 timeframes (default: 15m, 1H, 4H, 1D). An indicator only qualifies as "Overbought" or "Oversold" when at least 3 out of 4 timeframes agree (configurable: 2/4, 3/4, or 4/4).
Layer 2 — Indicator Consensus (overall signal):
A chart signal fires only when a user-defined number of indicators (default: 4 out of 6) have all independently reached Layer 1 consensus in the same direction.
This dual-filter architecture dramatically reduces noise and isolates moments of genuine, broad-based momentum exhaustion.
█ OSCILLATORS USED
• RSI (Relative Strength Index) — Classic momentum oscillator measuring speed and magnitude of price changes. Default OB/OS: 70/30.
• Stochastic RSI — Stochastic formula applied to RSI values, more sensitive to short-term momentum shifts than raw RSI. Default OB/OS: 80/20.
• Stochastic Oscillator — Compares closing price to the high-low range over a lookback period. Independent from Stoch RSI. Default OB/OS: 80/20.
• CCI (Commodity Channel Index) — Measures deviation from the statistical mean. Unbounded, making it useful for detecting extreme momentum. Default OB/OS: +100/−100.
• Williams %R — Reflects where the current close sits relative to the highest high. Inverted scale (−100 to 0). Default OB/OS: −20/−80.
• MFI (Money Flow Index) — Volume-weighted RSI. Adds a volume confirmation dimension that pure price-based oscillators lack. Default OB/OS: 80/20.
█ HEATMAP TABLE
The on-chart heatmap table provides a real-time dashboard of all 24 data points (6 indicators × 4 timeframes):
• Each cell shows the live oscillator value with color-coded background:
🔴 Red = Overbought zone
🟢 Green = Oversold zone
⚫ Gray = Neutral
• SCORE column shows how many timeframes agree for each indicator (e.g., "3/4 OB").
• SIGNAL column shows whether that individual indicator has reached consensus ("SHORT ▼" / "BUY ▲" / "—").
• CONSENSUS row at the bottom shows the overall verdict with a percentage score of indicator agreement.
Table position and text size are fully customizable through the settings panel.
█ CHART SIGNALS
When the overall consensus threshold is met:
▲ Green triangle below bar = BUY signal (oversold consensus)
▼ Red triangle above bar = SHORT signal (overbought consensus)
Signals fire only on the first bar of a new consensus event (no repeated signals while conditions persist). A subtle background color flash highlights the signal bar.
█ OPTIONAL TREND FILTER (EMA)
When enabled, signals are filtered by an EMA trend bias:
• BUY signals require price above the EMA (buying in an uptrend)
• SHORT signals require price below the EMA (shorting in a downtrend)
This is disabled by default to keep the indicator pure momentum-based, but can significantly improve signal quality in trending markets.
█ SETTINGS OVERVIEW
⏱ Timeframes — All 4 timeframes are independently configurable.
⚙ Indicator Lengths — Full control over each oscillator's lookback period.
📊 OB/OS Thresholds — Adjust overbought/oversold levels for every oscillator independently.
🎯 Signal Rules:
• Min TF Consensus: How many timeframes must agree per indicator (2-4, default 3).
• Min Indicators: How many indicators must reach consensus for a chart signal (1-6, default 4).
🎨 Table Appearance — Position, size, and full color customization (OB color, OS color, neutral, header, text).
🔔 Alerts — Native TradingView alerts with detailed messages including ticker, timeframe, and consensus count.
█ HOW TO USE
1. Apply the indicator to any chart (works on all instruments and timeframes).
2. The heatmap table updates in real time — use it as a momentum dashboard.
3. Watch for chart signals:
• When 4+ indicators show oversold consensus across 3+ timeframes → BUY signal.
• When 4+ indicators show overbought consensus across 3+ timeframes → SHORT signal.
4. Set up TradingView alerts to get notified when signals fire.
5. For higher conviction:
• Increase "Min Indicators" to 5 or 6 (fewer but stronger signals).
• Require 4/4 timeframe agreement instead of 3/4.
• Enable the EMA trend filter.
█ IMPORTANT NOTES
• This indicator uses request.security() to fetch multi-timeframe data. On the current timeframe, values update in real time. Higher timeframe values reflect the last closed bar of that timeframe.
• Signals are non-repainting once the bar closes. Intrabar, the table values and potential signals update as new ticks arrive (expected behavior for a real-time dashboard).
• This tool is designed for identifying momentum exhaustion zones. It does not predict direction — use it in confluence with price action, support/resistance, and your broader trading plan.
• Past performance is not indicative of future results. Always use proper risk management.
█ CREDITS & LICENSE
Open source under Mozilla Public License 2.0.
Built with Pine Script™ v6. Indicator

Crypto Market RSI Heatmap [BigBeluga]🔵 OVERVIEW
The Crypto Market RSI Heatmap is a comprehensive, institutional-grade sector momentum matrix built for TradingView. It consolidates relative strength metrics for up to 20 cross-sectional crypto assets into a single, highly readable multi-group pane. Instead of forcing you to open dozens of browser tabs or flip back and forth between charts, this system runs concurrent structural background queries to map real-time market overbought expansions and oversold depressions using an advanced, color-gradient visual framework.
🔵 FEATURES
The indicator tracks cross-asset momentum cycles through an isolated data processing engine:
1 — Multi-Asset Matrix Architecture
Modular Asset Grouping: Assets are automatically split into 4 distinct structural sectors (Group A through Group D). Each section handles up to 5 completely customizable tickers, allowing you to organize setups by Layer 1s, DeFi, Memes, or Major pairs.
Independent Timeframe Anchors: Every group has an isolated execution timeframe filter ( Timeframe ). This allows you to monitor short-term scalping momentum in one sector while simultaneously tracking macroscopic daily trend structures in another.
Dynamic Highlight Tracking: The background matrix scans the active workspace. The exact asset loaded on your current open chart is highlighted with a custom accent marker ( Current Chart Asset Highlight ) so you never lose your visual anchor.
2 — Momentum Filters & Statistical Computations
Flexible Core Oscillators: The engine isn't limited to standard RSI calculations. Users can instantly toggle between a classic Relative Strength Index, Money Flow Index (MFI) to capture volume distribution, or a fast-response Stochastic RSI.
Group Average Horizon Lines: Dotted real-time horizontal baselines calculate the mean historical mathematical score of each active group, providing an instant look at overall sector health.
Real-Time Cluster Stats: A live sub-label maps out the active average, minimum, and maximum value points for every cluster directly across the base of the indicator workspace.
// 3-Point Color Gradient Engine & Highlighting Mechanism
color dynamicCoinColor = colorMidYel
if coinRSI >= 50.0
dynamicCoinColor := color.from_gradient(coinRSI, 50.0, 75.0, colorMidYel, colorMaxRed)
else
dynamicCoinColor := color.from_gradient(coinRSI, 25.0, 50.0, colorMaxGrn, colorMidYel)
bool isActiveChartAsset = str.contains(str.split(symbol, ":").last(), syminfo.ticker)
if isActiveChartAsset
dynamicCoinColor := colorActive
🔵 HOW TO USE
Using the system to gauge sector rotation requires a systematic analysis flow:
Evaluating Sector Divergences: Monitor the separate group structures to identify relative market leaders and laggards. When Group A’s average baseline pushes deeply into the upper red expansion zone while Group B remains pinned inside the lower green oversold region, money is explicitly rotating out of one pocket and into the other.
Tracking Active Momentum Continuations: Watch the trailing dashed historical lines to catch velocity expansions. Assets that break heavily out of the neutral 50 level and carry an institutional-grade gradient color shift provide high-probability breakout opportunities.
Isolating Market Anomalies: Use the bottom statistics panel to hunt down structural outliers. If a major sector average is floating heavily at a overbought 75 reading, but an individual coin within that exact cluster is sitting at a depressed 35 minimum level, you have found an inefficiencies setup.
🔵 NOTES
Why this implementation is unique:
It completely replaces standard, bulky multi-pane monitor clusters by arranging up to 20 assets side-by-side using a clean, space-staggered horizontal charting layout.
The dual-layer label framework overlays readable ticker identifiers directly on top of real-time momentum tracking nodes, preserving chart real estate without sacrificing readability.
It bridges standard price-derived momentum structures with user-defined asset lists, creating a bespoke internal crypto index tracking workspace.
Indicator

MTF Stoch RSI Snapshot 9 Timeframe OverviewThis indicator provides a compact multi-timeframe view of the Stochastic RSI across 9 different timeframes:
1m, 5m, 15m, 30m, 45m, 1h, 2h, 6h, 1D
Instead of switching between charts, the script displays all selected timeframes side by side in a clean column layout. Each column represents one timeframe and shows the current position of the two Stoch RSI lines, making it easier to quickly understand momentum conditions across multiple market structures.
Main Features
Multi-timeframe Stoch RSI visualization
9 fixed timeframe columns
K and D lines shown inside each column
Gradient background based on oscillator level
Quick visual identification of overbought and oversold areas
20 / 50 / 80 reference levels
Optional numeric K and D values
Compact layout designed for fast market reading
How to Read It
Each column represents a timeframe.
The vertical position of the lines shows where the Stoch RSI currently is:
Near the bottom: oversold / weak momentum area
Around the middle: neutral zone
Near the top: overbought / strong momentum area
The background gradient helps identify the oscillator zone immediately, while the two plotted lines allow you to see the current relationship between K and D.
This is useful when you want to compare short-term and higher-timeframe momentum at a glance.
Typical Use Cases
Scalping confirmation
Multi-timeframe momentum alignment
Spotting overbought / oversold conditions across timeframes
Filtering entries based on higher-timeframe context
Quickly checking whether short-term movement agrees with broader market structure
Notes
This indicator does not generate buy or sell signals by itself.
It is intended as a visual decision-support tool and should be used together with price action, trend analysis, support and resistance, and proper risk management.
Disclaimer
This script is for educational and informational purposes only.
It is not financial advice. Always test any trading approach carefully before using it in live markets. Indicator

Stochastic Resonance Signal [JOAT]Stochastic Resonance Signal
Introduction
Stochastic Resonance Signal is an open-source indicator built on the physical principle of stochastic resonance — the counterintuitive phenomenon where a moderate level of random noise actually enhances the detection of weak periodic signals rather than degrading it. In trading terms: markets with low volatility noise may suppress trend signals, while a calibrated level of volatility noise can help reveal underlying directional structure.
This indicator computes a signal-to-noise score that normalizes a smoothed price derivative against ATR-based noise. The score peaks when a meaningful directional signal is present within a noise environment that is neither too quiet (which produces false flatness) nor too loud (which obscures the signal entirely).
Core Concepts
1. Signal Component
The raw signal is the smoothed rate of change of price — the first derivative of a filtered price series. An EMA is applied to close to produce a noise-reduced price, then the bar-to-bar difference of that EMA serves as the signal. Positive signal indicates upward momentum; negative indicates downward:
float emaPrice = ta.ema(close, i_signalLen)
float rawSignal = emaPrice - emaPrice
float normSig = rawSignal / (ta.stdev(rawSignal, i_normLen) + 0.0001)
The signal is normalized by its own rolling standard deviation, making it dimensionless and comparable across instruments.
2. Noise Component
Noise is defined as ATR normalized by its rolling standard deviation. This separates the volatility component from the directional component. When noise is very low, it contributes little penalty. When noise is very high, it heavily discounts the signal. The optimal noise range produces the highest SR score:
float noisePenalty = ta.stdev(atrVal, i_normLen) / (ta.sma(atrVal, i_normLen) + 0.0001)
float srScore = math.abs(normSig) / (1.0 + noisePenalty)
3. SR Score and Threshold
The final SR score combines signal strength divided by noise penalty. The score is plotted as a histogram and compared against a configurable threshold. When the score exceeds the threshold in the positive signal direction, a bullish event fires. When in the negative direction, a bearish event fires. Both require barstate.isconfirmed.
4. Regime Context
The indicator categorizes the current noise state as Low, Optimal, or High. The Optimal zone — where stochastic resonance theory predicts signal enhancement — is highlighted in the background. Signals fired during the Optimal noise zone are the primary intended use case.
Features
Normalized signal derivative: EMA-smoothed price rate of change, dimensionless
ATR noise penalty: Volatility normalized by its own distribution, not a fixed threshold
SR Score histogram: Visual representation of the signal-to-noise ratio each bar
Threshold crossover signals: Bull and bear signals when SR score exceeds the gate
Noise regime classification: Low, Optimal, and High noise zones labeled
Optimal zone background: Chart shading during the resonance-optimal noise window
Candle coloring: Candles tinted by current SR score direction and magnitude
Dashboard: Current SR score, signal value, noise level, and regime state
Alerts: Configurable bull and bear SR threshold crossing alerts
Input Parameters
Signal Engine:
Signal EMA Length: Smoothing for price derivative calculation (default: 10)
Normalization Length: Rolling window for z-score normalization (default: 50)
Noise Engine:
ATR Period: ATR length for noise estimation (default: 14)
Optimal Noise Low: Lower bound of optimal noise zone (default: 0.3)
Optimal Noise High: Upper bound of optimal noise zone (default: 0.8)
Signal Gate:
SR Score Threshold: Minimum SR score to fire a signal (default: 1.5)
How to Use This Indicator
Step 1: Identify the Noise Regime
Check whether the background shading is active (Optimal zone). Signals fired during optimal noise conditions have the theoretical backing of stochastic resonance theory behind them.
Step 2: Read the SR Score
A rising histogram above the threshold line in positive territory indicates a developing bullish signal. Crossing below the negative threshold indicates a bearish signal.
Step 3: Apply as a Momentum Filter
Use SR score direction to confirm or reject signals from other tools. An SR score rising strongly above its threshold while a support level holds adds conviction to a long setup.
Indicator Limitations
Stochastic resonance as a trading construct is a theoretical analogy, not a proven quantitative edge on its own
The optimal noise zone boundaries are heuristic; the true optimal noise level varies by instrument and timeframe
Normalization requires a minimum lookback before scores stabilize — expect less meaningful output in the first normLen bars
Originality Statement
The application of stochastic resonance theory to price signal detection — computing a signal-to-noise ratio using a normalized price derivative divided by an ATR noise penalty, with an explicit optimal noise zone classification — is an original analytical framing not found in existing published Pine Script indicators. This is not a standard oscillator; it is a physics-inspired signal processing approach adapted to price data.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. The stochastic resonance framework is a conceptual model and does not guarantee profitable signals. Trading involves substantial risk of loss.
-Made with passion by jackofalltrades
Indicator

Stochastic Histogram Regime [Gabremoku]Stochastic Histogram Regime is a refined Stochastic-based momentum oscillator that transforms classic %K / %D logic into a mid-centered histogram regime model with adaptive zones, squeeze detection, and sequential BUY/SELL signaling.
Instead of using the traditional 0–100 Stochastic layout alone, this script recenters the oscillator around its midline and highlights:
momentum expansion and recovery phases
adaptive extreme zones
K/D compression regimes
sequential crossover signals
squeeze-aware signal styling
a compact live dashboard
The Stochastic Oscillator measures where the current close sits relative to its recent price range, and its two core lines — %K and %D — are commonly used to spot momentum shifts, overbought/oversold conditions, and crossover signals.
What it shows
📊 Mid-centered stochastic histogram — instead of plotting Stochastic only in its standard form, the script centers the histogram around the 50 level so bullish and bearish pressure become easier to compare visually.
📈 %K line and ghost %D line — the main momentum line stays visually dominant, while %D acts as a softer confirmation layer.
🎯 Adaptive zones — rather than relying only on static 80/20 thresholds, the script calculates percentile-based extreme zones from recent Stochastic behavior. Traditional Stochastic readings above 80 are often considered overbought and readings below 20 oversold, but adaptive thresholds can better reflect changing market behavior.
🗜️ Combined squeeze regime — the script measures both:
compression around the midline
compression between %K and %D
This creates a composite squeeze state that helps identify low-momentum contraction phases before expansion.
🚦 Sequential BUY/SELL state machine — primary signals are filtered through K/D crossover logic, slope confirmation, and optional extreme-zone requirements.
🔺 Follow-up triangles — repeated same-direction confirmations after the first primary signal can be shown as lighter continuation markers.
🪧 Minimal dashboard — displays state, K/D values, adaptive zone range, slope, and squeeze status.
Core logic
The script is built around the idea that the Stochastic Oscillator is not just an overbought/oversold tool, but a momentum regime detector.
Classic Stochastic compares the latest close to the recent high-low range and is typically interpreted through:
%K and %D crossovers
movement around 80/20 zones
and changes in momentum before price fully reacts
Your script extends that by:
recentering the oscillator around 50
using histogram structure for directional emphasis
adapting extreme zones to recent behavior
and combining crossover quality with slope and squeeze context
This makes it more structured than a standard Stochastic display.
State model
The indicator classifies momentum into five readable states:
Bull Impulse
Bull Recovery
Bear Impulse
Bear Recovery
Neutral
This adds nuance to the usual Stochastic reading because it separates:
strong directional continuation
weaker recovery phases
and non-directional compression
In practice:
Bull Impulse suggests K is above D, above the mid-neutral area, and still rising
Bear Impulse suggests K is below D, below the mid-neutral area, and still falling
recovery states identify improving momentum before full expansion
Signal logic
The script uses a filtered signal engine based on %K / %D crossovers, which are among the most common Stochastic signals.
Primary BUY and SELL signals can be filtered by:
extreme zone location
K slope confirmation
signal mode: Aggressive, Balanced, or Strict
This helps reduce the classic problem of noisy Stochastic crossovers in sideways conditions. Stochastic crossovers are useful, but they generally become more meaningful when combined with trend or momentum context rather than taken in isolation.
How to read it
A practical reading method is:
Use the histogram around the midline to read directional pressure.
Use adaptive zones to identify statistically stretched momentum.
Use %K / %D crossovers for trigger logic.
Use the squeeze state to identify contraction before expansion.
Treat follow-up triangles as continuation confirmation, not as fresh primary entries.
In general:
positive histogram with rising K = improving bullish momentum
negative histogram with falling K = improving bearish momentum
squeeze ON = compressed momentum regime
BUY/SELL labels = primary filtered crossover signals
Features
✅ Mid-centered stochastic histogram
✅ %K and ghost %D structure
✅ Percentile-based adaptive extreme zones
✅ Neutral zone around the 50 midline
✅ Composite squeeze detection
✅ Sequential BUY / SELL state machine
✅ Optional follow-up continuation markers
✅ Overlay and pane signal display options
✅ Minimal live dashboard
✅ Alert conditions for BUY, SELL, and squeeze state
Notes
This indicator is designed to improve the readability of Stochastic momentum structure, especially in transitions between compression, recovery, and impulse phases. Like all Stochastic-based tools, it can produce noisy signals in choppy markets, and overbought/oversold readings should generally be interpreted as momentum context rather than automatic reversal calls.
Author: Gabremoku
Pine Script v6 Indicator

Elite Oscillator ProElite Oscillator Pro is a visual momentum oscillator designed to provide a cleaner reading of overbought, oversold, neutral, and momentum-transition conditions in a separate oscillator pane.
The script can calculate its base oscillator using either Stochastic or RSI logic. The selected oscillator is then processed through a two-step smoothing engine to reduce short-term noise and make momentum transitions easier to read visually.
The goal of this indicator is not to predict future price movement or generate automatic trading instructions. It is intended as a visual analysis tool that helps users observe momentum structure, oscillator regime changes, and transitions around predefined levels.
Main features:
• Dual calculation mode
The user can choose between a Stochastic-based oscillator and an RSI-based oscillator.
• Custom source selection
The selected source is used in the oscillator calculation, allowing the user to adapt the tool to different price inputs.
• Double smoothing engine
The raw oscillator is smoothed twice with configurable lengths. This is designed to make the oscillator less noisy while preserving the main directional movement.
• Configurable levels
The script includes adjustable overbought, oversold, midline, neutral-band, upper-bound, and lower-bound levels.
• Bull and bear pressure gradients
The oscillator area is visually separated around the midline. Positive momentum above the midline and negative momentum below the midline are displayed with separate gradient regions.
• Neutral band
A configurable neutral zone can be displayed between the upper and lower neutral-band levels. This helps identify when momentum is not clearly extended in either direction.
• Signal dots
The script displays optional dots for specific oscillator states:
* Green dots mark overbought conditions.
* Red dots mark oversold conditions.
* Orange dots mark bullish momentum crosses.
* Magenta dots mark neutral-band events or neutral-band zone conditions.
The dot logic can be set to either “Events” or “Zones”.
In Events mode, dots appear only when a condition is newly triggered.
In Zones mode, dots remain visible while the condition is active.
• Alerts
The script includes alert conditions for overbought entry, oversold entry, exits from those zones, bullish momentum crosses, and bearish momentum crosses.
How to use:
1. Choose the calculation mode: Stochastic or RSI.
2. Adjust the oscillator length and smoothing settings to match the symbol and timeframe being analyzed.
3. Use the overbought and oversold levels to identify extended oscillator conditions.
4. Use the midline and neutral band to evaluate whether momentum is directional or balanced.
5. Use the dots as visual markers of oscillator state changes, not as standalone trade entries.
6. Combine this oscillator with price structure, trend context, volume, and risk management before making any trading decision.
Important limitations:
• This script is an indicator, not a strategy.
• It does not place trades.
• It does not manage risk.
• It does not provide financial advice.
• It does not guarantee profitable results.
• Overbought does not automatically mean price must fall.
• Oversold does not automatically mean price must rise.
• Momentum crosses can fail during ranging or volatile markets.
• Users should test settings on their own symbols and timeframes before relying on the visual output.
This indicator is best used as a momentum-context tool, not as a standalone entry or exit system. Indicator

Meridian Stochastic Regime Suite [JOAT]Meridian Stochastic Regime Suite
Introduction
Meridian Stochastic Regime Suite is an open-source adaptive oscillator built for traders who want more context than a standard stochastic line can provide. The script combines a centered stochastic engine, an adaptive response model, and a regime profile so the oscillator changes character as the market shifts between trend, compression, expansion, and balance.
The problem Meridian solves is signal quality. Standard oscillators often look clean, but they do not explain whether momentum is occurring inside a compressed market, an expanding breakout phase, or a stable trend. Meridian adds that context directly into the oscillator architecture so the same reading can be interpreted differently depending on the active regime profile.
Core Concepts
1. Centered stochastic architecture
Price is pre-smoothed first, then converted into a stochastic reading that is centered around 50 so directional pressure is easy to interpret:
smoothHigh = ta.ema(high, priceSmoothLen)
smoothLow = ta.ema(low, priceSmoothLen)
smoothClose = ta.ema(close, priceSmoothLen)
rawStoch = 100.0 * (smoothClose - ta.lowest(smoothLow, stochLen)) / stochRange
2. Adaptive response engine
The main oscillator does not use static smoothing alone. Its response speed and gain expand or contract based on the regime profile:
gainBias = gainBase + trendScore * 0.38 + expansionScore * 0.18 - compressionScore * 0.12
speedBias = responseBase + trendScore * 0.08 + expansionScore * 0.04
adaptiveOsc := adaptiveOsc + speedBias * (adaptiveSeed - adaptiveOsc )
This helps the oscillator respond differently in directional and compressed conditions.
3. Embedded regime scoring
Meridian computes four internal state scores:
Trend
Compression
Expansion
Balance
Those scores are derived from ATR behavior, path efficiency, and slope strength, then normalized into a regime profile shown in the dashboard.
4. Spread and signal layer
The script compares the adaptive oscillator to a slower signal line and visualizes the spread around the neutral axis. This gives a direct view of acceleration versus drag.
5. Institutional oscillator panel
The panel uses restrained zones, layered fills, and a top-right dashboard instead of loud markers. The result stays readable while still carrying multiple analytical dimensions.
Features
Centered stochastic core: Keeps the oscillator readable around a neutral midpoint
Adaptive response model: Gain and speed shift with the internal regime profile
Four-state regime map: Trend, Compression, Expansion, and Balance
Fast line and signal line: Shows momentum acceleration versus stabilization
Spread shading: Highlights when the adaptive oscillator is separating from the signal line
Regime dashboard: Displays state, confidence, adaptive reading, signal reading, and regime profile shares
Confirmed-bar flips: Internal state transitions are tracked on closed bars
Non-repainting design: Uses only current-timeframe data and no future references
Input Parameters
Stochastic Core:
Price Pre-Smoothing
Stochastic Length
Fast Smoothing
Adaptive Signal Smoothing
Regime Filter:
Regime Window
ATR Window
Base Oscillator Gain
Base Response Speed
Visual Output:
Show Adaptive Zones
Show Centered Fast Line
How to Use This Indicator
Step 1: Start with the regime
Read the dashboard first. Trend and Expansion regimes support directional interpretation. Compression and Balance call for more caution.
Step 2: Watch adaptive versus signal spread
When the adaptive line separates cleanly from the signal line, momentum is strengthening. When the spread compresses, the move is losing urgency.
Step 3: Use the centered fast line as timing context
The fast line helps show whether short-term momentum is leading or lagging the adaptive engine.
Step 4: Avoid isolated readings
Meridian is strongest when used alongside a structure or value-based tool rather than as a standalone trade trigger.
Indicator Limitations
Like all oscillators, Meridian can remain elevated or depressed during strong directional trends
Compression states may delay re-acceleration readings until volatility expands again
The regime profile is descriptive, not predictive
Originality Statement
Meridian Stochastic Regime Suite is original in how it embeds a four-state regime profile directly into the adaptive behavior of a centered stochastic engine. It is published because:
The oscillator response changes with internal market-state measurements instead of using only fixed smoothing
The script surfaces trend, compression, expansion, and balance as percentages inside the same panel
The panel and dashboard design turn regime context into an interpretable momentum framework rather than a generic stochastic clone
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to trade. Oscillator readings can remain extreme for extended periods, and regime classifications can shift as conditions evolve. Always use independent judgment and proper risk management.
Indicator

Indicator

Torque Momentum Oscillator [JOAT]Torque Momentum Oscillator
Introduction
The Torque Momentum Oscillator is a sub-chart composite momentum engine that synthesizes four independent momentum perspectives into a single normalized 0–100 oscillator. Rather than relying on any one momentum calculation, it blends a stochastic-range oscillator, two RSI variants at different cycle lengths, and a Bollinger Band position reading into a weighted composite score — then colors the histogram on a gradient that instantly communicates whether momentum is building or exhausting.
The philosophy behind TMO is that any single momentum indicator can be fooled by choppy markets or unusual price action. When four different momentum frameworks all agree, the composite reading carries genuine conviction. When they diverge, the composite score gravitates toward the midline — a built-in disagreement signal that keeps you from over-committing to a directional bias.
Core Concepts
Component 1 — RSV (Raw Stochastic Value)
The RSV is a stochastic-style reading of where close sits within the highest high and lowest low range over the lookback period, smoothed with an SMA to reduce noise:
float hiRange = ta.highest(high, rsvPeriod)
float loRange = ta.lowest(low, rsvPeriod)
float rsvRaw = safeDiv(close - loRange, hiRange - loRange, 0.5) * 100.0
float rsvLine = ta.sma(rsvRaw, rsvSmooth)
The RSV line is also plotted independently as a fast overlay on the oscillator, giving it a secondary use as a crossover signal generator. When RSV crosses above 20, an Opportunity label fires. When it crosses back below 80, a Risk label fires.
Component 2 — RSI Fast
The standard Wilder RSI at the fast period (default 14) captures short-cycle momentum velocity. It contributes a responsive directional reading without being so short that it becomes noise.
Component 3 — RSI Slow (Blackcat-Style)
The slow RSI uses a blackcat-inspired manual construction: SMA of gains divided by SMA of absolute changes, rather than the standard Wilder smoothing:
float rsiSlowVal = safeDiv(
nz(ta.sma(math.max(close - prevClose, 0.0), rsiSlow), 50.0),
nz(ta.sma(math.abs(close - prevClose), rsiSlow), 1.0),
0.5) * 100.0
This produces a longer-cycle momentum trend bias that is less sensitive to individual candle extremes, creating a smoother counterpart to the fast RSI.
Component 4 — Normalized BB Position
Bollinger Band position tells you where price sits in its statistical envelope:
= ta.bb(close, bbLen, bbMult)
float bbPos = math.max(0.0, math.min(100.0,
safeDiv(close - bbLower, bbUpper - bbLower, 0.5) * 100.0))
At 100 price is at the upper band. At 0 it is at the lower band. At 50 it is exactly at the basis. This adds a volatility-relative momentum reading to the composite.
Weighted Composite Score
All four components are blended using user-configurable weights that are automatically normalized to sum to 1.0:
float wSum = wRsv + wRsiF + wRsiS + wBB
float composite = (rsvLine * (wRsv / wSum) +
rsiFastVal * (wRsiF / wSum) +
rsiSlowVal * (wRsiS / wSum) +
bbPos * (wBB / wSum))
Default weights: RSV 35%, RSI Fast 25%, RSI Slow 25%, BB Position 15%.
Gradient Histogram Coloring
The histogram is colored on a gradient that transitions from full bear red near 0 to transparent near 50, then from transparent bull green near 50 to full bull green near 100. This produces an immediate visual sense of momentum intensity — a faint histogram near midline means indecision, a saturated histogram near the extremes means conviction.
Features
Four-component weighted composite oscillator: RSV + RSI Fast + RSI Slow + BB Position
RSV component double duty: used in composite and plotted as independent fast line
Gradient histogram — color intensity scales with momentum conviction
Overbought (default 75) and oversold (default 25) zones with gradient fills
RSV Opportunity label when RSV crosses above 20 — potential upswing signal
RSV Risk label when RSV crosses below 80 — potential downswing signal
Per-component weight controls — customize the blend to your trading style
Midline reference at 50 and dashed OB/OS lines
Dashboard showing composite, RSV, RSI Fast, RSI Slow, BB position, and last signal
Auto dark/light theme detection
Alerts for Opportunity, Risk, entering Overbought, and entering Oversold
Webhook JSON alert format for automation
Watermark
Input Parameters
Oscillator Settings
RSV Period — lookback for the stochastic range calculation (default 20)
RSV Smoothing — SMA length applied to raw RSV before use (default 3)
RSI Fast Period — short-cycle RSI length (default 14)
RSI Slow Period — long-cycle blackcat-style RSI length (default 24)
BB Period — Bollinger Band lookback (default 20)
BB Multiplier — standard deviation multiplier for BB width (default 2.0)
Composite Weights
RSV Weight — relative weight of the stochastic component (default 0.35)
RSI Fast Weight — relative weight of the fast RSI (default 0.25)
RSI Slow Weight — relative weight of the slow RSI (default 0.25)
BB Position Weight — relative weight of the BB position reading (default 0.15)
Visual Settings
Overbought Level — upper threshold for OB zone and gradient fill (default 75)
Oversold Level — lower threshold for OS zone and gradient fill (default 25)
Show RSV Signals — toggles Opportunity and Risk label markers
Theme — Auto, Dark, or Light
Show Dashboard — compact panel with live component readings
Dashboard Position — four corner options
Show Watermark
Colors
Bull / Opportunity — color for bullish histogram bars and signal labels
Bear / Risk — color for bearish histogram bars and signal labels
RSV Line — color for the fast RSV overlay line
RSI Fast — color for the RSI Fast overlay line
How to Use
Add TMO to your chart below price as a separate sub-pane oscillator.
Watch the composite histogram for directional bias: readings above 50 favor longs, below 50 favor shorts.
Use the OB zone (above 75) and OS zone (below 25) as caution areas — not automatic reversal signals, but places where momentum is stretched and a mean reversion or consolidation becomes more likely.
Use Opportunity labels (RSV crossing above 20) as early warning that the stochastic component is turning up from deeply oversold — look for price confirmation before acting.
Use Risk labels (RSV crossing below 80) as early warning of a potential momentum rollover from overbought.
Check the dashboard to see exactly which components are driving the composite reading. If RSV and RSI Fast are both high but BB Position is low, the composite may not tell the full story.
Adjust the component weights in settings to emphasize the momentum style that best suits your market. For crypto, increasing RSV weight can be effective. For equities, RSI Slow weight can provide a smoother signal.
Indicator Limitations
The composite is a weighted average and can only be as accurate as the components that feed it. In strongly trending markets with low volatility, RSV and BB Position can both hover near extremes for extended periods — the composite will look overbought even when trend continuation is the correct read.
RSV Opportunity and Risk signals are generated by a single component (RSV) and should not be used in isolation as trade entries. They are high-probability turning-point flags that require price action confirmation.
Warmup bars are required before the oscillator becomes reliable. The indicator suppresses output until sufficient history is available.
This is a momentum indicator, not a trend direction indicator. It works best in liquid, active markets and may generate false signals during low-volume chop.
Originality Statement
The Torque Momentum Oscillator is an original Pine Script v6 publication. The architecture of combining RSV (stochastic-range), dual RSI cycles at different periodicities, and normalized Bollinger Band position into a single dynamically-weighted composite is an original design. The blackcat-style SMA-based RSI slow construction is an adapted technique included for its distinct noise characteristics, with full attribution. The gradient histogram coloring, RSV crossover signal system, and dashboard layout are original implementations built specifically for this publication.
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Momentum readings are not predictions of future price direction. Always use proper risk management and never risk more than you can afford to lose.
-Made with passion by jackofalltrades
Indicator

Indicator

AG Pro Stochastic Exhaustion Map [AGPro Series]AG Pro Stochastic Exhaustion Map
OVERVIEW
AG Pro Stochastic Exhaustion Map is not designed as a classic overbought / oversold reversal script.
This tool uses a stochastic framework to map trend maturity, extension pressure, momentum fatigue, and reset behavior. The objective is not to label every extreme reading as a turning point. Instead, the script is built to show whether a move still looks fresh, whether it is becoming stretched, whether exhaustion risk is increasing, or whether the market is moving through a reset phase after an extended run.
That distinction is important. In strong trends, stochastic values can remain elevated or depressed for long periods. This script does not assume that an extreme reading automatically means the move should reverse. It treats those conditions as contextual information and then evaluates whether the move still has healthy drive, whether it is becoming late-stage, or whether the structure is normalizing.
The result is a state-based reading model rather than a basic signal-only oscillator. The emphasis is on chart context, trend maturity, and fatigue mapping.
WHAT THIS SCRIPT DOES
This script organizes stochastic behavior into a compact state model built around five practical conditions:
• Build-Up
• Drive
• Stretch
• Exhaustion Risk
• Reset
These states are not intended to predict exact tops or bottoms. They are designed to help the user evaluate where the current move may sit within its broader development cycle.
In practical terms, the script focuses on questions such as:
• Is the move still behaving like an active and healthy expansion?
• Has the move become stretched?
• Is momentum support beginning to weaken?
• Has the market started to normalize after an extended push?
• Is current behavior better described as continuation pressure or late-stage fatigue?
That is the core purpose of the indicator.
UNIQUE EDGE
The unique edge of this script is that it does not reduce stochastic analysis to simple line crosses or fixed threshold reactions.
Instead of treating the oscillator as a binary overbought / oversold tool, the script uses it as a context engine for reading trend fatigue. The internal logic emphasizes four broad components:
1) Persistence in extreme zones
How long the oscillator remains in an extended area matters. Persistence alone is not treated as a reversal condition, but prolonged persistence can indicate that a move is progressing into a more mature phase.
2) Momentum decay
A move can remain extended while its internal strength starts to weaken. The script evaluates whether the oscillator is still advancing with conviction or whether follow-through is becoming less efficient.
3) Push efficiency
Price can continue expanding while oscillator quality becomes less supportive. That mismatch can be relevant when assessing whether the move still looks healthy or whether it is becoming increasingly vulnerable to a reset.
4) Reset behavior
After extended conditions, the market often goes through a normalization phase. The script attempts to identify when that process is occurring so the user can distinguish late-move fatigue from post-extension reset behavior.
Together, these components form a stochastic-based exhaustion map instead of a traditional threshold trigger script.
HOW IT WORKS
The script begins with a smoothed stochastic structure and then builds a higher-level state model on top of it.
The model evaluates:
• extreme-zone persistence
• directional decay in stochastic slope
• push-efficiency deterioration
• reset-zone normalization
Those components are blended into an Exhaustion Score, which is then interpreted through the state engine.
The state engine classifies the current condition as one of the following:
Build-Up
An early or re-engaging phase where activity is present but extension pressure is still relatively modest.
Drive
An active expansion phase where the move still appears supported and not yet meaningfully fatigued.
Stretch
A more mature condition where extension is becoming more visible and the move should be read with greater caution.
Exhaustion Risk
A late-stage condition where extension and internal weakening combine strongly enough to raise fatigue risk.
Reset
A normalization phase following recent extreme behavior, where the market is no longer best described as active drive or rising exhaustion.
This is why the script should be read as a contextual map rather than a standalone trade-decision engine.
SUMMARY PANEL
The panel is designed to keep the reading compact and practical. It includes:
• current state
• directional bias
• exhaustion score
• persistence profile
• decay profile
• reset quality
• context label
The panel is not intended to replace chart reading. It is there to summarize the current exhaustion model in a clean format.
HOW TO INTERPRET THE STATES
Build-Up
Early participation or reactivation. The move is not yet heavily stretched.
Drive
The move appears active and supported. This does not mean it must continue. It simply means the exhaustion model is not yet describing the condition as late-stage.
Stretch
The move is becoming more mature. This is a cautionary condition rather than an automatic reversal condition.
Exhaustion Risk
The model is detecting stronger signs of extension plus weakening support. This still does not guarantee reversal. It indicates that late-stage fatigue risk is becoming more relevant.
Reset
The market is moving away from an extended condition and toward normalization. This state can be useful when separating active fatigue from post-extension cooling.
ALERTS
Alerts are state-based and intentionally descriptive. They are designed to notify the user when the model shifts into meaningful phases such as Build-Up, Stretch, Exhaustion Risk, or Reset.
These alerts should be interpreted as contextual transitions rather than direct instructions.
HOW THIS DIFFERS FROM AG PRO RSI PRESSURE MAP
This difference should be understood very clearly.
AG Pro RSI Pressure Map is centered on pressure.
AG Pro Stochastic Exhaustion Map is centered on fatigue.
RSI Pressure Map focuses on whether directional pressure is building, holding, or weakening. Its primary reading axis is pressure intensity and directional dominance.
Stochastic Exhaustion Map focuses on whether a move is fresh, extended, maturing, fatigued, or resetting. Its primary reading axis is trend maturity and exhaustion state.
Put simply:
• RSI Pressure Map asks: which side is applying pressure?
• Stochastic Exhaustion Map asks: how mature or fatigued is the move?
That is not a small wording difference. It changes the analytical role of the script.
A user looking for pressure development, directional participation, or pressure persistence would generally be closer to the RSI Pressure Map framework.
A user looking for extension maturity, late-stage risk, and reset behavior would generally be closer to the Stochastic Exhaustion Map framework.
So even though both tools operate in the broader momentum / context space, they are not the same type of instrument and they are not trying to answer the same question.
HOW THIS DIFFERS FROM CLASSIC STOCHASTIC SCRIPTS
This script is not built as a standard stochastic crossover tool.
It is not built as a basic 80 / 20 reversal script.
It is not built as a simple divergence detector.
Many conventional stochastic scripts are primarily concerned with:
• K / D crossovers
• overbought and oversold threshold events
• simple turn signals from extreme zones
This script takes a different route.
Here, an extreme reading is not automatically treated as a reversal signal.
A crossover is not the main event.
The main objective is to describe the condition of the move itself: active, stretched, fatigued, or resetting.
That distinction is fundamental.
HOW THIS DIFFERS FROM AG PRO STRUCTURAL MOMENTUM OSCILLATOR
Structural Momentum Oscillator is more directly concerned with momentum structure and directional behavior inside the move.
Stochastic Exhaustion Map is more concerned with where the move stands in its lifecycle.
In simplified terms:
• Structural Momentum Oscillator = structure and momentum character
• Stochastic Exhaustion Map = maturity and exhaustion character
The overlap is limited because the purpose is different.
HOW THIS DIFFERS FROM AG PRO MACD DRIFT FILTER
MACD Drift Filter is centered on drift quality and directional continuation behavior through a MACD-derived lens.
Stochastic Exhaustion Map is not trying to grade drift quality in that way. Its emphasis is on extension maturity, internal fatigue, and reset conditions within a stochastic state framework.
So the user should not think of this script as a MACD variant with a different formula. The conceptual job is different.
HOW THIS DIFFERS FROM GENERIC MEAN REVERSION TOOLS
This script does not attempt to force a mean reversion call every time the market becomes extended.
It explicitly allows for the reality that strong moves can remain extended for longer than expected. The goal is to map the transition from healthy extension to increasing fatigue risk, not to declare that every extreme must immediately reverse.
That design choice is central to the script.
LIMITATIONS AND TRANSPARENCY
This script has important limitations.
First, extreme stochastic conditions can persist during strong trends. For that reason, an elevated reading should not be interpreted as an automatic turning point.
Second, exhaustion risk is not the same as reversal confirmation. A market can look stretched and still continue.
Third, reset behavior should be read as normalization context, not as a guaranteed reload condition.
Fourth, no single oscillator should be used in isolation. This script is intended to complement market structure, trend context, support / resistance analysis, volatility conditions, and the user's broader workflow.
The model is deterministic, but deterministic does not mean certain. It means the same conditions will produce the same classification logic.
RISK DISCLOSURE
This indicator is a chart-analysis and contextual state-mapping tool.
It is not a prediction engine.
It is not financial advice.
It should not be used as the sole basis for entries, exits, or risk decisions. Indicator

Oscillators with DivergencesIf you do enjoy this indicator, check out my Ultimate Indicator! It is another collection of indicators all into one but that is for price chart indicators like Donchian, Keltner, EMAs, VWAP, Super Trend, etc.
This is a culmination of hundreds of hours (maybe even a thousand, honestly) of work spent working with dozens of indicators and now taking all of the ones I like the most and combining them into one so you can easily switch between them. On top of that, I have my own custom divergence code that can look back up to five pivots!
There's the following indicators all wrapped into this one:
MACD
RSI
CCI
Volume-Weighted MACD
MFI
Stochastic
Stochastic RSI
I could not get a working method of looking back several pivots from other people's code so I took a 1-pivot lookback method and copied out several times and made necessary changes to work properly. It will also draw an "early divergence" the moment it's happening rather than waiting the normal 5 candles to show. Once the 5 candles have passed, it will pick the furthest back divergence as the one to stay.
Let's say you have the divergences set to 3 pivot points. If a divergence happens that goes back 1 pivot point, but later a 3 pivot divergence overlaps it, the 1 pivot will get removed after the 3 pivot early divergence is confirmed after its 5 candles have passed. Just put it on the chart and you'll see, it sounds crazy to explain.
I've added a bunch of tooltips to explain each setting. Please read them if you have questions. I've also added notes into my code if you do choose to use it for your own purposes or make changes. I wish you luck haha, it's a bit of a mess. Some things were commented out but elft in there just beacuse I never know when I want to re-enable it or just see what the original code was. Indicator

Indicator

Indicator

Harmonic Periodicity Matrix [Pineify]Harmonic Periodicity Matrix — Multi-Cycle Stochastic Oscillator with Momentum Ribbon & Adaptive Signals
The Harmonic Periodicity Matrix is an advanced cycle-detection oscillator that identifies market rhythm, momentum shifts, and high-probability reversal zones by harmonically combining three stochastic waves at different periodicities. Rather than relying on a single fixed lookback window — which inevitably misses cycles of differing durations — this indicator synthesizes a short-cycle , a primary-cycle , and a long-cycle stochastic into a single composite wave. The result is a smoother, more robust picture of where the market currently sits within its natural oscillation pattern.
Key Features
Three harmonically spaced stochastic cycles fused into one composite wave
Weighted Moving Average (WMA) smoothing to reduce noise without excessive lag
EMA-based signal line that generates precise momentum-crossover triggers
Dynamic gradient coloring that visually encodes cycle strength and direction
Momentum Ribbon fill between the cycle wave and signal line for at-a-glance bias confirmation
Overbought / Oversold reference zones with subtle background shading
Filtered Buy and Sell signals that fire only when reversals originate from extreme cycle territory
How It Works
At its core, the indicator computes three stochastic oscillators (%K) across three harmonically related lengths derived from a user-defined Primary Cycle Length :
Short cycle — half the primary length ( cycleLen / 2 ), capturing fast intraday or shorter-term oscillations.
Primary cycle — the user-defined length ( cycleLen ), representing the dominant market rhythm.
Long cycle — 1.5× the primary length ( cycleLen × 1.5 ), anchoring the broader trend context.
These three stochastic readings are averaged into a single composite cycle and then smoothed with a Weighted Moving Average (WMA) over the user-defined Smoothing Factor . Subtracting 50 centers the result around zero (range: −50 to +50), making overbought and oversold conditions immediately intuitive.
A Signal Line — an EMA calculated over twice the smoothing period — acts as a lagging reference. Crossovers between the composite wave and the signal line mark momentum inflection points.
Trading Ideas and Insights
Zero-line crosses — When the composite wave crosses above 0, market momentum is transitioning bullish; below 0 signals bearish transition.
Overbought / Oversold extremes — Readings above +25 indicate potential exhaustion; readings below −25 indicate potential recovery opportunity.
Signal crossovers from extremes — The highest-conviction signals occur when the wave crosses the signal line while already in oversold (< −15, Buy) or overbought (> +15, Sell) territory.
Momentum Ribbon color — A green ribbon confirms bullish momentum continuation; a red ribbon warns of bearish pressure even if price is still rising.
How Multiple Indicators Work Together
The power of the Harmonic Periodicity Matrix comes from the deliberate combination of three stochastic oscillators and two moving average types:
The three stochastics represent different frequency bands of market activity — fast, medium, and slow. Averaging them suppresses random noise that would appear in any single stochastic while preserving genuine cyclical structure that repeats across all three timeframes simultaneously.
The WMA smoothing is applied to the averaged cycle rather than to each individual stochastic. WMA front-weights recent data, keeping the smoothed line more responsive than a Simple Moving Average while avoiding the excessive lag of longer EMAs — the ideal balance for a cycle oscillator.
The EMA signal line is computed over a longer period (2× the smoothing factor), intentionally lagging behind the main wave. This lag creates meaningful crossover events: when the faster composite wave crosses the slower signal line, it indicates a genuine shift in momentum rather than a transient fluctuation.
The gradient coloring system encodes amplitude into color, providing an instant visual read of cycle intensity that raw numbers cannot convey. The background zone shading reinforces awareness of extreme readings without cluttering the visual space.
Together, these components form a self-contained cycle analysis system: the three stochastics define the oscillation, the WMA refines it, the EMA signal line contextualizes momentum, and the visual layer communicates everything instantly.
Unique Aspects
Harmonic period spacing — Using 0.5×, 1×, and 1.5× ratios is inspired by harmonic analysis principles, where related frequencies reinforce true cyclical signals and cancel spurious noise.
Amplitude-coded gradient — Color intensity scales with distance from zero (0→40 bullish, −40→0 bearish), making it easy to distinguish a mild rebound from a powerful trend.
Filtered signals — Buy signals require the crossover to occur below −15; Sell signals require it above +15. This prevents signal generation in neutral mid-range territory where momentum reversals are statistically less reliable.
Zero-centered display — Centering around 0 (rather than displaying 0–100) aligns naturally with how traders think about bullish vs. bearish bias.
How to Use
Add the indicator to any chart and timeframe. It plots in a separate panel below the price chart.
Watch for green circles (Buy signals) — these appear when the cycle wave crosses up through the signal line from oversold territory (below −15).
Watch for red circles (Sell signals) — these appear when the cycle wave crosses down through the signal line from overbought territory (above +15).
Use the Momentum Ribbon fill color to confirm trend direction before entering trades.
Pay attention to the overbought (+25) and oversold (−25) zones — readings beyond these thresholds suggest cycle exhaustion and potential reversal.
Combine with price action or volume analysis for additional confirmation before executing trades.
Customization
Primary Cycle Length (default: 20) — Increase for longer-term swing cycle detection; decrease for faster, shorter-term cycle tracking.
Smoothing Factor (default: 6) — Higher values produce a smoother wave with more lag; lower values are more reactive but noisier.
Bullish Wave color — Default green (#089981); customizable.
Bearish Wave color — Default red (#F23645); customizable.
Equilibrium color — Default gray (#787b86); customizable.
Conclusion
The Harmonic Periodicity Matrix offers a methodologically grounded approach to market cycle analysis by combining multi-frequency stochastic decomposition, adaptive smoothing, and momentum-crossover detection into a single, visually intuitive oscillator. It is designed for traders who want more than a standard stochastic — those who seek to understand the rhythm of the market across multiple cycle lengths simultaneously. Whether you are swing trading, trend following, or timing entries within a larger move, this indicator provides a structured, repeatable framework for identifying when momentum is genuinely shifting versus when the market is simply oscillating in neutral territory. Indicator

Indicator

Indicator

Triple EMA + Stochastic/ADX# Triple EMA + Stochastic/ADX Breakout Indicator
A professional TradingView indicator designed for trend-following and momentum breakout trading. This system uses a hierarchical confirmation process to ensure high-probability entries and robust trend maintenance.
## 🚀 Core Trading Logic: "The Setup Cycle"
This indicator operates on a **Cycle-Based Logic** rather than simple crossovers. A trade cycle is defined as:
1. **The Setup (Priming)**: A Stochastic crossover (K > D for Long, D > K for Short) initiates a "Setup Mode." This is marked by a small dot (Blue for Long, Orange for Short).
2. **The Confirmation (Trend)**: The systems checks for hierarchical EMA alignment (Fast > Medium > Slow for Longs).
3. **The Trigger (Breakout)**: Once the Setup is active and EMAs are aligned, every **Price Breakout** above the previous high (X-period) triggers a continuous **BUY/SELL mark**.
4. **The Exit (Take Profit/Stop)**: The cycle and trade only end when the Fast EMA crosses back over the Medium EMA (EMA 9/21 crossover).
---
## 🛠 Features
### 1. Triple EMA System
* **Hierarchical Alignment**: Requires Fast > Medium > Slow (9, 21, 50 by default) for a confirmed trend direction.
* **Dynamic Trend Background**: Chart background changes color when a full EMA trend is established.
### 2. Dual Filter System (Stochastic & ADX)
* **Stochastic Setup**: Uses smoothed %K and %D to identify the start of momentum cycles.
* **ADX Filter**: Provides a trend-strength baseline. Default threshold is set to 20 to filter out choppy markets.
### 3. Price Breakout Confirmation
* Requires price to break above/below the previous High/Low of the last X bars (default 10).
* Allows for **continuous entries** within a single trend cycle.
### 4. Robust Exit Strategy
* **EMA Crossover Exit**: The primary exit method. Triggers an "EXIT" flag when the trend momentum shifts.
* **ATR Trailing Stop**: A secondary volatility-based stop that moves with the price. Can be set as the absolute exit or used for visual reference.
### 5. Mean Reversion Mode (Optional)
* Identifies overextended price action (percent deviation from EMA2).
* Signals potential "bounce" or "rejection" trades against the trend.
---
## 📊 Dashboard & Visuals
* **🟢 BUY / 🔴 SELL**: Trend continuation breakout signals.
* **🟠 EXIT / 🟣 EXIT**: Trend reversal/exit signals.
* **🔵/🟠 Small Dots**: Setup priming moments.
* **Real-time Dashboard**: Displays current Setup Status, EMA Alignment, Breakout status, ADX strength, and calculated Stop levels.
---
## ⚙️ How to Customize
| Parameter | Recommended Use |
| :--- | :--- |
| **Breakout Lookback** | Lower (3-5) for aggressive scalping, Higher (10-20) for conservative trends. |
| **Filter Mode** | Choose "Stochastic" for momentum or "ADX" for trend strength preference. |
| **ATR Multiplier** | Reduce (1.5) for tighter stops, Increase (3.0) for wider trend following. |
| **Exit ONLY on EMA** | Enable to stay in trades longer; Disable to exit immediately on ATR stop hits. |
---
## 📥 Installation
1. Open your **Pine Editor** in TradingView.
2. Create a new "Indicator."
3. Copy the code from `Triple_EMA_Stochastic_ADX.pine`.
4. Click **Save** and **Add to Chart**.
---
*Developed for Dhan/MCX/Futures and general Asset Trading.*
Indicator

Smart Signals [Vdubus]Smart Signals
Concept & Philosophy
Smart Signals is a "Regime-Filtered" oscillator designed to solve the biggest problem with standard indicators: Counter-trend noise.
Most oscillators (like Stochastic or RSI) are "dumb" to market context—they will signal "Sell" continuously during a strong uptrend simply because the price is high. Smart Signals fixes this by first determining the Market Regime (Bullish or Bearish) and then strictly filtering out any signal that contradicts that trend.
It creates a "Tiered" trading system that separates standard trend-following entries from high-probability "Sniper" entries (Hidden Divergence), all presented in a clean, color-blind-friendly visual interface.
Core Functions
1. The "Sheriff" (Trend Filter)
At the heart of the indicator is a heavy, modified Hull Moving Average (HMA 200) that acts as the trend baseline.
Bullish Regime: When the baseline is sloping UP, the indicator enters "Buy Only" mode. All Sell signals are mathematically deleted.
Bearish Regime: When the baseline is sloping DOWN, the indicator enters "Sell Only" mode. All Buy signals are mathematically deleted.
The Math: It uses a custom difference-weighted formula (wmaHalf = Length / 1) to create a stable, chop-resistant trend anchor.
2. Dual-Signal Engine
The indicator scans for two distinct types of entries simultaneously:
♦ Standard Signals (Blue/Red Diamonds):
Logic: A classic Stochastic pullback (Cross 20/80) aligned with the trend.
Use Case: These are frequent "Bread and Butter" trend entries. They are excellent for scaling into a position or adding to a winner as the trend continues.
Location: Plotted at the top (Sell) and bottom (Buy) edges of the panel.
+ Sniper Signals (Gold Crosses):
Logic: Hidden Divergence. The script detects when Price holds structure (Higher Low) while Momentum resets (Lower Low). This is a "Slingshot" setup.
Use Case: These are rare, high-conviction entries. They often mark the end of a complex correction and the resumption of the main trend.
Location: Plotted on the Zero Line to indicate structural strength.
3. Smart Momentum Histogram
The histogram visualizes the "Energy" of the move (MACD 21, 34, 7), but with a twist. It is color-coded to the signal priority:
Gold Bars: A Sniper (Divergence) setup is active.
Solid Blue/Red Bars: A Standard Signal is active.
Faded Blue/Red Bars: The trend is active, but momentum is resetting (waiting mode).
Gray Bars: Counter-trend noise (Ignore).
How to Trade It
Check the "Road": Look at the general color of the histogram columns.
Blue Columns: Look for Longs.
Red Columns: Look for Shorts.
The "Sniper" Entry: Wait for a Gold Cross (+) on the zero line. This is your primary signal to enter a trade with normal risk.
The "Pyramid" Entry: If the trend continues and you see Blue/Red Diamonds (♦) appear at the edges, these are safe places to add to your position.
The Exit: Since this is a trend-following tool, exit when the histogram color flips (e.g., from Blue to Red/Gray), or use your own support/resistance targets.
Alerts Configuration
The indicator comes with a full suite of alerts for automation:
Gold Buy / Gold Sell: Notifies you only for the high-probability Hidden Divergence setups.
Standard Buy / Standard Sell: Notifies you for every trend pullback.
ANY BUY / ANY SELL: A combo alert that triggers on either signal type (useful for simplifying your alert limits).
Accessibility
Color Blind Friendly: The default palette uses High-Contrast Blue (#2962FF) and Soft Red (#FF5252) instead of standard Green/Red, ensuring visibility for all users.
Zero Clutter: No text labels or confusing lines. Just clear, distinct shapes (Diamonds and Crosses) at fixed locations. Indicator

Stochastic MAs+ (K Logit Bands)Below is a ready-to-paste **English TradingView publish description** that is detailed enough to satisfy the “Originality & usefulness” and “Description” house-rule expectations. It explains **what is original**, **why the components are combined**, **how they work together**, and **how to use it**, including practical presets and cautions.
---
## Title
**Stochastic MAs+ (K Logit Bands) — Extreme-Zone Reversion with Adaptive Percentile Bands**
## Overview
This script is a **Stochastic-based extreme-zone tool** designed for traders who want signals that occur **near statistically-defined extremes**, while reducing noise and overtrading.
It combines three ideas into one coherent workflow:
1. **Stochastic %K/%D with selectable smoothing MAs** (EMA/ZEMA/SMA/KAMA)
2. **Adaptive Logit Percentile Bands** computed **on %K** (not price) to define “extreme” zones dynamically
3. A **two-step signal workflow** (Touch → Re-entry → First K/D Cross) with **cooldown + invalidation rules** to suppress repeated signals in choppy markets
This is not a “mashup for convenience.” The logit-percentile bands and the signal state-machine are explicitly built to **solve a common Stochastic problem**: fixed 20/80 levels are often too generic, and raw K/D crosses can fire repeatedly in ranges. The components here work together to make Stochastic extremes more **context-aware** and signals more **selective**.
---
## What makes it original / useful
### 1) Dynamic extremes based on the oscillator’s own distribution
Instead of using fixed 20/80, the script builds **percentile-based bands on transformed %K values**:
* **Logit transform** is used to expand sensitivity near 0 and 100 (where Stochastic tends to compress).
* A rolling buffer stores recent transformed values.
* **Percentiles** (e.g., 15% / 85%) define adaptive low/high bands that respond to changing volatility regimes.
Result: “Extreme” zones are **relative to recent market behavior**, which is often more practical than static thresholds.
### 2) A structured signal process to reduce overtrading
Classic Stochastic crossovers can spam signals. This script uses a **state-based trigger**:
**Long logic**
1. %K drops below the **adaptive low band** (touch/arm)
2. %K re-enters above the low band (re-entry)
3. The first bullish crossover occurs (K crosses above D) while K remains below the mid-band
**Short logic** is symmetrical.
Then it adds:
* **Cooldown**: prevents clustered entries during noisy periods
* **Max wait**: invalidates old setups if confirmation takes too long
* **Mid-band invalidation**: if K moves too far (crosses mid), the setup is considered late and discarded
This turns Stochastic into a **controlled mean-reversion trigger** rather than an always-on crossover machine.
---
## How it works (plain-language)
### A) Stochastic with selectable smoothing (MAK/MAD)
* `%K` is computed from the standard Stochastic formula, then smoothed with your chosen MA.
* `%D` is computed by smoothing `%K` with a chosen MA.
**MA options**
* **EMA**: baseline responsive smoothing
* **ZEMA**: reduced lag (faster reactions)
* **SMA**: heavier smoothing (less noise)
* **KAMA**: adaptive smoothing (reacts faster when price moves, slower in noise)
### B) K-based Logit Percentile Bands
The script builds bands from **%K**, not from price:
* Convert K into logit space → store in rolling buffer
* Compute low/high percentiles in logit space
* Convert back to 0–100 space with logistic function
* Produce: **kLo / kHi / kMid**
This keeps the bands stable and meaningful even when volatility changes.
### C) Signal state-machine
* **Touch**: K enters extreme zone
* **Re-entry**: K exits the extreme zone
* **Trigger**: first K/D cross after re-entry, while still in the “early” half of the band (before mid)
The idea is to catch reversals **early**, but not on the very first noisy bounce.
---
## How to use
### 1) Baseline setup (recommended starting point)
These defaults are already aligned with the script’s intent:
* Stoch: **21 / 3 / 7**
* Bands: **bandLen 200**, **low/high 0.15/0.85**, **logitGain 1.0**
* Signals: **cooldown 8**, **maxWait 24**, **Use D Direction Confirm ON**
This typically produces fewer, more selective signals than traditional 14/3/3 style settings.
### 2) Interpreting the plots
* **%K (purple)** and **%D (yellow)** are the smoothed oscillator lines.
* **kLo / kHi / kMid** are the adaptive bands.
* Labels:
* **“L”** appears near the low band when a long setup completes
* **“S”** appears near the high band when a short setup completes
### 3) Practical trading workflow
* Prefer using signals as **timing cues**, not as a complete strategy by themselves.
* Many traders combine this with:
* a trend filter (e.g., EMA200 direction)
* a volatility filter (avoid low-vol chop)
* or higher timeframe confirmation
The script is designed to give **high-quality entry timing near extremes**, but you still need a trade plan for exits and risk management.
---
## Tuning guide (fast)
### Want signals closer to extremes (more selective)?
* Decrease / increase percentiles:
* lowPct **0.12** and highPct **0.88**
* Increase logitGain slightly:
* logitGain **1.1–1.2**
* Increase cooldown:
* cooldown **10–14**
### Want earlier signals (faster confirmations)?
* Use faster MA for %D (or reduce periodD):
* maD = **ZEMA** (or EMA)
* Reduce cooldown a bit:
* cooldown **5–8**
### Getting too many signals in ranges?
* Increase periodK to reduce chop:
* periodK **34**
* Increase cooldown
* Keep D confirm enabled
---
## Strengths
* **Adaptive extreme zones**: bands adjust to changing regimes (better context than static 20/80)
* **Reduced noise**: the Touch→Re-entry→Cross structure avoids many “random” crosses
* **Configurable smoothing**: lets you tune response vs stability via MA type
* **Risk-friendly by design**: cooldown + invalidation reduce repeated entries during chop
## Limitations
* **Not a full strategy**: no position management, take-profit/stop rules, or trend filter included
* **Mean-reversion bias**: in strong trends, Stochastic can stay overbought/oversold for long periods
* **Band buffer needs history**: percentile bands are more reliable after enough bars have accumulated (bandLen)
---
## Notes on repainting / confirmations
* The percentile band buffer uses **confirmed bars** (optional) to avoid unstable band updates during an incomplete candle.
* Signal labels are plotted when the full signal conditions are met (you can enforce confirmed-bar signals via settings).
---
## Suggested disclaimer (TradingView-friendly)
This indicator is for research and educational purposes and does not constitute financial advice. Always test settings on your market/timeframe and use proper risk management. Indicator

4x Stochastic Combo - %K only4x Stochastic Combo in one indicator.
Default parameters: (9, 3, 3), (14, 3, 3), (40, 4, 4), (60, 10, 10)
Only %K is shown.
Possibility to set alerts "all above 80" or "all below 20".
How to use:
Look for divergence after getting an alert for good quality signals. Connect the stochastic signals with multi-timeframe analysis. Indicator

Stochastic BTC OptimizedEnhanced Stochastic for Bitcoin (BTC) – Optimized for Daily Timeframe
This enhanced Stochastic oscillator is specifically fine-tuned for BTC/USD on the 1D timeframe, leveraging historical data from Bitstamp (2011–2025) to minimize false signals and maximize reliability in Bitcoin's volatile swings.
Unlike the classic Stochastic (14, 3, 3), this version uses optimized parameters:
- K Period = 21 – smoother reaction, better suited for BTC’s macro cycles
- D Period = 3, Smooth K = 3 – reduces noise while preserving responsiveness
- Overbought = 85, Oversold = 15 – accounts for BTC’s tendency to trend strongly within extreme zones without immediate reversal
✅ Smart Signal Logic:
Buy/sell signals appear only when %K crosses %D inside the oversold (≤15) or overbought (≥85) zones, and only the first signal is shown to avoid whipsaws.
Visual Enhancements:
- Thick lines when %K/%D are in overbought/oversold zones
- Green/red background highlights on valid signals
- Optional up/down arrows for clear entry visualization
- Customizable colors, line widths, and transparency
🔒 No alerts included – clean, focused on price action and momentum.
💡 Pro Tip: For even higher accuracy, use this indicator in combination with a long-term trend filter (e.g., EMA 200). The oscillator excels in ranging or retracement phases but should not be used alone in strong parabolic moves.
Based on Mozilla Public License v2.0 – feel free to use, modify, and share. Perfect for swing traders and long-term Bitcoin analysts seeking high-probability reversal zones.
перевод на русский
Улучшенный Stochastic для Bitcoin (BTC) — оптимизирован для дневного таймфрейма
Этот улучшенный осциллятор Stochastic специально настроен под BTC/USD на дневном графике, с учётом исторических данных Bitstamp (2011–2025), чтобы минимизировать ложные сигналы и повысить надёжность в условиях высокой волатильности биткоина.
В отличие от классического Stochastic (14, 3, 3), эта версия использует оптимизированные параметры:
- Период K = 21 — более плавная реакция, лучше соответствует макроциклам BTC
- Период D = 3, Сглаживание K = 3 — снижает шум, сохраняя отзывчивость
- Уровень перекупленности = 85, перепроданности = 15 — учитывает склонность BTC к сильным трендам в экстремальных зонах без немедленного разворота
✅ Интеллектуальная логика сигналов:
Покупка/продажа отображается только при пересечении %K и %D внутри зоны перепроданности (≤15) или перекупленности (≥85), и только первый сигнал фиксируется, чтобы избежать «хлыстов».
Улучшенная визуализация:
- Жирные линии, когда %K/%D находятся в экстремальных зонах
- Зелёный/красный фон при появлении сигналов
- Опциональные стрелки для чёткого отображения точек входа
- Настройка цветов, толщины линий и прозрачности
🔒 Без алертов — чистый инструмент, сфокусированный на цене и импульсе.
💡 Совет профессионала: для ещё большей точности используйте этот индикатор вместе с трендовым фильтром (например, EMA 200). Осциллятор лучше всего работает в фазах консолидации или отката, но не стоит применять его в одиночку во время сильных параболических движений.
На основе Mozilla Public License v2.0 — свободно используйте, модифицируйте и делитесь. Идеален для свинг-трейдеров и аналитиков Bitcoin, ищущих зоны с высокой вероятностью разворота.
Indicator

Indicator
