Indicator

Dynamic Speed Pivot Supertrend [ZenAlphaAlgo]Overview
The Dynamic Speed Pivot Supertrend is an advanced trend-following indicator designed to address the lag associated with pivot-based trailing stop losses. While pivot points excel at filtering noise and identifying significant trend structures, their delayed confirmation (e.g. waiting for $N$ bars to establish a pivot) can lead to late exits or entries when market velocity changes rapidly.
This script solves this problem by introducing a dynamic, momentum-based velocity factor that adaptively increases responsiveness during high-momentum moves while maintaining standard smoothing during sideways consolidation.
Credits & Attribution
The foundation of this script—calculating a Supertrend center line using weighted averages of pivot highs and lows—is based on the original work of LonesomeTheBlue (www.tradingview.com). We would like to credit them for their excellent contribution to the TradingView community.
This script modifies the original logic by introducing price velocity (ROC-based normalized speed) directly into the center line's smoothing calculation.
How it Works (Methodology)
The core feature of this indicator is Dynamic Speed Adaptive Smoothing:
Velocity Calculation: On every bar, the script computes the absolute Rate of Change (ROC) of the closing price over the specified "Speed Period (ROC)". This measures the speed of price movement.
Normalization: The current ROC is normalized against the highest ROC value found within the "Max Speed Lookback" window. This divides the current speed by the highest speed observed in the lookback window, bounding the price velocity dynamically between 0.0 (fully flat/no movement) and 1.0 (maximum acceleration).
Adaptive Smoothing: When a new pivot point is formed, the center line adjusts its position using an adaptive weighting calculation. If dynamic smoothing is enabled, the smoothing factor (Alpha) increases during high-velocity periods by selecting the maximum value between a baseline of 0.33 and the calculated normalized speed:
During High Acceleration (Alpha near 1.0) : The center line reacts instantly to the new pivot point, rapidly tightening the trailing stop.
During Consolidation (Alpha at 0.33 baseline) : The smoothing factor relaxes back to the stable baseline, preventing unnecessary whipsaws.
How to Read Visual Cues (Interpretation)
Trailing Stop Line:
Lime Green Line : Represents an active bullish trend (long). Price is trading above the trailing stop.
Red Line : Represents an active bearish trend (short). Price is trading below the trailing stop.
Stop Start Shapes (Circles) : A circle is plotted directly on the trailing stop line at the exact bar a new trend begins (the trend flip point).
Buy/Sell Shapes:
Triangle Up (below bar): Plotted on a bullish trend flip (Buy signal).
Triangle Down (above bar): Plotted on a bearish trend flip (Sell signal).
Gradient Background Fill: A transparent color band spans between the trailing stop line and the closing price. The gradient starts translucent (75% transparency) at the stop line and fades out completely (100% transparency) towards the current price, indicating the safety buffer visually.
Center Line : The gray dotted line represents the adaptive center line around which the ATR bands are calculated.
Input Parameters Guide
Pivot Point Period (default: 2) : The number of left and right bars required to confirm a pivot high or low. Larger values filter more noise but increase confirmation delay.
ATR Factor (default: 6.0) : The multiplier applied to the Average True Range (ATR) to determine the distance of the bands from the center line.
ATR Period (default: 9) : The lookback window for the ATR volatility calculation.
Use Dynamic Center Line Smoothing (default: true): Toggles between the dynamic momentum-based smoothing coefficient and the static 0.33 smoothing.
Speed Period (ROC) (default: 4) : The lookback window for the Rate of Change calculation used to determine current price speed.
Max Speed Lookback (default: 50) : The lookback window used to establish the maximum historical speed for normalization.
Display & Styling : Toggles to independently show or hide the Trailing Stop line, the Center line, the buy/sell shapes, or the background gradient fill.
Alerts
Alert Conditions : Standard alert triggers are available via the TradingView Alert Dialog for both Buy / Bullish Trend Flip and Sell / Bearish Trend Flip.
Dynamic Alert s: Script-based dynamic alerts trigger on the bar close when a trend flip occurs.
Disclaimer
This indicator is created for educational and analytical purposes only. Past performance does not guarantee future results. Trend-following indicators are subject to drawdowns during sideways/ranging market conditions. Always perform thorough backtesting and practice proper risk management. Indicator

JJB OTT Alert RelayJJB OTT Alert Relay
A bridge indicator that exposes Optimized Trend Tracker (OTT) Buy/Sell signals as alert conditions for automated webhook notifications.
🔍 What This Does
The Optimized Trend Tracker by TradingView generates clean Buy/Sell crossover signals but doesn't expose alertcondition() natively. This relay indicator mirrors the OTT's Support and OTT lines, detects crossovers, and surfaces them as alert conditions — so you can catch signals via webhook, email, or push without watching the chart.
🟢 Buy Signal: Support line crosses above OTT line
🔴 Sell Signal: Support line crosses below OTT line
⚙️ Setup (One-Time, 60 Seconds)
1. Add both indicators to your chart:
The original Optimized Trend Tracker (Community Script)
This JJB OTT Alert Relay
2. Wire the inputs:
Open JJB OTT Alert Relay → Settings → Inputs
Set "Support Line" → #1 Optimized Trend Tracker: Support Line
Set "OTT Line" → #1 Optimized Trend Tracker: OTT
3. Verify the match:
Both indicators should show identical Support and OTT values in the Data Window. If they match, the relay is wired correctly.
🔔 Creating the Alert
Open TradingView's Alert dialog
Condition → "Any alert() function call"
Select "JJB OTT Alert Relay" as the source
Paste your webhook URL
Use this JSON message template:
{"topic":"JJB BTC OTT","title":"BTC OTT {{strategy.order.action}}","message":"OTT Signal: {{strategy.order.action}} | Price: {{close}} | Interval: {{interval}}","tags": ,"passphrase":"YOUR_WEBHOOK_PASSPHRASE"}
Replace YOUR_WEBHOOK_PASSPHRASE with your actual webhook passphrase. The {{strategy.order.action}} placeholder resolves to "buy" or "sell" on each crossover.
Set expiration (default 30 days) and create.
💡 One alert covers both signals. No need for separate buy/sell alerts.
📊 Signal Logic
Condition Signal Meaning
Support ↑ crosses above OTT 🟢 BUY Trend turning bullish
Support ↓ crosses below OTT 🔴 SELL Trend turning bearish
This is a trend-following system — signals are infrequent (typically 2-4 per quarter on daily timeframe) but high-quality. Each signal confirms a structural shift, not noise.
📌 Tips
Daily timeframe is the sweet spot — lower timeframes generate more noise
The relay mirrors the original OTT exactly — it doesn't recalculate
If you change OTT's settings, the relay picks them up automatically via the wired inputs
The plot on your chart confirms the wiring: green line = Support, blue line = OTT
🔧 Requirements
Original Optimized Trend Tracker indicator on the same chart
Basic Pine Script v5+ (TradingView)
Author: JJB | Version: 1.0 Indicator

SBP Trend & Momentum System
SBP Trend & Momentum System is an educational trend and momentum analysis tool designed to study directional market phases while reducing repeated and conflicting setup markers.
The script combines structured trend analysis, Hull-style adaptive smoothing, EMA directional consensus, ATR-normalized trend strength, momentum analysis, recent price-structure events, candle characteristics, volatility conditions, and optional relative-volume information.
### Why these components are combined
A single trend or momentum calculation may react differently during compression, directional expansion, and temporary counter-moves. This script combines several analytical components so that each performs a separate role within the setup process.
The trend filter and adaptive average evaluate directional slope. EMA alignment measures directional consensus and trend separation. ATR normalization adjusts momentum, structure penetration, and signal distance relative to current market movement. Candle and optional volume calculations provide additional setup context.
These components are combined through a normalized quality and factor-consensus framework rather than requiring every analytical event to occur on the same candle.
### Trend Phase Lock
The Trend Phase Lock maintains an established bullish or bearish directional phase.
Temporary neutral conditions do not automatically reset the active phase. A new opposite phase requires persistent opposite directional conditions before the phase state changes.
The primary setup engine permits one BUY or SELL marker per established directional phase. This is intended to reduce repeated same-direction labels during an ongoing move.
### Dominant Trend Guard
The Dominant Trend Guard distinguishes stronger directional conditions from ordinary short-term movement.
During a major bullish phase, the script evaluates whether bullish trend slope, adaptive direction, EMA alignment, and ATR-normalized trend strength remain aligned. The same process is applied inversely during a major bearish phase.
A temporary counter-move alone does not immediately change the active directional phase. Opposite phase processing uses reversal persistence, adaptive and EMA agreement, and ATR-normalized displacement before the phase can change.
This mechanism is a directional-state filter. It does not predict future price direction.
### Big Trend Continuation Rescue
Strong directional expansion can sometimes move beyond the normal signal-distance range or continue after the standard phase signal window.
The Big Trend Continuation Rescue evaluates dominant trend state, directional momentum, factor alignment, normalized quality, volatility, and candle-range conditions.
Its purpose is to allow the setup engine to continue evaluating a strong directional phase without requiring the ordinary setup conditions to occur within a narrow group of bars.
The one-primary-marker-per-phase rule remains applicable.
### Quality and Factor Consensus
The script calculates a normalized quality score from:
• Trend strength
• Directional alignment strength
• ATR-normalized momentum quality
• Candle characteristics
• Recent structure quality
• Optional relative-volume information
Momentum, structure, and candle conditions contribute to setup quality and factor consensus. They are not all required to occur on the same candle.
The available scoring denominator automatically adjusts when optional analytical components are disabled.
### Structure Memory
The structure engine evaluates closes relative to previous price structure and measures penetration in ATR terms.
A controlled fresh structure event receives greater analytical weight. A recent structure event can remain relevant for a limited number of bars.
This allows the setup engine to evaluate continuation conditions after a structure event rather than requiring the signal candle itself to be the structure-break candle.
### Trading Modes
The indicator includes three analytical modes:
**SCALPING** — shorter calculation lengths for faster chart conditions.
**INTRADAY** — balanced calculation lengths for intraday market analysis.
**SWING** — longer calculation lengths for broader directional analysis.
These modes adjust internal trend, adaptive smoothing, momentum, structure, and candle-range parameters.
### Signal Quality and Frequency
Users can select **Aggressive, Balanced, or Conservative** signal-quality settings.
The **Selective, Balanced, and Frequent** frequency settings adjust phase confirmation and setup evaluation parameters.
These controls change the script's rule-based analytical sensitivity. They do not represent expected performance levels.
### BUY and SELL Labels
BUY and SELL labels identify rule-based analytical setups generated when the script's directional phase, trend state, factor consensus, quality, volatility, and other enabled conditions meet the defined criteria.
The labels are analytical markers only. They are not automated orders, trade execution instructions, financial advice, or guarantees of future market movement.
### Early Transition Markers
Optional early transition markers evaluate directional crosses together with trend slope, adaptive direction, EMA alignment, momentum, and candle characteristics.
These markers are separate from the primary BUY and SELL setup engine. They do not reset the Trend Phase Lock or unlock another primary setup marker.
### ATR Risk Guide
The optional ATR Risk Guide plots a volatility-based visual reference around the adaptive average.
It is provided for chart analysis only and is not a broker order, strategy exit, or guaranteed stop-loss level.
### Bar-Close Processing
When **Signals On Bar Close** is enabled, phase processing, primary setup markers, early transition markers, and related alerts are evaluated after the chart bar closes.
The script does not use `request.security()` or future-data lookup.
### Important Information
This indicator is provided for educational and informational purposes only.
It is an analytical decision-support tool and does not execute trades or provide automated investment advice. BUY and SELL labels identify conditions defined by the script's calculations and should not be interpreted as guarantees of profitable outcomes or future price direction.
Users should independently evaluate market conditions and apply their own execution, position-sizing, and risk-management methods.
Past performance does not guarantee future results.
Indicator

SBP SBP Trend Phase NavigatorSBP Trend Phase Navigator
SBP Trend Phase Navigator is a rule-based technical analysis indicator designed to study directional trend phases and identify selected analytical setups when multiple chart conditions align.
Purpose and Component Integration
The indicator combines trend direction, adaptive smoothing, EMA alignment, ATR-normalized momentum, price structure, candle characteristics, optional relative volume, and volatility analysis.
These components are combined because they evaluate different aspects of price behaviour. Trend calculations provide directional context, momentum measures the strength of recent price movement relative to volatility, price structure evaluates movement beyond previous chart levels, and candle analysis examines the characteristics of the current bar.
The script processes these conditions within one rule-based framework rather than treating each component as an independent signal source.
Trend Analysis
The trend engine evaluates price in relation to a smoothed trend filter and measures the direction of the filter's slope.
A fast and slow EMA pair is used to assess directional alignment. The distance between these averages is normalized using Average True Range (ATR) and forms part of the trend-strength calculation.
A Hull-style adaptive average provides an additional directional reference. Its slope is evaluated together with the trend filter and EMA alignment when determining bullish or bearish trend conditions.
ATR-Normalized Momentum
Momentum is calculated from price change over a mode-dependent lookback period and divided by ATR.
This allows the script to evaluate recent directional price movement relative to the instrument's recent volatility rather than using absolute price movement alone.
Bullish and bearish momentum conditions are calculated separately.
Price Structure and Candle Analysis
The Price Structure Engine compares the current closing price with previous structure highs or lows over a selected lookback period.
The current setup candle is excluded from its own structure reference.
The Candle Quality Engine evaluates the candle body relative to the complete candle range and examines where the candle closes within that range. Bullish and bearish candle conditions are assessed separately.
Optional Relative Volume Analysis
The Relative Volume Filter compares current volume with its recent average where usable volume data is available.
This component is optional because volume characteristics can differ between symbols and markets.
When the volume filter is disabled, volume is excluded from both the score contribution and the available score denominator.
Volatility and Signal Distance
The volatility engine compares current ATR with its recent ATR average. The optional volatility filter can restrict setup markers when the ATR expansion ratio exceeds the selected maximum value.
The Maximum Signal Distance setting measures the distance between price and the Adaptive Average in ATR units. This condition can restrict primary setup markers when price is beyond the selected distance from the adaptive trend reference.
Normalized Quality Score
The indicator calculates separate bullish and bearish quality scores.
Trend strength and directional alignment form the core of the score. Momentum, candle characteristics, price structure, and relative volume contribute when their corresponding components are enabled.
The quality percentage is normalized according to the active scoring components. Disabling an optional component removes its contribution from the score calculation and the available score denominator.
The Aggressive, Balanced, and Conservative quality settings adjust the analytical thresholds used by the script. These settings control rule selectivity and do not represent an expected performance or success rate.
Trend Phase Lock
The Trend Phase Lock is used to control repeated same-direction setup markers.
Bullish and bearish trend conditions are counted over consecutive qualifying bars. A directional phase is established after the selected phase-confirmation requirement is met.
Temporary neutral or transition bars do not automatically reset the active phase.
After a primary BUY or SELL setup marker is generated, the active directional phase is marked as used. The primary setup engine does not generate another same-direction marker during that established phase.
A new primary setup becomes available after an opposite directional phase satisfies the script's phase-confirmation rules.
The Trend Phase Lock is a signal-frequency control mechanism. It does not predict future price direction.
Signal Frequency
The indicator provides Selective, Balanced, and Frequent signal-frequency settings.
Selective applies additional phase confirmation and higher quality requirements.
Balanced uses moderate phase and quality requirements.
Frequent uses less restrictive phase-confirmation and quality requirements.
These settings change the selectivity of the rule-based setup engine.
BUY and SELL Setup Labels
BUY and SELL labels identify bars where the enabled trend, momentum, structure, candle, volume, volatility, signal-distance, quality, and directional-phase conditions satisfy the selected settings.
The primary setup engine permits one setup marker per established directional phase.
When Signals On Bar Close is enabled, primary setup markers and related alert conditions are evaluated after the chart bar closes.
The labels represent rule-based analytical conditions generated by the script. They are not automated orders or guarantees of future price movement.
Early Transition Markers
Optional Early Transition Markers evaluate selected crossings of the trend filter together with trend slope, adaptive trend direction, EMA alignment, momentum direction, candle characteristics, volatility, and signal-distance conditions.
These markers are separate from the primary BUY and SELL setup engine. They do not reset the active phase or unlock another same-direction primary setup.
Early Transition Markers are disabled by default.
ATR Risk Guide and Dashboard
The optional ATR Risk Guide plots a volatility-based analytical reference around the Adaptive Average. It is a visual reference only and is not an automated order, strategy exit, or guaranteed stop level.
The optional dashboard displays the selected mode, signal-frequency setting, current trend state, active directional phase, phase-signal status, normalized quality score, market regime, and current setup state.
Modes and User Controls
The indicator provides SCALPING, INTRADAY, and SWING modes. These modes adjust the internal trend, adaptive-average, momentum, and price-structure lookback lengths.
Users can also control trend-strength, momentum, relative-volume, price-structure, candle-quality, and volatility filters through the indicator settings.
Important Information
SBP Trend Phase Navigator is an analytical and technical-analysis tool intended for educational and informational use.
The indicator evaluates chart data according to defined mathematical and rule-based conditions.
BUY and SELL labels identify analytical setups produced by the script's conditions. They do not constitute financial advice, automated trade execution, or guarantees of future market performance.
The script does not place or manage orders. Users are responsible for their own analysis, trading decisions, position sizing, and risk management.
Past performance does not guarantee future results. Indicator

SBP Structured Scalping IndicatorSBP Structured Scalping Indicator
SBP Structured Scalping Indicator is a market-structure and short-turn analysis framework designed to identify selective BUY and SELL observations around developing price turns.
The script is not a simple moving-average crossover mashup. Its purpose is to combine differently timed market observations into a single major-turn framework. A volatility-responsive adaptive trend identifies directional colour changes, while confirmed swing context and recent local extremes study whether that change is occurring near a meaningful price turning area.
Because a confirmed pivot and an adaptive trend change may not occur on the same candle, the script uses a short event-memory window to evaluate their proximity. A local-extreme fallback also studies recent highs or lows and requires a configurable ATR-based price excursion before the area can qualify as meaningful.
Potential turns are then evaluated using a confirmation score derived from adaptive-trend position, Dynamic Trend Filter direction, normalized momentum, candle direction, and liquidity or premium/discount context. Minimum signal spacing and alternating signal-state logic are used to reduce repetitive labels.
The Premium / Discount framework builds a dealing range from confirmed structural highs and lows and displays straight Premium, Equilibrium and Discount reference levels. These levels can be used as visual context or, when enabled, as an additional signal-location filter.
The two-colour Adaptive Trend Line changes between bullish and bearish states only when its confirmed slope exceeds a volatility-adjusted threshold. BUY and SELL signals are plotted on the confirmation bar; the primary signals do not use negative offsets.
Main settings
Minimum Signal Gap controls spacing between major-turn signals. Increasing it produces fewer, more widely separated observations.
Minimum Turn Confirmation Score controls how many supporting conditions are required. A higher value is more selective; a lower value increases sensitivity.
Local Extreme Lookback changes the recent high/low observation range.
Minimum Major Turn Excursion ATR controls how much prior price movement is required before a local extreme can qualify as a meaningful turn area.
Signal Window After Colour Change and Maximum Bars From Swing control the short event-memory relationship between adaptive turns and swing context.
Use Confirmed Swing Context evaluates confirmed pivot proximity. Use Local Extreme Fallback allows meaningful recent extremes to supplement pivot context. Use Premium / Discount Bias restricts BUY observations toward Discount and SELL observations toward Premium.
Optional structure, swing, CHoCH and liquidity displays are included for analysis and can be hidden to maintain a clean chart.
The indicator is intended as an analytical framework for studying short-term market structure, directional transitions and price-location context. Signals are observations generated from the framework's conditions and should be evaluated with the trader's own risk management and trading plan. Indicator

SEDAT XI Crypto AI BIAS ENGINE-iphone v2.0 ** ⚡SEDAT XI Crypto AI BIAS ENGINE⚡
The **SEDAT XI Crypto AI BIAS ENGINE** is a multi-asset cryptocurrency dashboard designed to help traders quickly identify where momentum, trend, and participation are aligning across the market.
Rather than focusing on a single chart, the dashboard continuously scans major cryptocurrencies and summarizes the information into an easy-to-read institutional-style interface. It combines trend analysis, breakout detection, momentum, volume activity, and RSI into one compact view, making it easier to prioritize the strongest opportunities.
### Features
• Multi-asset crypto scanner (BTC, ETH, SOL, ADA, XRP, SHIB)
• AI-style bias engine with Bullish, Bearish, Strong Trend, and Breakout detection
• Institutional volume activity meter
• Momentum score with color-coded strength
• RSI momentum confirmation
• Live current price display
• Final trade bias summary
• Mobile-friendly dashboard mode
• Adjustable dashboard size and screen placement
The goal is simple: reduce chart clutter and provide a fast market overview so traders can spend less time searching and more time focusing on high-quality setups.
This indicator is designed for educational and informational purposes. It does not predict future price movements or guarantee profitable trades. Always combine its signals with sound risk management and your own market analysis.
Thank you for checking out **SΞDAT XI Crypto AI BIAS ENGINE**. I hope it becomes a valuable part of your trading workflow. Feedback and constructive suggestions are always welcome as the project continues to evolve.
Indicator

VIP Currency Strength MatrixVIP Currency Strength Matrix — Round-Robin Strong-Count (SMA/EMA)
OVERVIEW
This indicator scores the 8 major currencies (EUR, GBP, AUD, NZD, USD, CAD, CHF, JPY) using a round-robin "strong-count" method, then builds a pair-difference matrix so you can see, at a glance, which pairs have the wind at their back and which are fighting it. It is a bias and confluence tool, not an entry signal.
HOW IT WORKS
The 8 currencies form 28 unique pairings. For each pair, the indicator checks whether price is above or below a reference moving average (200 SMA by default):
- Price ABOVE the MA -> the BASE currency earns +1 strong-count.
- Price BELOW the MA -> the QUOTE currency earns +1 strong-count.
Each currency is compared against the other seven, so every currency ends with a strong-count from 0 (weakest) to 7 (strongest).
For any pair, the score shown is:
strong-count(base) - strong-count(quote), ranging from -7 to +7.
- Positive = base is stronger (buy-side confluence).
- Negative = quote is stronger (sell-side confluence).
Cells at or beyond the highlight threshold (default 4) are color-coded green (buy) or red (sell).
WHAT YOU SEE
- Currency Strength table: all 8 currencies ranked 0-7, strongest at the top.
- Pair Matrix: all 28 pairs with their difference score, sorted so the strongest buy-side reads sit at the top and the strongest sell-side reads at the bottom.
HOW TO USE IT
1. Use it to establish directional bias first: favor longs on currencies ranked high, shorts on currencies ranked low.
2. A pair scoring +6 or +7 is strongly one-sided, but "strong" is not the same as "a good entry." Wait for price to reach your own level/structure before acting.
3. Look for agreement, not extremes. Alignment across your timeframes is the read you want.
MULTI-TIMEFRAME
Each copy of the indicator computes ONE timeframe (28 data requests). TradingView caps unique data requests at 40 (non-pro) / 64 (pro), so 28 pairs across several timeframes cannot fit in a single script. To watch multiple timeframes at once, add the indicator to your chart several times, set each copy to a different timeframe, and give each its own table position.
IMPORTANT SETUP NOTES
- Run it on a chart timeframe equal to or lower than the timeframe you request. Requesting a lower timeframe than the chart (e.g. asking for 15m while on a 4H chart) forces a heavy data pull across all 28 pairs and can trigger "Memory limits exceeded." If you see that error, lower "History bars per pair" and/or drop to a lower chart timeframe.
- "Data-feed prefix" must be a feed that carries all 28 pairs, including the crosses (OANDA works well).
INPUTS
- Reference MA type and length (default SMA 200)
- History bars per pair (memory control)
- Data-feed prefix
- Timeframe (one per copy)
- Panel tag, table positions, text size
- Buy/Sell highlight threshold (default 4)
HONEST LIMITATIONS
- A round-robin does not mathematically guarantee 8 unique ranks. Cyclical conditions (A>B, B>C, C>A) can produce a tie, showing a 0 or a repeated rank. Treat a 0 as "no clear edge / choppy," not as a defect.
- Strength above/below a long MA is a slow, trend-following read. It tells you direction and context; it does not time entries.
This script is provided for educational and analytical purposes only. It is not financial advice and makes no representation about future results. Always do your own analysis and manage risk. Indicator

Trend Health [FEELS]A trend rarely dies suddenly. It fades first: the move gets inefficient and counter-trend candles grow heavier. Trend Health paints that fading straight onto a supertrend-style ATR trail, and tightens the stop while it happens.
The band is saturated green or red while the trend is strong. As health decays the color drains toward amber, an amber dot prints where the dying starts, and the trail contracts under price so a weak trend exits earlier than a fixed stop would.
QUICK START
Add it to a chart and read the color. Bright band: trend intact, trail at full width. Fading band: trend losing quality, stop contracting. Amber band: dying trend, elevated flip risk. Scroll the history: most flips carry an amber warning dot some bars before them. The strip along the bottom compresses the full health history into one regime line, and the label at the right edge shows direction, state and the current health score.
HOW IT WORKS
Two layers: a health score, and a trail that consumes it.
Health score, computed every bar over the Health lookback window:
1. Directional efficiency. Kaufman efficiency ratio (net move divided by the sum of absolute bar-to-bar moves), zeroed when the net move points against the active trend, normalized so a reading of 0.5 counts as fully efficient.
2. Momentum side. RSI distance from the 50 line in the direction of the trend, scaled over 25 points.
3. Impulse asymmetry. Candle bodies printed with the trend versus against it over the window. When counter-trend bodies grow, this component decays before price structure breaks.
These three form the core score (weights 0.45 / 0.30 / 0.25). The displayed health adds a fourth read, the distance between price and the trail in ATR units, at 25 percent weight. The score is EMA-smoothed and resets on every flip.
The trail is a ratchet ATR stop built from scratch. Base width is ATR times the multiplier. With Adaptive tightening on, the effective multiplier is scaled by the core score, so a healthy trend trails at full width while a dying trend gets a progressively tighter stop. The distance component is excluded from the core on purpose, otherwise tightening would lower the score and tighten further in a loop. Toggle it off and you get a classic fixed-width trail; the health engine then only drives the color.
HOW TO USE
- Color is the instruction. Enter or hold on a saturated band, tighten manually or stand aside on amber.
- The dying alert fires when health crosses under the threshold while the trend is still running. On past data many flips were preceded by exactly this transition. Treat it as a condition read, not a forecast.
- Four alerts: flip up, flip down, trend dying, trend recovered.
- Designed on 4H to 1W. Works on any symbol and timeframe; on low timeframes expect more flips, especially in ranges with adaptive mode on.
PARAMETERS
- ATR length / ATR multiplier: trail geometry at full health.
- Adaptive tightening: health-driven contraction of the trail, on by default.
- Health lookback: window for the efficiency, momentum and asymmetry reads.
- Health smoothing: EMA on the raw score.
- Dying threshold: below this level the trend counts as dying; drives the amber floor, the warning dot, the label and the alert.
- Display toggles: trend fill, bar coloring, flip markers, dying warnings, health ribbon, status label.
- Sizing: marker size, label size and trail width are adjustable.
NOTES
- The trail state confirms at bar close. On the live bar the level and color can update until close.
- Health describes the present condition of the trend. It does not predict future prices.
- A dying warning is a condition mark, not an exit signal: health can recover and the trend can resume. Sharp reversals can flip a trend straight from high health without any warning printed.
- Adaptive mode trades later giveback for earlier exits, so in choppy ranges it flips more often than a fixed trail. That is the design, not a defect.
ORIGINALITY
The ratchet ATR trail is a classic public-domain concept reimplemented from scratch. What is original here is the three-component health model, the gradient mapping of that score onto the trail, bars and ribbon, and the feedback of the score into the stop width itself, which makes the flip points measurably different from a standard fixed-factor trail. RSI and the efficiency ratio are not displayed as separate indicators; they exist only as inputs to one scoring model. This is a single system, not a mashup. Indicator

HTF Regime Navigator [HRN]HTF Regime Navigator
█ OVERVIEW
The HTF Regime Navigator is a top-down market analysis dashboard built on one premise: markets spend most of their time in ranges, and a trend has to be earned. It is not a buy/sell arrow generator. It answers three questions, in order, and shows its reasoning for each:
1. What environment are we in? (the Regime engine)
2. Which way does the weight of evidence lean? (a fully transparent, user-weighted scoring model expressed as Bull / Base / Bear percentages)
3. Where is the high-quality price to act? (EMA–Fibonacci confluence — "a place to do business")
"HTF" means higher timeframe: the tool is designed for traders who set their bias on the weekly or daily chart and execute lower, though every module is timeframe-agnostic and works on any liquid symbol.
█ WHO IT'S FOR
• Swing and position traders who form their bias on the weekly or daily chart and execute lower — the defaults, the workflow, and the dashboard's top-down read order are all built around that sequence.
• Range and reversal traders: anyone who buys pullbacks into value (the Fibonacci golden zone, EMA retests, Wyckoff springs) rather than chasing breakouts. Most of the machinery exists to identify what kind of range you are in and where the high-quality prices sit inside it.
• Traders who think in probabilities and scenarios rather than binary calls. The forecast is expressed as three weighted cases — Bull, Base, Bear — and the Action row says STAND ASIDE far more often than it suggests positioning.
• Process-oriented traders who want to see the reasoning. Every classification and every probability decomposes into visible, re-weightable components, so the tool suits people who want to audit and tune a model, not follow arrows.
• Discretionary traders who do their own research: the Discretionary Overlay feeds macro, catalyst, flow, and consensus work into the same probability engine as the chart evidence.
Who it is not for: scalpers wanting high-frequency intraday signals, or anyone looking for a black-box buy/sell system. The fractal-based structure confirms with a deliberate lag, the engine is designed to keep you out of the market most of the time, and it will not do your thinking for you.
█ THE LOGIC BEHIND THE INDICATOR
Every module encodes one of five working assumptions about how markets behave:
1. Consolidation is the default state. Markets spend the large majority of their time ranging; genuine trends are the exception. The burden of proof is therefore inverted: instead of asking "is this a trend?", the engine assumes range until a breakout is confirmed by the moving-average stack in both side and slope. This single prior removes the most expensive class of error — treating every breakout as the start of a trend.
2. Regime is permission, forecast is bias, confluence is location and trigger. Three separate questions, answered in order. The regime decides which trades are even on the table. The forecast decides which direction deserves the benefit of the doubt, and how strongly. Confluence decides where acting on that bias offers favorable prices. The layers are kept independent on purpose, so a disagreement between them (for example, a bullish confluence lighting up against a bearish lean) is information rather than noise.
3. Evidence moves probabilities; it never creates certainty. The forecast starts from a base-case prior — "nothing resolves, the chop continues" — and each piece of evidence (structure, regime, entry value, divergence, Wyckoff behavior, your own research) shifts probability away from that prior in proportion to the weight you assign it. A hard floor keeps the base case alive no matter how one-sided the evidence looks, because chop is always possible. This is why the output is three scenario probabilities rather than a signal.
4. Location matters as much as direction. A correct bias executed at a bad price is still a bad trade. The Entry Value component scores extended price negatively even when the bias is bullish, and the confluence engine only lights up where independent forms of support overlap — moving averages sitting inside the Fibonacci value zone, ideally with price there too and slopes turning. That overlap is the "place to do business."
5. The best reversal entries occur where structure has just been recovered. A Wyckoff spring is a failed breakdown — a shakeout that closes back inside the range, showing supply exhausted below. A fresh EMA reclaim is the same event expressed in moving-average terms. The optional signal engine is built entirely around this: it requires freshly recovered structure (a recent slope flip, a fresh reclaim, or a qualified spring) and then triggers on the reclaim itself or the first tests of the fast EMA afterward — never on stale, mid-trend states.
Because each assumption is implemented as visible, weighted, adjustable components, the tool doubles as a measurable model: when it is wrong, the Breakdown table shows which component was wrong, and you can re-weight accordingly.
█ WHY THIS COMBINATION IS ORIGINAL AND USEFUL
HRN uses classic building blocks — multi-timeframe EMAs, Williams fractals, Wyckoff springs/upthrusts, RSI divergence, Fibonacci retracements, and a volume profile. What makes it original is that these are not stacked side by side; they are wired into a single decision engine with an explicit consolidation prior:
• One structure feeds everything. The Williams-fractal range defines the structure every other module measures against: springs and upthrusts are validated against the range's edges and height, the Fibonacci golden zone anchors to it by default, and the Entry Value score is price's position within it.
• Trends must be earned. The regime engine refuses to call a trend on a breakout alone — the breakout must be confirmed by a user-set number of EMAs agreeing in both side and slope. Until then, the market is classified as a range, and the engine's job becomes determining what kind of range it is (accumulation, distribution, or neutral) by counting independent evidence.
• Evidence becomes probabilities through an honest prior. Six components (MA Structure, Regime, Entry Value, HTF Divergence, Wyckoff, Discretionary Overlay) are each normalized to −100…+100, weighted by inputs you control, and mapped to Bull / Base / Bear percentages through a base-case prior with a hard floor. The model is structurally prevented from claiming near-certainty, because chop is always possible.
• The layers gate each other. The confluence highlight and the optional mechanical signal engine both consume the same canonical golden zone; the signal engine is vetoed by the regime (no long signals in a confirmed downtrend by default) and assisted by Wyckoff events (a recent qualified spring satisfies the reversal-freshness requirement for longs, an upthrust for shorts).
• Everything is auditable. The Forecast Breakdown table shows score × weight = contribution for every component, so you can see exactly why the model leans the way it does — and re-weight it when you disagree. The tool is meant to be tuned like a model, not trusted like a black box.
That integration — one structural range feeding one weighted evidence model feeding one location filter, under an explicit "consolidation is the default" prior — is not reproducible by simply adding the individual indicators to a chart.
█ HOW IT WORKS
1 — HTF EMA Stack. Six independent EMA slots, each with its own timeframe, length, color, and toggle (defaults: chart 50/100/200 plus a weekly 50 visible; a weekly 200 and daily 50 are configured but off). For each active EMA the tool tracks which side price is on and the EMA's own slope, measured against its value a configurable number of higher-timeframe bars back.
2 — HTF Range (Williams fractals). Pivot highs/lows with configurable wings on a selectable range timeframe (weekly by default) define the range high and low. A breakout requires the range-timeframe close to exceed the boundary by a buffer percentage. A context lookback checks where price came from: falling into the range is an accumulation clue; rising into it, a distribution clue.
3 — Wyckoff engine. A spring is only accepted when the undercut penetrates no more than a maximum percentage of the range height, the bar closes back inside the range, the range is not already broken down, optional volume qualification passes (a quiet low-volume test, or stopping volume above a multiple of average), and a cooldown since the last signal has elapsed. Upthrusts mirror this at the range high. Separately, the up- versus down-bar volume share over a lookback gives the range an accumulation or distribution character (effort vs. result).
4 — HTF Divergence. Regular RSI divergence detected at confirmed pivots on a selectable timeframe (weekly by default).
5 — Regime engine. If price has broken out AND at least N active EMAs confirm the direction (correct side + correct slope), the regime is TRENDING UP or TRENDING DOWN. Otherwise the engine counts the bullish vs. bearish evidence above (range context, volume share, spring/upthrust, divergence) and classifies ACCUMULATION, DISTRIBUTION, or NEUTRAL RANGE, with a confidence read based on how far apart the evidence counts are.
6 — Forecast. Six components, each scored −100…+100:
• MA Structure — price's position across the active EMA stack.
• Regime — the classification's directional lean.
• Entry Value — how favorable current price is for the bias. It deliberately scores extended/expensive price negatively, even in a bullish setup — it exists to fight chasing.
• HTF Divergence — recent bullish/bearish divergence.
• Wyckoff — recent spring/upthrust plus the volume-share character.
• Discretionary Overlay — four dropdowns you set from your own research (macro liquidity, upcoming catalysts, insider/institutional flow, analyst consensus), since Pine cannot read the news. Neutral by default.
The weighted sum produces a Net Score (−100…+100), which is mapped to Bull / Base / Bear percentages through a base-case prior (default 55%), a sensitivity, and a floor (default 15%). An Action row only suggests positioning when a case clears the actionable threshold (default 65%); otherwise it reads STAND ASIDE.
7 — Fibonacci engine. Full retracement and extension sets, each level individually toggleable, editable, and colorable. The anchor is selectable: the HTF Range (default), the last detected Swing High/Low, or a Lookback High/Low. Orientation follows the forecast bias automatically or can be forced Uptrend/Downtrend. The canonical 38.2–61.8 golden zone drives entry detection regardless of which display levels you show, and the zone can be filled in one or two bands.
8 — EMA-Fib Confluence. When the selected EMAs sit inside or near the golden zone (tolerance measured as a percentage of the fib range), optionally requiring price in the zone and an EMA slope filter, the chart paints a background band and the dashboard glows green or red. This is the location cue — the "pay attention" state.
9 — Signal engine (optional). A mechanical fresh-reversal detector: per-EMA tri-state classification (above / testing / below, with a % or ATR-fraction tolerance), reclaim tracking, slope-alignment freshness windows, a first-K-tests-after-reclaim route (the first pullback test can come weeks after a reclaim, so it is counted in episodes, not bars), optional EMA stack-order requirement, Wyckoff assist, higher-timeframe regime veto, optional volume gate, confirmation closes, cooldowns, and invalidation on a close beyond the lowest (or highest) signal EMA plus a buffer. A 0–100 confluence score is always computed and can optionally gate entries. State machine: SETUP → PENDING → CONFIRMED → HOLDING → INVALIDATED, with fully customizable chart markers.
10 — Volume Profile. Up to 100 rows over up to 1500 bars, POC / VAH / VAL lines and labels, optional up/down volume split per row.
11 — Dashboard + Forecast Breakdown tables. Every row can be toggled off to shrink either table. The whole-table tint source is selectable: EMA-Fib Confluence (default), Signal Engine, Both, or Off.
12 — Alerts. One dynamic alert() covers every toggled event with a rich message (regime change, spring/upthrust, HTF divergence, entry zone + bias alignment, probability threshold crosses, confluence start, signal confirmed, setup forming). Individual alertcondition() hooks are also provided. Create a single alert on the indicator with "Any alert() function call" to receive all enabled events.
13 — Data bus. A few hidden (display.none) plots expose the regime code and key event streams so that other indicators on the same chart can read them as an external source input.
█ HOW TO USE IT
The 30-second read, top to bottom:
1. Is the dashboard glowing green/red, or is there a background band on the chart? That means a confluence area is live right now.
2. Regime row — trend or range, which kind, and at what confidence. A Low confidence means the evidence is nearly tied; treat it as a hint, not a conclusion.
3. Range position — is price cheap (low in the range) or expensive (high in the range)?
4. EMA-Fib Conf row — if confluence isn't firing, the detail cell tells you exactly which condition is missing (E1/E2/E3 = EMAs in zone, P = price in zone, S = slope filter).
5. Bull / Base / Bear percentages and the Action row — the bottom line.
A suggested top-down workflow: set the bias on the weekly (regime + the weekly EMA slope), drop to the daily to find the setup, and only act where the confluence band lights inside the golden zone. Honor the Entry Value component — it penalizes chasing on purpose. Fill in the Discretionary Overlay from your own research; it is neutral until you do, and it flows into the Net Score at the weight you assign it.
Note on the Fibonacci Auto direction: because the orientation follows the forecast bias, it can flip while regime confidence is low. If you have already made the directional call, force the Direction to Uptrend or Downtrend to lock the levels in place.
█ REPAINTING AND CONFIRMATION
• Every request.security() call uses lookahead_off.
• Fractals and divergence pivots confirm a fixed number of bars after the extreme (the Williams definition). They are late by design and are never repainted retroactively.
• Higher-timeframe values update while the live HTF bar forms and finalize at its close — treat reads as firm at the close of the relevant bar.
• Dynamic alerts fire on confirmed bars only.
█ SETTINGS NOTES
Every input carries a tooltip explaining what it does and what its default means. The highest-leverage settings are: MAs Required to Confirm Trend (the consolidation-first switch), the six Forecast Weights, the Probability Mapping group (prior, sensitivity, floor, actionable threshold), the Fibonacci Anchor Source and Direction, the EMA-Fib Confluence conditions, and — if you enable the signal row — the Entry Trigger mode, tolerance mode (% of price vs. ATR fraction), confirmation closes, and cooldown.
█ LIMITATIONS
• This is an indicator (decision support), not a strategy: it produces no performance statistics, and its Bull / Base / Bear percentages are the output of a transparent, user-weighted scoring model — heuristic evidence weighting you control, not a statistical prediction of returns.
• The Discretionary Overlay only contributes what you put into it.
• Fractal-based structure confirms with a deliberate lag; the tool trades immediacy for reliability.
• Defaults assume daily/weekly charts on liquid symbols; intraday works, but the higher-timeframe modules are less in their element there.
• Drawing objects (lines, labels, boxes) are pooled with configurable caps; the oldest objects are removed first.
█ DISCLAIMER
This script and its description are for educational and informational purposes only and do not constitute financial advice. No indicator predicts market outcomes. The tool is built to make its reasoning fully inspectable so that you can evaluate, adjust, and own your decisions. Always do your own research and manage your own risk. Indicator

KRT Kalman Regime Tricolor# 📊 KRT — Kalman Regime · Tricolor
**Designed and statistically validated for 🥇 GOLD and Ξ ETHEREUM.** A regime compass, not a buy signal: KRT reads the market on three layers — background regime, trend, your candle — and shows you which way the wind blows at every moment: 🟢 long · 🔴 short · 🔵 wait.
**⚡ ZERO lookahead, ZERO repaint.** Every signal appears in real time using only the information available at that moment, and whatever is printed at a bar close never changes afterwards. Many indicators look perfect because they quietly redraw the past — KRT is built for the opposite: what you see in replay is exactly what you would have seen live.
## ⚡ Quick start (30 seconds)
The colored BACKGROUND = the underlying regime.
Green 🟢 = bull regime installed → longs carry. Red 🔴 = bear regime installed → shorts carry. No color = no regime → caution.
The CURVE trails price like a stop line: below the candles in an uptrend, above them in a downtrend. Price crossing the curve = the reversal.
The curve's intensity = the strength of the authorization.
BRIGHT = trend aligned with the regime. Pale = secondary bias only. Blue = wait.
THE MARKERS — one single rule:
SOLID green or red marker (big triangle OR diamond) = GO. Blue = wait. Small = provisional.
🟢▲ / 🔴▼ BIG triangle — GO: reversal confirmed AND regime aligned.
🟢◆ / 🔴◆ Diamond — Deferred GO: the regime installs while the trend already points that way (often follows a big blue triangle). Same strength as a big colored triangle.
🔵▲ / 🔵▼ BIG blue triangle — reversal confirmed but no regime behind it → wait (a diamond will tell you if it becomes a GO).
▵▿ Small triangles (any color) — early alerts on your chart, ahead of confirmation. Provisional.
No thinking required: solid + colored = apply your strategy · blue = patience · small = not yet.
Drop it on gold or Ethereum, chart timeframe 5m–15m. Run YOUR strategy on top: KRT gives the direction, you handle entries, stops and exits.
## ⚠️ Before you use it
This is an indicator, NOT a strategy: it provides no entry or exit points.
Validated with permutation tests on gold and Ethereum. On Bitcoin the detection displays but the statistical edge is not demonstrated; on major forex pairs it is absent. Test it yourself before using it elsewhere.
The background regime changes slowly (weeks): that is by design — it filters, it does not scalp.
## 🔍 Understanding the display (going deeper)
THE THREE LAYERS
Regime (background, default 8H) — a slow Kalman trend filter with hysteresis: the background only colors once the regime is installed (default 3 days, adjustable). Locked at its own bar close: it does not flicker and does not repaint.
Trend (curve, default 1H) — the exact price level that would flip the trend filter, computed in advance: the distance between price and curve measures the strength of the trend.
Your candle (the chart) — the curve is monitored at your chart's granularity: you see the flip before the 1H close (small triangles), the close confirms it (big triangles).
HOW TO READ IT
Green background + bright green curve + GO = every layer agrees: the most favorable long context. Mirror in red for shorts.
Pale green curve = uptrend without an installed regime — weak bias.
Pale red curve = intraday "breather" (recurring windows of weakness inside an uptrend) — a short-lived bias, not an invitation to swing short.
Blue = no statistical edge. The best trade is often no trade.
After a bullish GO, price often retests the curve before continuing: aim for the retest rather than the impulse.
TIMEFRAMES & SETTINGS
Chart from 1m to 1H (5m–15m recommended).
Trend TF / Regime TF: the only settings an advanced user may change (swing trading: 4H/D).
Regime installation age (default 72h): higher = rarer, more reliable background; lower = more reactive, more false regimes.
Everything else (q values, thresholds, windows): the calibrated and validated core of the model — keep the defaults.
---
KRT is a decision-support tool based on historical data. Past performance does not guarantee future results. Manage your risk. Indicator

Wave Structure PRO v2 [Viprasol]Wave Structure PRO v2 is an automated Elliott Wave structure engine. It builds a ZigZag from confirmed pivots, searches for a valid 1-2-3-4-5 impulse and the following A-B-C correction, validates every candidate against Elliott's three hard rules, and scores how closely each wave matches its ideal Fibonacci proportion. On top of the count it draws the Elliott base channel, Wave 3 / Wave 5 Fibonacci targets, the next-wave retrace zone, and the exact price level where the count becomes invalid.
This is a structure assistant, not a prediction oracle. Elliott counting is inherently ambiguous, and this engine recounts as new pivots confirm. Everything it shows is derived from confirmed swing points, and it tells you honestly when no valid count exists.
HOW IT WORKS
ZigZag Pivot Engine:
Swing highs and lows are detected with a symmetric pivot window (default 8 bars left and right). A pivot only enters the structure after it is confirmed, and consecutive same-direction extremes are merged so the ZigZag always alternates high-low-high-low. The engine keeps the most recent 32 pivots as its working structure.
Sliding-Window Count Search:
The engine scans across the entire pivot structure for the most recent valid count — it does not require the pattern to end exactly at the newest pivot. A completed impulse whose correction is still developing stays on the chart and is marked "prior" in the panel, so a single awkward swing at the right edge does not wipe the analysis. At each candidate position a full 9-pivot impulse + A-B-C structure is preferred over a 6-pivot impulse alone.
Hard-Rule Validation:
Every candidate impulse must pass Elliott's three non-negotiable rules before it is accepted:
1. Wave 2 never retraces more than 100% of Wave 1
2. Wave 3 is never the shortest among Waves 1, 3, and 5
3. Wave 4 never enters the price territory of Wave 1
The A-B-C correction is additionally validated for direction and structure (B stays below the impulse extreme, C extends beyond A).
Fibonacci Quality Score:
Each wave is measured against its textbook ideal — Wave 2 near 0.5-0.618 of Wave 1, Wave 3 extending 1.618+ of Wave 1, Wave 4 near 0.382 of Wave 3, Wave 5 near equality with Wave 1. The four fits combine into a 0-100 "textbook fit" score. Extended fifth waves are scored against the alternative ideal of 0.618 x (Wave 1 + Wave 3), so a legitimately extended fifth is recognized instead of being punished, and the panel flags it as "extended 5th".
Invalidation Level:
For every accepted count the engine draws the price at which the structure stops being valid — a correction that retraces 100% of the impulse start invalidates the count. The exact level is shown on the chart, in the panel, and in the data window, giving you an objective line in the sand instead of a subjective opinion.
Alternation Check:
Waves 2 and 4 are compared as retracements of Wave 1 — when their depths differ meaningfully the panel confirms the alternation guideline is present, and shows an explicit "absent" flag when it is not.
KEY FEATURES
- Automatic 1-5 impulse and A-B-C correction detection with wave labels on the chart
- Sliding-window search — finds the most recent valid count anywhere in the structure, marked "prior" when its final pivot is not the newest swing
- Elliott's 3 hard rules enforced on every count — invalid structures are never labeled
- 0-100 Fibonacci quality score with per-wave ratio annotations at each pivot
- Extended fifth wave recognition with alternative 0.618 x (W1+W3) scoring path
- On-chart invalidation level with price label
- Elliott base channel (2-4 trendline with parallel through Wave 3)
- Wave 3 and Wave 5 Fibonacci extension targets with configurable multiples
- Next-wave retrace target zone (0.382-0.618 of the full impulse)
- Analysis panel: count state, quality, all four wave ratios, alternation, rule status, invalidation price
- Data-window outputs (quality, direction, stage, invalidation) usable by strategies and screeners via input.source
- Transition-based alerts that fire on state changes, not on every pivot refresh
HOW TO USE
Setup:
1. Add to any chart — works on all markets and timeframes
2. Use a standard candlestick chart (not Heikin Ashi)
3. Tune "Swing Sensitivity" to the wave degree you trade: higher values = larger-degree waves, lower values = smaller subdivisions
4. Defaults (sensitivity 8) suit 1H-4H charts on liquid instruments
Reading the Chart:
- Numbered labels 1-5 mark the impulse pivots; A-B-C labels mark the correction (orange)
- Small ratio numbers at pivots 2, 3, 4, 5 show each wave's Fibonacci proportion
- Dotted / dashed blue lines = Wave 3 and Wave 5 extension targets
- Cyan channel = Elliott base channel projected forward
- Purple box = expected retrace zone for the next corrective wave
- Red line = invalidation level; if price crosses it, the count is wrong
- Panel header: up/down arrow shows count direction; "prior" means the count completed before the newest swing
Reading the Panel:
- Quality 70+ = clean textbook structure; below 50 = forced fit, treat with caution
- "NO COUNT" genuinely means no valid structure exists right now — the engine never shows leftover metrics from a dead count
- The Invalidation row gives the exact price that voids the current count
SETTINGS
ZigZag: Swing sensitivity (pivot bars left/right), ZigZag visibility and color.
Waves: Wave label toggles for 1-5 and A-B-C, bullish/bearish/corrective colors, label size.
Fibonacci & Quality: Ratio annotations toggle, target visibility, Wave 3 and Wave 5 extension multiples, target color.
Channel & Target Zone: Base channel toggle and color, retrace zone toggle and color.
Invalidation: Level visibility and color.
Analysis Panel: Show/hide, position.
Alerts: Quality threshold for the high-quality alert, dynamic alert() messages toggle.
ALERTS
1. Count found — a new valid wave count appeared (fires once per count, not on every pivot extension)
2. Count invalidated — the active count stopped being valid
3. 1-5 + A-B-C complete — the correction finished, full cycle in place
4. High-quality count — a new count scored above your quality threshold
With "Dynamic alert() Messages" enabled, alert() notifications include the symbol, timeframe, direction, quality score, and invalidation price. Create the alert with condition "Any alert() function call".
LIMITATIONS & DISCLAIMER
- Elliott Wave counting is subjective by nature; this engine applies one rigorous, rule-based interpretation and recounts as new pivots confirm
- Pivots confirm with a delay equal to the swing sensitivity — labels appear after the swing completes, never in real time at the extreme
- The count can change when a developing swing extends; the transition alerts are designed around this, firing on genuine state changes only
- Wave degree is determined by your sensitivity setting; the engine does not track multiple degrees simultaneously
- Quality scoring measures Fibonacci proportion fit, not probability of continuation
- This indicator is for educational and analytical purposes only — it is not financial advice. Always use proper risk management.
ORIGINALITY
All code is original Viprasol work. Elliott Wave theory itself is public knowledge (R.N. Elliott); no third-party script was reused. v2 supersedes Wave Structure PRO with a stale-state fix, sliding-window count search, invalidation levels, extended-fifth scoring, data-window outputs, and transition-based alerts. Indicator

Bitcoin Power Law Corridor (Santostasi)This macro indicator plots the Bitcoin Power Law Corridor, based on the renowned mathematical model popularized by astrophysicist Giovanni Santostasi and researcher HC Burger. Unlike traditional financial models that rely on human assumptions (like the failed Stock-to-Flow model), the Power Law is a scientific theory based on organic network growth, similar to structures found in physics and biology.
Bitcoin does not grow exponentially forever; instead, it follows a sub-exponential growth curve with diminishing relative returns but massive absolute gains. This script tracks that exact path and resolves a common limitation in TradingView by using advanced time-based trendlines to project the bands into the empty future canvas.
How the Math Works
The indicator calculates the fair value of Bitcoin using the time elapsed since the Genesis Block (January 3, 2009) raised to a specific power (exponent n ≈ 5.845).
This growth pattern mimics two fundamental natural laws:
1. Kleiber's Law (Biology): Demonstrates that as living organisms grow larger, their energy efficiency increases scalingly. Similarly, the Bitcoin network becomes more robust and stable as it grows.
2. Urban Scaling Laws (Cities): Cities like Rome or New York grow organically according to a power law. Because millions of people freely choose to interact within them, they compound over centuries without a single point of failure. Bitcoin's price chart directly mirrors this organic network density.
The Three Structural Bands
On a Logarithmic scale, this indicator displays three vital structural milestones:
Blue Line (Fair Value): The mathematical median and fundamental fair price of Bitcoin based on Metcalfe's Law (network effects) and global adoption.
Green Dashed Line (The Floor): The ultimate macro defense line (calculated around the P10 percentile). Historically, Bitcoin has never closed a weekly candle below this hard floor. It serves as the ultimate long-term accumulation zone.
Red Dashed Line (The Ceiling): The overextension/bubble band. When price approaches this line, the market is historically overextended (e.g., 2013 and 2017) and highly risky.
Key Features of this Script
Future Projection: Standard TradingView lines stop at the current live bar. This script bypasses that limitation using line.new segments, allowing you to drag the chart to the left and view the exact mathematical support and resistance targets for 2028, 2034, and beyond.
Fully Customizable: You can tweak the Genesis date, change the power law exponent, or adjust the log-offsets for the floor and ceiling bands in the settings menu.
CRITICAL INSTRUCTION
This indicator MUST be viewed on a Logarithmic Scale (LOG) .
Click the 'LOG' button in the bottom-right corner of your TradingView chart.
On a standard linear scale, the bands will be completely distorted and unusable.
Best viewed on the Daily (1D) or Wekely (1W) timeframe. Indicator

DeltaFlow Trend NavigatorDeltaFlow Trend Navigator
Author: drsamgeorge
License: Free to use, share, and distribute with attribution. Suggested license: Creative Commons Attribution 4.0 International (CC BY 4.0).
Use: primarily STOCKS, check with the win rate. Any time frame.
DeltaFlow Trend Navigator is a Pine Script v6 chart overlay designed to help traders read trend direction, pressure, entry location, risk, and target context in one place. It combines EMA trend zones, delta-style pressure logic, RSI, ADX/DI, Supertrend bias, automatic percentage targets, trade boxes, and a compact decision panel.
This tool is educational and intended for decision support. It does not guarantee profit and should not be treated as financial advice.
What The Indicator Tries To Show
The main idea is simple: a trade setup is stronger when several things agree at the same time.
The indicator looks for:
- Trend direction using fast and slow EMAs, with optional EMA 200 filtering.
- Buying or selling pressure using candle position, volume, and cumulative delta-style logic.
- RSI bias and optional RSI candle-color clues.
- ADX/DI trend strength and direction.
- Current and higher-timeframe Supertrend bias.
- Entry location around the EMA zone, such as pullback, continuation, or trend-side entries.
- Optional exception entries when both Supertrends align and RSI crosses 55 upward for bullish entries or 45 downward for bearish entries.
When enough conditions agree, the chart prints a BUY or SELL marker.
Understanding The EMA Zone
The colored band between the fast EMA and slow EMA is the main location guide.
Common entry-location modes:
- Pullback Only: looks for price to return into, touch, or stay close to the EMA zone.
- Pullback + Continuation: allows both EMA-zone pullbacks and strong continuation candles after price leaves the zone.
- Trend Direction Only: looser mode, allowing trades when price is on the correct side of the EMA midpoint.
The panel row called ENTRY LOC shows where the latest signal came from. This is important for optimization. If too many late entries appear, try Pullback Only. If too many moves are missed, try Pullback + Continuation.
Exception entries may show as RSI 55 cross + ST alignment or RSI 45 cross + ST alignment. These are designed for cases where current and higher-timeframe Supertrend agree and RSI crosses a key level in the trend direction. They can still draw a trade box, but should be reviewed with the same risk controls as any other signal.
Reading The Panel
The panel is designed to be read quickly:
- BIAS: latest BUY, SELL, or WAIT state, with confidence.
- ENTRY / SL: latest entry and stop-loss area.
- RR TARGETS: risk-reward targets based on the stop.
- Percentage target row: current percentage TP marker levels, either manual or auto-timeframe.
- ENTRY LOC: the entry mode and exact signal location.
- MOMENTUM: RSI plus Supertrend alignment between the current chart timeframe and the selected higher timeframe.
- FILTERS: RSI, ADX, and Supertrend filter status.
- CAUTION: advisory market-condition warning, such as low volatility, low volume, weak ADX, chop, or mixed Supertrend.
- WIN timeframe: live chart-history hit rate for TP1, TP2, and TP3 before stop.
- WHY: plain-language reason for the latest signal.
How To Use It As A Beginner
Start with the defaults first.
Look for a signal only when the panel agrees with the chart:
1. The EMA zone should support the direction.
2. The signal should appear near a sensible location, not after a huge exhausted candle.
3. Supertrend should ideally agree with the direction, especially on the higher timeframe.
4. ADX should show that the market has enough trend strength.
5. The CAUTION row should not be ignored. Low volatility, low volume, chop, weak ADX, or mixed Supertrend can reduce trade quality.
6. The stop and targets should make sense visually before taking the trade.
For BUY ideas, prefer price above the EMA zone or pulling back into it during a bullish structure.
For SELL ideas, prefer price below the EMA zone or pulling back into it during a bearish structure.
Avoid using any single signal blindly. The indicator is best used as a structured checklist.
Optimizing The Indicator
Useful settings to test:
- Entry Location Mode: controls whether signals are pullback-based, continuation-based, or broader trend-side entries.
- Min Score To Trade: higher values reduce signals and may improve selectivity.
- Signal Cool Off: helps reduce repeated signals in the same move.
- RSI Cross + Supertrend Alignment Entry: allows exception entries when RSI crosses 55 upward or 45 downward in the direction of aligned Supertrends.
- Use Supertrend As Filter: can make signals stricter by requiring current or higher-timeframe Supertrend agreement.
- Auto Higher TF Profile: changes which higher Supertrend timeframe is compared with the current chart Supertrend. Responsive uses a closer higher timeframe and gives more signals. Balanced is the default middle ground. Anchor uses a larger higher timeframe and gives stricter alignment.
- Trade Box Target Mode: Risk Reward is the default, with TP1 at 1:1R. Percent Targets can be selected if you prefer the trade box to use the percentage target levels.
- Profit % Mode: Auto Timeframe adapts the dotted percentage target markers to the chart timeframe; Manual lets you set your own.
- EMA Zone Tint Source: Supertrend Alignment is the default. EMA Trend colors the band from the EMA relationship only; RSI + RSI SMA and Supertrend modes fully control the zone color themselves.
- Session Markers / Caution: named global session markers are included for India, Tokyo, London, New York, and Sydney. Each session has its own colour, solid vertical lines mark the session open, dashed vertical lines mark the session close, and tiny labels show only the place name.
- Reference Candle: optional previous-day and today OHLC candles can be shown on the right side of the chart. The previous-day candle uses the last completed daily open, high, low, and close; the today candle updates with the developing daily OHLC. Tiny O/H/L/C labels provide quick context.
The WIN row in the panel can help compare settings on the current chart. It tracks whether TP1, TP2, or TP3 was reached before the stop after each confirmed signal. Treat it as a practical chart-history guide, not a full broker-grade backtest.
Suggested Trading Workflow
1. Choose your chart timeframe.
2. Confirm the higher-timeframe Supertrend bias.
3. Watch the EMA zone for pullback or continuation setups.
4. Wait for a BUY or SELL signal.
5. Read ENTRY LOC and WHY before acting.
6. Check Entry / SL and the percentage targets.
7. Skip trades where the stop is too wide, the signal is late, or the market is choppy.
## Final Note
DeltaFlow Trend Navigator is built to help traders slow down and read context before entering. It works best when used with risk management, position sizing, and patience.
Indicator

Indicator

Indicator

Indicator

Cardwell Range Analyze [MarkitTick]💡 A comprehensive, all-in-one technical analysis suite designed to decode market regimes, identify high-probability momentum shifts, and automate risk management visualization. Built upon the foundation of Andrew Cardwell's advanced Relative Strength Index (RSI) theories, this tool transcends traditional oscillator analysis. Rather than relying on static overbought and oversold thresholds, it dynamically tracks regime shifts by observing where momentum consolidates. When combined with trend confirmation, volatility-based targets, and directional movement filters, it provides a holistic view of the market state directly on your chart.
✨ Originality and Utility
Most traders utilize momentum oscillators in a vacuum, searching for mean-reversion signals at arbitrary boundaries. The utility of this script lies in its departure from that static approach. It introduces a multifaceted evaluation system that cross-references momentum bands with structural trend data. By integrating a Higher Timeframe (HTF) directional filter and an Average Directional Index (ADX) volatility threshold, it systematically filters out market noise and chop.
Its originality shines through the automated Trade Tools suite. Upon detecting a valid regime shift, the indicator instantly projects Average True Range (ATR) based Stop Loss and Take Profit levels, complete with risk-to-reward zoning. This allows traders to visually assess the mathematical viability of a setup before execution. The inclusion of a real-time diagnostic dashboard further elevates its utility, offering a heads-up display of all underlying metrics without cluttering the primary price action.
🔬 Methodology and Concepts
● Cardwell RSI Framework
Traditional RSI theory dictates that an asset is overbought at 70 and oversold at 30. However, the foundational concept here relies on range shifts. In a robust uptrend, RSI rarely reaches 30; instead, it finds support around 40 and can push up to 80. Conversely, in a downtrend, RSI encounters resistance around 60 and can fall to 20. This script mathematically codifies these ranges.
● Regime Confirmation
A raw regime is identified when the price resides on the correct side of the Trend Moving Average (SMA) while the RSI operates within the corresponding Cardwell range. To eliminate premature signals, a confirmation threshold requires the market to sustain this raw state for a consecutive number of bars.
● Structural and Volatility Filtering
To ensure signals align with macro momentum, the script queries a higher timeframe's trend state using non-repainting historical referencing. Additionally, the ADX is calculated to measure the absolute strength of the current trend. If the ADX falls below the minimum threshold, the market is deemed sideways, and signals are suppressed.
● Dynamic Risk Mapping
Once a validated signal fires, the script calculates dynamic price levels based on current market volatility (ATR). The Stop Loss is mapped at a fractional multiplier against the entry, while Take Profit levels are projected at linear multiples, mapping out a structured trade lifecycle.
🎨 Visual Guide
● Heatmap Candles
The standard price candles are dynamically recolored to reflect the prevailing market regime.
Teal Candles: Indicate a confirmed Bullish Regime.
Red Candles: Indicate a confirmed Bearish Regime.
Gray Candles: Indicate a Neutral state where conditions are mixed.
Black Wicks/Borders: Maintain visual clarity regardless of the body color.
● Trade Levels and Zones
When a signal triggers, specific horizontal projections appear on the chart:
Entry Line: A dashed blue line representing the closing price of the signal bar.
Stop Loss (SL) Line: A solid red line marking the invalidation point.
Take Profit (TP1, TP2, TP3) Lines: Dashed teal lines marking incremental profit targets.
Risk Fill: A translucent red background shading the area between the Entry and the Stop Loss.
Reward Fill: A translucent teal background shading the area between the Entry and the highest Take Profit.
● Dashboard
A specialized table anchored to the chart corner providing real-time data:
Regime: Displays current state (BULLISH, BEARISH, or NEUTRAL) in respective colors.
RSI Value: A visual progress bar measuring current RSI against a 100-scale, color-coded by intensity.
Trend & Ranges: Explicit text readouts of the current MA trend direction and defined RSI boundaries.
ADX Strength: A progress bar indicating the conviction of the trend.
📌 Note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
● Interpreting Regimes
Monitor the color of the candles. A transition from Gray to Teal suggests a bullish momentum shift aligning with the underlying trend. This is your primary directional bias. You should generally look for buying opportunities when candles are Teal and selling opportunities when they are Red.
● Acting on Signals
When all conditions (Cardwell Range, Trend MA, HTF Trend, and ADX Chop Filter) align, a BUY or SELL label will populate below or above the price. These represent active momentum shifts.
● Managing Risk
Do not trade blindly on signals. Upon a signal firing, visually inspect the red Risk Zone versus the teal Reward Zone. Ensure the projected Stop Loss aligns with logical market structure (like a recent swing low or high). Use the progressive TP1, TP2, and TP3 lines to scale out of positions as the market moves in your favor.
● Monitoring the Dashboard
Keep an eye on the ADX Strength bar in the dashboard. If the bar is predominantly empty and red, the market is consolidating. Wait for the ADX bar to fill and turn orange or green before expecting strong follow-through on any signals.
⚙️ Inputs and Settings
• Core Settings
RSI Length: The lookback period for momentum calculation (default 14).
Trend MA Length: The lookback period for the primary structural trend baseline (default 50).
• Filters
Bull/Bear Ranges: The upper and lower bounds for the Cardwell RSI shifts.
Regime Confirm Bars: The consecutive number of bars required to validate a new regime.
Use HTF Confirmation: Toggles the higher timeframe trend filter.
HTF Timeframe: Select the specific higher timeframe to query (e.g., 240 for 4-hour).
Use Chop Filter: Toggles the ADX volatility requirement.
ADX Min Strength: The threshold value ADX must exceed to allow signals.
• Trade Tools
ATR Length: The lookback period for volatility modeling.
SL/TP Multipliers: Fractional inputs to dictate how wide the Stop Loss and Profit Targets are projected relative to the ATR.
• Alerts
Action Strings: Customizable JSON payload strings for integrating with third-party automated execution platforms via webhooks.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator synthesizes three foundational pillars of quantitative market analysis: momentum distribution, structural mean, and volatility modeling.
First, it deconstructs the Relative Strength Index, initially formulated by J. Welles Wilder Jr. in 1978. Wilder mathematically defined momentum as the ratio of average gains to average losses. However, the Cardwell extension incorporated into this script addresses a fundamental flaw in Wilder's fixed bounding by applying regime-dependent probability distributions. In a positively skewed asset (uptrend), the probability mass of the RSI shifts upward, meaning a reading of 40 represents a statistically significant mean-reversion point (oversold) rather than 30.
Second, the script applies directional movement theory via the Average Directional Index (ADX). The ADX smooths the differences between the positive and negative directional indicators (+DI and -DI) to isolate the scalar strength of the trend vector, devoid of direction. By requiring a minimum ADX threshold, the algorithm mathematically enforces a non-stationary environment, filtering out random walk (white noise) conditions where momentum signals carry no statistical edge.
Finally, the projection of trade levels utilizes the Average True Range (ATR). ATR is a rigorous measure of the variance in asset prices, accounting for opening gaps and limit moves. By mapping target boundaries as functional multiples of ATR, the script ensures that standard deviation and local market dispersion strictly govern risk parameters, adapting dynamically to expanding or contracting market distributions.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Previous High/Low OnlyPrev H/L
This indicator displays the Previous Day, Previous Week, and Previous Month High/Low levels with the option to choose how many periods back you want to view.
Unlike most Previous High/Low indicators that only show the latest levels, this one lets you select older levels. For example, setting **Days Ago = 3** will display the High and Low from **3 trading days ago**. The same applies to Weeks and Months.
The horizontal lines start from the candle where the High or Low was actually created instead of stretching across the entire previous session, making the chart cleaner and easier to read.
--Features
* Previous Day High & Low
* Previous Week High & Low
* Previous Month High & Low
* Choose how many Days, Weeks, or Months back to display
* Optional EQ (Midpoint)
* Custom line styles and colors
* Clean labels
* Lightweight and easy to use
--Best For
* Support & Resistance
* Liquidity Levels
* ICT / SMC Concepts
* Day Trading
* Swing Trading
* Scalping
--Known Issues
This indicator is mainly designed for lower and matching timeframes.
For example:
* **Previous Day** works correctly on **1H** and **1D** charts, but it may not display correctly on the **1W** chart.
* **Previous Week** works correctly on **1H**, **1D**, and **1W** charts, but it may not display correctly on the **1M** chart.
* **Previous Month** is intended for lower timeframes and may not behave as expected on higher timeframe charts.
This is a known limitation of the current version and may be improved in future updates.
---
If you find any bugs or have suggestions for new features, feel free to leave a comment. Feedback is always appreciated!
Indicator

CQ_(L)_Reverse MACD Overlay================================================================================
CQ_(L)_REVERSE MACD OVERLAY
User Manual
================================================================================
OVERVIEW
--------------------------------------------------------------------------------
This indicator draws a full MACD system (MACD line, EMA signal, SMA signal,
and histograms) directly on the price chart instead of in a separate pane,
and adds "Reverse MACD" math that back-solves for the exact price level at
which the MACD line would turn, cross its signal line, or cross zero. In
other words, instead of just showing where MACD is now, it can tell you
what price needs to happen next for MACD's behavior to change.
It combines two lineages of prior work: the reverse-MACD price-solving
formulas (adapted from The_Caretaker) and a price-scaled overlay/dashboard
rendering engine (also adapted from The_Caretaker's dashboard work, with an
overlay rendering approach adapted from dgtrd).
SECTION 1 — MACD PROPERTIES
--------------------------------------------------------------------------------
Price Source (default: close)
Fast Period (default: 12)
Slow Period (default: 26)
EMA Signal Length (default: 9) - length of the EMA-based signal line
SMA Signal Length (default: 9) - length of the SMA-based signal line
Both an EMA-based and an SMA-based signal line are calculated simultaneously;
each can be shown or hidden independently (see Sections 3 & 4).
SECTION 2 — MACD LINE PLOT SETTINGS
--------------------------------------------------------------------------------
Show MACD Line - toggle the main MACD line on/off
Color Type - "Single" (one fixed color) or "Dual" (color changes
based on whether MACD is rising or falling bar to bar)
Single Color - color used when Color Type = Single
Dual Colors - separate Rising / Falling colors when Color Type = Dual
Line Width - 1-4
SECTION 3 — EMA SIGNAL LINE SETTINGS
--------------------------------------------------------------------------------
Same structure as the MACD line settings, applied to the EMA signal line:
Show EMA Signal, Color Type (Single/Dual), Single Color, Dual Rising/Falling
colors, Line Width. Shown by default.
SECTION 4 — SMA SIGNAL LINE SETTINGS
--------------------------------------------------------------------------------
Same structure again, applied to the SMA signal line. Hidden by default —
enable "Show SMA Signal" if you want to compare an SMA-based signal against
the EMA-based one.
SECTION 5 — EMA HISTOGRAM SETTINGS
--------------------------------------------------------------------------------
Show EMA Histogram - toggle histogram (MACD minus EMA signal)
Histogram Scaling Factor (0-10) - multiplies histogram height for visibility
Upper Rising / Upper Falling colors - used when histogram is >= 0
Lower Rising / Lower Falling colors - used when histogram is < 0
("Rising/Falling" is determined bar-to-bar on the histogram value itself)
SECTION 6 — SMA HISTOGRAM SETTINGS
--------------------------------------------------------------------------------
Same structure as the EMA histogram, but built from MACD minus the SMA
signal line. Hidden by default.
Note: if both EMA and SMA histograms are off, the "active histogram" used
internally falls back to raw MACD; if EMA histogram is on it takes
priority over SMA for any calculation that needs a single active series.
SECTION 7 — OVERLAY LAYOUT
--------------------------------------------------------------------------------
Highlight MACD/Signal Area
Fills the area between the MACD line and whichever signal line is
active (EMA takes priority if both are on). Fill color reflects
whether MACD is currently above (bullish, blue) or below (bearish,
orange) that signal line.
Display MACD/Signal Crosses
Shows small up/down triangle labels on the price chart itself
whenever MACD crosses over/under its active signal line.
Display Length (bars) (default 50, range 10-250)
How many recent bars are included in the overlay panel.
Placement (Top / Bottom, default Bottom)
Anchors the overlay panel to the highest or lowest visible price
over the Display Length window.
Height (default 7, internally inverted: 12 - input)
Controls how tall the MACD/signal/histogram panel appears. Lower
input values here produce a taller panel; higher input values
produce a shorter, more compressed one.
Vertical Position Adjustment (default 5, i.e. 0.5 internally)
Pushes the panel's baseline further from price based on the recent
high/low range, giving more or less separation from candles.
SECTION 8 — DASHBOARD
--------------------------------------------------------------------------------
Display Reverse MACD Dashboard - toggles an on-chart table
Position / Size - standard table placement and text size
(use Tiny on mobile, Small on web)
Text Color - table text color
BG MACD Falling / BG MACD Rising - background color used throughout the
table, switching based on whether MACD
is currently rising or falling
Table layout (columns: REVERSE MACD / ACTUAL / PROJECTION / LEVEL / DIF.):
Row 1 - Tendency: whether MACD is now rising or falling, the price
level ("Reverse ▲/▼") where that would flip, and the
dollar difference from current price.
Row 2 - EMA Signal: bars since the last EMA signal cross (with
direction arrow), the price level needed for MACD
to cross the EMA signal the *other* way, and the
dollar difference. Shows "OFF" if EMA signal is
disabled.
Row 3 - SMA Signal: same as Row 2, but for the SMA signal line. Shows
"OFF" if SMA signal is disabled.
Row 4 - Zero Cross: bars since MACD last crossed zero, the price level
needed for the next zero cross, and the dollar
difference.
Row 5 - MACD Now: current MACD, EMA signal, and EMA histogram values
(raw numbers, 4 decimal places).
Inline Label on Overlay (separate from the table)
Show Inline Label on Overlay - places a compact text label directly
next to the price-scaled MACD line
on the overlay panel, showing:
tendency (rising/falling), reverse
level + $ difference, EMA/SMA cross
levels + bars-ago, and the zero-cross
level + bars-ago.
Label Bar Offset (1-10) - how many bars to the right of the
last drawn bar the label sits.
Label Text Size - tiny/small/normal/large.
SECTION 9 — REVERSE MACD MATH (what the numbers mean)
--------------------------------------------------------------------------------
These are closed-form solutions (not simulations) for the exact price that
would need to print on the current bar to produce a specific MACD outcome:
Reverse Level (macd_eq)
The price at which the MACD line's slope would flip — i.e. the point
where MACD stops rising and starts falling, or vice versa.
Zero Cross Level (macd_level at 0)
The price at which MACD would cross the zero line.
EMA Cross Level (macd_cross_ema)
The price at which MACD would cross its EMA signal line.
SMA Cross Level (macd_cross_sma)
The price at which MACD would cross its SMA signal line.
Each of these is recalculated every bar using the prior bar's EMA/SMA
values algebraically solved for the current bar's price, so they update in
real time as price moves intrabar.
SECTION 10 — SIGNALS & ALERTS
--------------------------------------------------------------------------------
Long Cross / Short Cross shapes
Small up/down labels plotted below/above bars when MACD crosses over
or under whichever signal line is active (EMA preferred, otherwise
SMA). Controlled by "Display MACD/Signal Crosses."
Four built-in alerts (set these up in TradingView's Alert dialog):
Long : Early Warning - fires the moment MACD crosses over signal
Long : Trading Opportunity - fires one bar after, once the cross
has held (confirmation)
Short : Early Warning - mirror of the long early warning
Short : Trading Opportunity - mirror of the long confirmation
All four alert messages include exchange, ticker, price, and time.
SECTION 11 — HOW THE OVERLAY IS DRAWN (for reference)
--------------------------------------------------------------------------------
On the last bar, all previously drawn lines, histogram boxes, and fills are
deleted and redrawn across the "Display Length" window:
1. A baseline price is anchored to the highest (Top placement) or lowest
(Bottom placement) price over that window, adjusted outward using the
Vertical Position Adjustment and the recent price range.
2. Each bar's MACD, EMA signal, and SMA signal values are scaled relative
to the largest recent absolute MACD value ("oscHighest") and the
Height setting, then converted into a price offset from the baseline.
3. Line segments are drawn bar-to-bar for each enabled series (MACD, EMA
signal, SMA signal), plus histogram boxes for each enabled histogram.
4. If "Highlight MACD/Signal Area" is on, a colored fill is drawn between
the MACD line and the active signal line for each bar pair.
5. The inline label (if enabled) is placed a few bars to the right of the
last drawn bar, at the price-scaled Y position of the current MACD
value.
SECTION 12 — PRACTICAL NOTES & LIMITS
--------------------------------------------------------------------------------
- Declared limits: max_lines_count = 500, max_boxes_count = 250,
max_bars_back = 500. The drawing loop stops adding new lines once 501
are queued, as a safety guard.
- "Display Length" is capped at 250 bars; larger values increase how many
lines/boxes get drawn per refresh (relevant if you also enable both
histograms and the highlight fill at once).
- The Dashboard and the Inline Label are independent features — you can
run either, both, or neither without affecting the overlay lines
themselves.
- EMA signal takes priority over SMA signal for cross detection, active
histogram fallback, and the "Highlight MACD/Signal Area" fill whenever
both are enabled at the same time.
- The Reverse MACD levels (Reverse, Zero Cross, EMA Cross, SMA Cross) are
price *projections* based on current EMA/SMA state — they describe what
price would need to do, not a prediction that it will.
================================================================================
End of manual — CQ_(L)_Reverse MACD Overlay
================================================================================ Indicator

Matrix SMCMatrix SMC
Matrix SMC is a complete Smart Money Concepts toolkit that maps market structure the way institutional price action is read. It detects swing and internal structure shifts, marks the zones where price is likely to react, and keeps the chart clean and readable while doing it.
What it detects
Market structure (BOS / CHoCH). The script tracks swing and internal pivots and marks every Break of Structure (trend continuation) and Change of Character (potential reversal) with a labelled line, on two independent layers so you can read both the higher and lower structure at once.
Swing points. Each confirmed swing is tagged HH, HL, LH, or LL, so the sequence of the trend is visible at a glance.
Strong / Weak highs & lows. The most recent structural extremes are labelled by their strength relative to the active trend.
Order blocks. The last significant candle before a structural break is boxed as a demand or supply zone, and automatically removed once price mitigates it.
Fair value gaps. Three-candle imbalances are boxed and cleared automatically once filled.
Equal highs & lows. Liquidity pools at equal levels are flagged as EQH / EQL.
Premium / Discount / Equilibrium zones. The current dealing range is split into premium, discount, and equilibrium, so entries can be taken from the favourable half of the range.
Previous H/L (MTF). Previous Daily, Weekly, and Monthly highs and lows (PDH/PDL, PWH/PWL, PMH/PML) are projected as key reference levels.
Settings
Every module can be toggled and styled independently: structure lengths, order block count, FVG and equal-level sensitivity, zone colors, and which higher-timeframe levels to display.
Notes
Structure and swing events are based on confirmed pivots, so they finalize after the pivot is confirmed and do not repaint once printed. Candles are never recolored, keeping your own chart styling intact. Full alerts are included for structure shifts, order blocks, fair value gaps, and equal highs/lows.
Access
This is an invite-only script. To request access, visit: matrixalgo.io
Risk disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice and does not guarantee any result. Past performance does not predict future performance. Trading involves substantial risk; always use independent analysis and proper risk management, and never trade with funds you cannot afford to lose. Indicator

Indicator

EMA ProEMA Pro
- Overview
EMA Signal Pro is a professional trend-following signal indicator built around the combination of EMA 200 breakout detection and EMA alignment confirmation.
Instead of generating signals from every price movement, the indicator waits for multiple conditions to align before issuing a trade signal. This approach helps filter out many low-probability setups and focuses on stronger trend continuation opportunities.
The indicator works independently on all TradingView timeframes, making it suitable for scalping, intraday trading, swing trading, and long-term investing.
- Signal Logic
LONG
A LONG (Buy) is generated only when all three conditions below are met simultaneously.
1️⃣ EMA 200 Bullish Breakout
The current candle must break above the EMA 200.
This means:
The previous candle closed below EMA 200.
The current candle closes above EMA 200.
This confirms that price has crossed the primary long-term trend line.
2️⃣ Bullish Candle Structure
The breakout candle must have:
Lower wick larger than the upper wick
This indicates rejection of lower prices and strong buying pressure during the breakout.
3️⃣ Bullish EMA Alignment
The exponential moving averages must be aligned as follows:
EMA 20 (Highest)
EMA 50
EMA 100
EMA 200 (Lowest)
This alignment confirms that short-, medium-, and long-term trends are all pointing in the same bullish direction.
SHORT
A SHORT (Sell) is generated only when all three conditions below are met simultaneously.
1️⃣ EMA 200 Bearish Breakout
The current candle must break below the EMA 200.
This means:
The previous candle closed above EMA 200.
The current candle closes below EMA 200.
2️⃣ Bearish Candle Structure
The breakout candle must have:
Upper wick larger than the lower wick
This indicates rejection of higher prices and strong selling pressure.
3️⃣ Bearish EMA Alignment
The EMAs must be aligned as follows:
EMA 200 (Highest)
EMA 100
EMA 50
EMA 20 (Lowest)
This confirms a strong bearish trend across multiple market horizons.
Only when all three conditions occur together will a SHORT signal be generated.
Moving Averages Used
EMA Period Purpose
EMA 20 20 Short-term trend
EMA 50 50 Medium-term trend
EMA 100 100 Medium-to-long-term trend
EMA 200 200 Primary long-term trend and breakout reference
-Customization
Display Options
Show or hide EMAs
Customize the color of each EMA individually
-Best Practices
Compatible with all TradingView timeframes, from 1-minute to Monthly charts.
Signals are generated only after candle close, preventing repainting during candle formation.
For optimal performance, combine this indicator with proper risk management and stop-loss placement.
The best results are typically achieved on higher timeframes, such as 1H, 4H, and Daily charts.
Designed primarily for trending markets. During sideways or ranging conditions, fewer signals are produced, helping reduce unnecessary trades.
© EMA Pro — All Rights Reserved
Indicator
