MA“5 / 10 / 20 / 60 / 240 Moving Averages, with a red background automatically highlighted when MA5 > MA10 > MA20.”
Indicators and strategies
FSVZO | Lyro RSFSVZO | Lyro RS
This script is a technical analysis tool called the FSVZO, or Fourier Smoothed Volume Zone Oscillator. It is designed to analyze market momentum and trend strength by combining price and volume data with advanced smoothing techniques. The goal is to help identify potential trends, overbought/oversold conditions, and divergence signals in a clear visual format.
Understanding the Indicator's Components
The indicator plots a main oscillator line and several supporting elements on a separate pane below the chart.
The Main Oscillator: This is the primary, colored wave. Its movement and color are key to interpretation.
Trend Direction: The color shifts between bullish and bearish tones based on the momentum of the oscillator. This provides a quick visual reference for the prevailing short-term trend.
Key Levels: Horizontal lines mark significant levels such as +60, +85, -60, and -85. Movements above +60 or below -60 can indicate strong momentum, while approaches to the extreme levels (+85/-85) may suggest overbought or oversold conditions.
Divergence Detection: The indicator can plot labels ("ℝ" for Regular, "ℍ" for Hidden) on the oscillator to signal potential divergences. These occur when the indicator's direction differs from the price action on the main chart and can sometimes foreshadow reversals or continuations.
Moving Average (MA): A central moving average line, based on the oscillator, helps to smooth out the data further and can act as a dynamic support or resistance level within the indicator pane.
White Noise Filter (Optional): This feature displays a histogram that represents market noise. It can be toggled on or off. Analyzing the histogram's behavior may provide additional context on the stability or volatility of the current trend.
Dynamic Background: The background of the indicator pane can change color to highlight periods where the momentum is particularly strong, based on the position of the moving average.
Suggested Use and Interpretation
Traders might use this indicator in several ways:
Trend Identification: Observe the color and position of the main oscillator. A predominantly bullish-colored oscillator above the zero line may suggest an upward trend, while a bearish-colored one below zero may suggest a downward trend.
Signal Confirmation: Look for the oscillator to cross key levels (like +/-40 or +/-60) in the direction of a suspected trend as a confirmation signal.
Divergence Analysis: When the price makes a new high or low that is not confirmed by a new high or low on the FSVZO oscillator (a divergence), it can be a warning of potential weakness in the trend. The "ℝ" and "ℍ" labels help to identify these scenarios.
Extreme Readings: Readings near the +85 or -85 levels can indicate that a price move may be overextended, which could precede a pause or reversal.
Customization Options
The indicator includes settings groups that allow you to adjust its behavior and appearance:
FSVZO Settings: Adjust parameters like Length and Sensitivity to make the oscillator more or less responsive to market movements.
Signals & Display: Modify visual aspects such as Smooth Length and Glowing Amount, or toggle features like the dynamic background on and off.
Colors: Choose from several pre-set color palettes to suit your visual preferences.
⚠️Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals.
Z-Score Trend Channels [BackQuant]Z-Score Trend Channels
A self-contained price-statistics framework that turns a rolling z-score into price channels, bias states, and trade markers. Run either trend-following or mean-reversion from the same tool with clear, on-chart context.
What it is
A rolling statistical map that measures how far price is from its recent average in standard-deviation units (z-score).
Adaptive channels drawn in price space from fixed z thresholds, so the rails breathe with volatility.
A simple trend proxy from z-score momentum to separate trending from ranging conditions.
On-chart signals for pullback entries, stretched extremes, and practical exits.
Core idea (plain English math)
Rolling mean and volatility - Over a lookback you get the average price and its standard deviation.
Z-score - How many standard deviations the current price is above or below its average: z = (price - mean) / stdev. z near 0 means near average; positive is above; negative is below.
Noise control - An EMA smooths the raw z to reduce jitter and false flickers.
Channels back in price - Fixed z levels are converted back to price to form the upper, lower, and extreme rails.
Trend proxy - A smoothed change in z is used as a lightweight trend-strength line. Positive strength with positive z favors uptrend; negative strength with negative z favors downtrend.
What you see on the chart
Channels and fills - Mean, upper, lower, and optional extreme lines. The area mean->upper tints with the bearish color, mean->lower tints with the bullish color.
Background tint (optional) - Soft green, red, or neutral based on detected trend state.
Signals - Bullish Entry (triangle up) when z exits the oversold zone upward; Bearish Entry (triangle down) when z exits the overbought zone downward; Extreme markers (diamonds) at the extreme bands with a one-bar turn.
Table - Current z, trend state, trend strength, distance to bands, market state tag, and a quick volatility regime label.
Edge labels - MEAN, OB, and OS labels slightly projected forward with level values.
Inputs you will actually use
Z-Score Period - Lookback for mean and stdev. Larger = slower and steadier rails, smaller = more reactive.
Smoothing Period - EMA on z. Lower = earlier but choppier flips; higher = later but cleaner.
Price Source - Default hlc3. Choose close if you prefer session-close logic.
Upper and Lower Thresholds - Default around +2.0 and -2.0. Tighten for more signals, widen for fewer and stronger.
Extreme Upper and Lower - Deeper stretch guards, e.g., +/- 2.5.
Strength Period - EMA on z momentum. Sets how fast the trend proxy flips.
Trend Threshold - Minimum absolute z to accept a directional bias.
Visual toggles - Channels, signals, background tint, stats table, colors, and optional last-bar trend label.
How to use it: trend-following playbook
Read the state - Uptrend when z > Trend Threshold and trend strength > 0. Downtrend when z < -Trend Threshold and trend strength < 0. Neutral otherwise.
Entries - In an uptrend, prefer Bullish Entry signals that fire near the lower channel. In a downtrend, prefer Bearish Entry signals that fire near the upper channel.
Stops - Conservative: beyond the extreme channel on your side. Tighter: just outside the standard band that framed the signal.
Exits - For longs, exit or trim on a cross back through z = 0 or a clean tag of the upper threshold. For shorts, mirror with z = 0 up-cross or tag of the lower threshold. You can also reduce if trend strength flips against you.
Adds - In strong trends, additional signals near your side’s band can be add points. Avoid adding once z hovers near the opposite band for several bars.
How to use it: mean-reversion playbook
Find stretch - Standard reversions: Bullish Entry when z leaves the oversold zone upward; Bearish Entry when z leaves the overbought zone downward. Aggressive reversions: Extreme markers at extreme bands with a one-bar turn.
Entries - Take the signal as price exits the zone. Prefer setups where trend strength is near zero or tilting against the prior push.
Targets - First target is the mean line. A runner can aim for the opposite standard channel if momentum keeps flipping.
Stops - Outside the extreme band beyond your entry. If fading without extremes, place risk just beyond the opposite standard band.
Filters - Optional: skip counter-trend fades against a very strong trend state unless your risk is tight and predefined.
Reading the stats table
Current Z-Score - Magnitude and sign of displacement now.
Trend State - Uptrend, Downtrend, or Ranging.
Trend Strength - Smoothed z momentum. Higher absolute values imply stronger directional conviction.
Distance to Upper/Lower - Percent distance from price to each band, useful for sizing targets or judging room left.
Market State - Overbought, Oversold, Extreme OB, Extreme OS, or Normal.
Volatility Regime - High, Normal, or Low relative to recent distribution. Expect bands to widen in High and tighten in Low.
Parameter guidance (conceptual)
Z-Score Period - Choose longer for a structural mean, shorter for a reactive mean.
Smoothing Period - Lower for earlier but noisier reads; higher for slower but steadier reads.
Thresholds - Start around +/- 2.0. Tighten for scalping or quiet ranges. Widen for noisy or fast markets.
Trend Threshold and Strength Period - Raise to avoid weak, transient bias. Lower to capture earlier regime shifts.
Practical examples
Trend pullback long - State shows Uptrend. Price tests the lower channel; z dips near or below the lower threshold; a Bullish Entry prints. Stop just below extreme lower; first target mean; keep a runner if trend strength stays positive.
Mean-revert short - State is Ranging. z tags the extreme upper, an Extreme Bearish marker prints, then a Bearish Entry prints on the leave. Stop above extreme upper; target the mean; consider a runner toward the lower channel if strength turns negative.
Potential Questions you might have
Why z-score instead of fixed offsets - Because the bands adapt with volatility. When the tape gets quiet the rails tighten, when it runs hot the rails expand. Your entries stay normalized.
Do I need both modes - No. Many users run only trend pullbacks or only mean-reversions. The tool lets you toggle what you need and keep the chart readable.
Multi-timeframe workflow - A common approach is to set bias from a higher timeframe’s trend state and execute on a lower timeframe’s signals that align with it.
Summary
Z-Score Trend Channels gives you an adaptive mean, volatility-aware rails, a simple trend lens, and clear signals. Trade the trend by buying pullbacks in green and selling pullbacks in red, or fade stretched extremes back to the mean with defined risk. One framework, two strategies, consistent logic.
Momentum Volume Analyzer [CHE] Momentum Volume Analyzer — Adaptive momentum with volume-gated signals and expressive visual cues
Summary
This indicator combines a normalized momentum oscillator with a volume Z-score gate and adaptive gradient visuals. The oscillator centers around a midline and scales between a lower and an upper bound. Intensity is derived from the distance to the midline and is normalized inside a rolling window, which helps keep contrast consistent across regimes. Volume pressure is compressed to a discrete level between one and ten and is used to qualify momentum flips and extremes. Layered “burst” markers and optional background gradients provide immediate visual emphasis without adding new data sources. Pine version is v6. The script runs in a separate pane.
Motivation: Why this design?
Common oscillators flip rapidly during noisy conditions or flatten during calm periods, which obscures actionable shifts. A rolling normalization keeps the visual intensity stable across different regimes, and a volume gate reduces reactions when participation is weak. The goal is clearer momentum shifts that are supported by measurable activity rather than cosmetic smoothing alone.
What’s different vs. standard approaches?
Baseline reference: Classical RSI-style oscillators or simple filtered momentum without volume gating.
Architecture differences:
Local window normalization with gamma control for contrast.
Volume converted to a Z-score and compressed into a discrete level between one and ten with a configurable cap.
Directional color gradients that intensify with distance from the midline.
Layered glow markers with optional trail and an internal label budget to avoid UI overload.
Practical effect: Signals are visually stronger only when both momentum and volume align; background and line colors convey regime strength at a glance.
How it works (technical)
Momentum core: A high-pass path with automatic gain control produces a bounded oscillator centered around a midline. A simple moving average smooths the result over a short window.
Normalization and contrast: The absolute distance from the midline is scaled inside a rolling window and limited between zero and one. Two gamma parameters separately shape contrast for the line and for labels.
Coloring: When the oscillator is above the midline, a green gradient is used; below the midline, a red gradient is used. Intensity increases with normalized distance. Optional area fill to the midline and a background gradient reinforce strength.
Volume levels: Volume is standardized over a lookback window, clipped by a user cap, and mapped to a level between one and ten. Only positive excursions are considered; non-positive values map to zero.
Event markers: When the oscillator reaches extreme zones and the volume level is positive, the script spawns layered circular labels at fixed y-positions. A small trail can extend behind the event. An internal queue discards the oldest labels when a user-defined maximum is exceeded.
Alerts: Alerts fire on overbought and oversold spikes, midline shifts with minimum intensity and volume, and continuation patterns inside strong zones.
Parameter Guide
TFRSI length (default six): Core momentum lookback. Shorter values react faster but are less stable.
Signal SMA (default two): Light smoothing of the oscillator. Larger values reduce jitter.
Gradient window (default one hundred): Normalization window for intensity. Longer values produce steadier contrast but slower adaptation.
Line/marker transparency (default zero): Visual prominence of drawings. Higher values reduce dominance.
Background on and BG transparency (defaults true and eighty-five): Enables and tunes the pane background gradient.
Area fill to fifty and Fill transparency (defaults true and eighty): Fills between the oscillator and the midline.
Gamma bars/labels and Gamma plot (defaults zero point seven and zero point eight): Contrast shapers for markers and line. Higher values compress low intensities.
Bottom marker and Show last N (defaults true and three hundred thirty-three): Optional compact heat markers with a display cap.
Up/Down colors: Dark and neon pairs for positive and negative regimes.
Lookback (default two hundred) and Z cap (default five): Volume standardization window and clipping level before scaling to one through ten.
Enable bursts, Layers, Trail, Trail transparency, Max live labels, Size scale: Control the layered glow effect, trail length, opacity, label budget, and size multiplier. Reducing the size scale lowers visual dominance.
Spike min level, Shift min level, Min intensity, Rise/Fall length: Gates for alerts; adjust to balance sensitivity and false positives.
Reading & Interpretation
Line color and intensity: Green shades above the midline indicate bullish pressure; red shades below indicate bearish pressure. Stronger color corresponds to stronger normalized distance.
Background and fill: Reinforce regime strength; consider reducing transparency when the pane feels too busy.
Bursts and trails: Emphasize volume-backed extremes. Larger bursts reflect stronger volume levels or scaling choices.
Volume level: Internal level between one and ten. Levels near the upper bound signal exceptional activity.
Practical Workflows & Combinations
Trend following: Use midline cross upward with minimum shift level and intensity as a trigger. Confirm with structure such as higher highs and higher lows. For shorts, reverse the conditions.
Exits and risk: Fade exposure when intensity weakens toward the midline or when volume level drops below the shift threshold. Consider disabling bursts when monitoring many symbols.
Multi-asset and multi-timeframe: Defaults are designed to travel across liquid futures, large-cap equities, and major crypto pairs. For higher timeframes, increase the lookback window and consider reducing the Z cap.
Behavior, Constraints & Performance
Repaint and confirmation: Signals are evaluated on the live bar. They can appear and withdraw before bar close. For confirmed signals, require closed-bar alerts or manual confirmation.
Higher-timeframe sources: Not used. No `security` calls.
Resources: `max_bars_back` is two thousand. The script uses arrays and label objects, including loops for trails. The label budget mitigates clutter.
Known limits: Very illiquid symbols with unstable volume can reduce the usefulness of the Z-score. Sharp regime changes can still produce brief flips.
Sensible Defaults & Quick Tuning
Starting point: TFRSI length six, Signal two, Gradient window one hundred, Z cap five, Spike level six, Shift level four, Min intensity zero point four, Rise length three, Size scale zero point five.
Too many flips: Increase Signal, increase Gradient window, or raise Shift level.
Too sluggish: Decrease TFRSI length or reduce Gradient window.
Bursts too dominant: Lower Size scale or reduce Layers; increase Trail transparency or set Trail length to zero.
What this indicator is—and isn’t
This is a visualization and signal layer that couples momentum with a volume gate and adaptive visuals. It is not a complete trading system, optimizer, or predictor. Use it together with market structure, risk controls, and position management.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Best regards and happy trading
Chervolino
2nd 1H: Midpoints (white=2nd mid, blue=2-candle range mid)2nd 1H: Midpoints (white=2nd mid, blue=2-candle range mid)
Cycle-Synced Channel Breakout📌 Cycle-Synced Channel Breakout – Detect Breakouts Confirmed by Candles and Momentum Cycles
📖 Overview
The Cycle-Synced Channel Breakout indicator is a precision breakout detection tool that combines the power of:
• Adaptive Keltner Channels
• Dominant Cycle Period Analysis (Ehlers-inspired)
• Candlestick Pattern Recognition (Engulfing)
This multi-layered approach helps identify true breakout opportunities by filtering out noise and false signals, making it ideal for swing traders and intraday traders seeking high-probability directional moves.
⚙️ How It Works
1. Keltner Channel Envelope
A dynamic volatility channel based on the EMA and ATR defines the upper and lower bounds of price movement.
2. Engulfing Candle Detection
The script detects strong bullish and bearish engulfing patterns, which often signal trend reversals or momentum continuations.
3. Dominant Cycle Momentum (Ehlers-inspired)
Using a smoothed power oscillator derived from a detrended price series, the indicator assesses whether momentum is accelerating during the breakout — filtering out weak moves.
4. Signal Confirmation Logic
A signal is only shown when:
• An engulfing pattern is detected, and
• Price breaks out of the Keltner Channel, and
• Momentum (cycle power) is rising
5. Visual Feedback
• Breakout signals are plotted with “BUY” or “SELL” labels
• Faded green/red background highlights confirmed breakouts
• Optional display of engulfing candles with triangle markers
⸻
🛠️ Key Features
• ✅ Adaptive Keltner Channels
• ✅ Bullish/Bearish Engulfing Candle Recognition
• ✅ Ehlers-style Cycle Momentum Confirmation
• ✅ Background highlights for confirmed breakouts
• ✅ Optional candle pattern visualization
• ✅ Lightweight and Pine v6 compatible
⸻
🧪 Inputs
• Keltner Length – EMA period for channel basis
• Multiplier – Multiplied with ATR to determine band width
• Cycle Lookback – Used to calculate smoothed cycle power
• Show Engulfing Candles? – Toggles candlestick signals
• Show Breakout Signals? – Toggles breakout labels and backgrounds
⸻
🧠 How to Use
• Look for “BUY” or “SELL” labels when:
• An engulfing candle breaks through the Keltner Channel
• Cycle momentum confirms strength behind the move
• The background color will faintly highlight the breakout direction.
• Use in combination with other trend or volume indicators for added confluence.
🔒 Notes
• This indicator is not repainting.
• It is designed for educational and research purposes only.
• Works across all timeframes and asset classes (stocks, crypto, forex, etc.)
PCCE + False Breakout DetectorPCCE + False Breakout Detector
Type: Invite-Only Indicator (closed source)
Purpose : Detect price compression and the first expansion after it, while flagging failed breakouts (bull/bear traps) for risk control.
1) What’s original here!
This tool integrates three behaviour-driven tests that work in a single decision flow:
A compression score built from:
(a) monotonic body shrink,
(b) wick-dominance, and
(c) relative range contraction versus history.
This is not a bands/oscillator port; it’s a structure-first filter that isolates coils.
A thrusted expansion requirement that combines real-body impulse and relative-volume participation (+ optional EMA alignment) to qualify a breakout beyond the coil envelope.
An immediate post-breakout failure test (trap logic) that checks whether the breakout re-enters the prior swing range within a short window.
Used together, these steps turn raw breaks into contextual, risk-aware events: setup → trigger → validation. That is the value of the combination.
⸻
2) Concepts behind the calculations:
Let body_t = |close_t − open_t|,
uw_t = high_t − max(open_t, close_t) (upper wick),
lw_t = min(open_t, close_t) − low_t (lower wick),
R_t(k) = highest(high, k)_t − lowest(low, k)_t (range over k bars),
MA_body(k) = SMA(body, k), MA_vol(k) = SMA(volume, k).
2.1 Compression (coil) detection
We evaluate within a window k = coilLength:
• Body shrink count: number of consecutive steps where body_(t−i) < body_(t−i−1).
• Wick dominance: AvgWickBody = avg( (uw + lw) / body ) over the window; require AvgWickBody > wickRatioMin.
• Relative range contraction: current R_t(k) must be less than α × avg( R_(t−j)(k) ) computed over a lookback of rangeWindow windows, with α < 1 (tight market).
When all three are true, we mark a coil zone; the coil bounds are High_coil = highest(high, k), Low_coil = lowest(low, k).
2.2 Expansion (“Burst”) confirmation
A breakout is only qualified when all hold on bar close:
• Direction: close > High_coil → up; close < Low_coil → down.
• Body thrust: body_t > MA_body(k) × bodyMult.
• Participation: volume_t > MA_vol(k) × volumeMultiplier.
• Trend alignment (optional): close_t > EMA(emaLen) for up / < EMA for down.
• Cooldown: t − lastSignal > cooldownBars.
If satisfied, print Burst↑ or Burst↓ on that bar.
2.3 Failed breakout (trap) detection
Let H_s and L_s be the prior swing high/low from a lookback rangeLookback (excluding the current bar). Define:
• Bull break attempt: a bar that closed above H_s.
Bull trap: within fakeoutBars bars after that attempt, any close returns below H_s. Mark ❌ red above that bar.
• Bear break attempt: a bar that closed below L_s.
Bear trap: within fakeoutBars bars after that attempt, any close returns above L_s. Mark ❌ green below that bar.
Alerts fire on bar close only.
⸻
3) What you’ll see on the chart
• Coil box: shaded envelope (tight-range bounds).
• Burst labels: Burst↑ / Burst↓ only when thrust + volume (and optional EMA) confirm the break.
• Trap markers: ❌ red (failed bullish breakout) / ❌ green (failed bearish breakout).
• Alerts: “Burst Up” and “Burst Down” (close-based).
⸻
4) How to use it
1. Preparation : When a coil box appears, mark the bounds; expect expansion risk to rise.
2. Trigger : Act only on Burst labels (they already encode body/volume thrust and optional trend).
3. Validation : If a ❌ trap prints shortly after a breakout, treat it as a warning/exit event; breakouts that re-enter the prior swing range are statistically fragile.
4. Context : Works well on 15m–4H where structure is visible. Combine with your own higher-timeframe bias, S/R, liquidity pools, and risk rules.
5. Tuning :
• Tighten/loosen coil sensitivity via coilLength, wickRatioMin, and the range contraction factor.
• Use larger bodyMult / volumeMultiplier to demand stronger breaks.
• cooldownBars controls clustering in fast sessions.
• rangeLookback and fakeoutBars control how strict the trap check is.
⸻
5) Repainting, scope, and limitations
• Burst and trap labels are evaluated on bar close; once printed, they do not repaint. Coil boxes can update while forming; they stabilize once conditions are met.
• Sudden news/illiquid periods can defeat filters; adjust multipliers and cooldown for your instrument.
• This is an indicator, not a strategy; it does not publish PnL, win-rate, or forward promises.
Advanced LOREN SETUP (3.1)This indicator is an exclusive access tool based on the Advanced Loren Setup, collaboratively designed by the expert mentors at StockTutor. It is built to provide traders with a strategic edge in the markets by integrating refined technical insights and proprietary logic.
⚠ Disclaimer: This indicator is strictly for personal use only. Redistribution, resale, or unauthorized sharing of this tool is strictly prohibited. Any attempt to copy, modify, or commercialize this setup without permission from StockTutor will result in legal action.
UKDT Level 1 short average bias indicatorUKDT Level 1 short average bias indicator.
Short averages displayed with bias indicator background colours.
All configurable in settings.
MAHA MACDThe Custom Multi-Timeframe MACD indicator allows traders to simultaneously monitor MACD momentum and trend signals from two user-selectable timeframes in a single pane. It calculates the classic Moving Average Convergence Divergence (MACD) line, signal line, and histogram for both chosen intervals, providing a comprehensive view of multiple timeframes without switching charts.
Key Features:
Dual timeframe MACD analysis: Select any two timeframes (e.g., 3 minutes and 15 minutes, or 1 hour and 2 hours) to visualize intraday and higher trend momentum together in one indicator.
Fully customizable MACD settings: Adjust the fast length, slow length, and signal smoothing periods to tailor indicator sensitivity based on trading style and asset volatility.
Clear visual differentiation: Distinct color schemes for each timeframe’s MACD line, signal line, and histogram make it easy to compare momentum changes across timeframes at a glance.
User-friendly design: Soft colored backgrounds highlight each timeframe’s section, enabling quick identification and reducing eye strain during extended analysis.
Real-time responsiveness: Higher timeframe MACD values update in real time on the current chart timeframe, enabling proactive decision-making without waiting for candle closes.
Use Cases:
Mystic Pulse V2.0 [CHE] Mystic Pulse V2.0 — Adaptive DI streaks with gradient intensity for clearer trend persistence
Summary
Mystic Pulse V2.0 measures directional persistence by counting how often the positive or negative directional index strengthens and dominates. These counts drive gradient colors for bars, wicks, and helper plots, so intensity reflects local momentum rather than absolute values. A windowed normalization and gamma control adapt the visuals to recent conditions, preventing one regime from overpowering the next. The result is an immediate, at-a-glance read of trend direction and stamina without relying on crossovers alone.
Motivation: Why this design?
Classical DI and ADX signals can flip during choppy phases or feel sluggish in calm regimes. This script focuses on persistence: it increments a positive or negative streak only when the corresponding directional pressure both strengthens compared with the prior bar and dominates the other side. Simple OHLC pre-smoothing reduces micro-noise, and local normalization keeps the scale relevant to the last segment of data, not a distant past.
What’s different vs. standard approaches?
Reference baseline: Traditional DI and ADX lines with crossovers and fixed-scale thresholds.
Architecture differences:
Wilder-style recursive smoothing on true range and directional movement.
Streak counters for positive and negative pressure that advance only on strengthening and dominance.
Windowed normalization and gamma shaping for visual intensity.
Wick coloring via `plotcandle` with forced overlay from a pane indicator.
Practical effect: Bars and wicks grow more vivid during sustained pressure and fade during indecision. The column plots show streak depth directly, which helps filter one-bar flips.
How it works (technical)
1. Pre-smoothing: Open, high, low, and close are averaged over a short simple moving window to dampen micro-ticks.
2. Directional inputs: True range and directional movement are formed from the smoothed prices, then recursively smoothed using a Wilder-style update that carries prior state forward.
3. DI comparison: The script derives positive and negative directional ratios relative to smoothed range. A side advances its streak when it increases compared with the previous bar and exceeds the opposite side. The other streak resets.
4. Trend score and color base: The difference between positive and negative streaks defines the active side.
5. Normalization and gamma: The absolute streak magnitude and each side’s streak are normalized within a rolling window. Gamma parameters reshape intensity so mid-range values are either compressed or emphasized.
6. Rendering:
Two column plots show positive and negative streak counts in the pane with gradient colors.
A square marker at the bottom uses the global gradient as a compact heat cue.
Bar colors on the main chart use either the gradient, neutral trend colors, or no paint depending on toggles.
Wick, border, and candle overlays are colored via `plotcandle` with forced overlay.
7. State handling: Smoothed values and counters persist across bars; initialization uses first available values without lookahead. No higher-timeframe requests are used, so repaint risk is limited to normal live-bar evolution.
Parameter Guide
Show neutral candles (fallback) — Paints main-chart bars in plain up or down colors when gradients are disabled — Default false — Use when you prefer simple up/down coloring.
Show last N shapes — Limits bottom square markers — Default 333 — Reduce if your chart gets cluttered.
ADX smoothing length — Controls the Wilder smoothing window for range and directional movement — Default 9 — Larger values increase stability but respond later.
OHLC SMA length — Pre-smoothing for inputs — Default 1 — Increase slightly on noisy assets to reduce flip risk.
Gradient barcolor — Enables gradient bar paint on the main chart — Default true — Turn off to use wicks only or neutral bars.
Wick coloring — Colors wicks, borders, and bodies via overlay — Default true — Disable if it conflicts with other overlays.
Gradient window — Lookback for local normalization — Default 100 — Shorter windows adapt faster; longer windows provide steadier intensity.
Gradient transparency — Overall transparency for gradient paints — Default 0 — Increase to make gradients subtler.
Gamma bars/shapes — Contrast for bar and shape intensity — Default 0.70 — Lower values brighten mid-tones; higher values compress them.
Gamma plots — Contrast for the column plots — Default 0.80 — Tune separately from bar intensity.
Wick transparency — Transparency for wick coloring — Default 0 — Raise to let price action show through.
Up/Down colors (dark and neon) — Base and accent colors for both directions — Defaults as provided — Adjust to match your chart theme.
Reading & Interpretation
Pane columns: The green column represents the positive streak count; the red column represents the negative streak count. Taller columns signal stronger persistence.
Gradient marker: The bottom square indicates the active side and persistence strength at a glance.
Main-chart bars and wicks: Color direction shows the dominant side; intensity reflects the normalized and gamma-shaped streak magnitude. Faded tones suggest weak or fading pressure.
Practical Workflows & Combinations
Trend following: Enter in the direction of the active side when the corresponding column expands over several bars. Confirm with structure such as higher highs and higher lows or lower highs and lower lows.
Exits and stops: Consider scaling out when intensity fades toward mid-range while structure stalls. Tighten stops after extended streaks or when wicks lose intensity.
Multi-asset/Multi-TF: Use defaults for liquid assets on intraday to swing timeframes. For highly volatile instruments, raise smoothing and the normalization window. For calm markets, lower them to regain sensitivity.
Behavior, Constraints & Performance
Repaint/confirmation: Values update during the live bar and stabilize after bar close. No historical repaint beyond normal live-bar updates.
security()/HTF: Not used; cross-timeframe repaint paths do not apply.
Resources: Declared `max_bars_back` two thousand; no explicit loops or arrays; plot and label limits are generous.
Known limits: Streak counters can remain elevated during slow reversals. Very short normalization windows can cause rapid intensity swings. Gaps or extreme spikes may temporarily distort intensity until the window adapts.
Sensible Defaults & Quick Tuning
Start with: ADX smoothing nine, OHLC SMA one, normalization window one hundred, gradient and wick coloring enabled, gamma around zero point seven to zero point eight.
Too many flips: Increase ADX smoothing and the normalization window; consider a small bump in OHLC SMA.
Too sluggish: Decrease ADX smoothing and the normalization window.
Colors overpower chart: Increase gradient and wick transparency or raise gamma to compress mid-tones.
What this indicator is—and isn’t
This is a visualization and signal layer that represents directional persistence and intensity. It does not issue trade entries or exits on its own and is not predictive. Use it alongside market structure, volume, and risk controls.
Disclaimer
The content, including any code, is for educational and informational purposes only and does not constitute financial advice or a recommendation to buy or sell any instrument. Trading involves substantial risk, including the possible loss of principal. Past performance is not indicative of future results. Always do your own research and consider consulting a qualified professional.
LQ sweep (DeadCat)This indicator provides a streamlined approach to Smart Money Concepts (SMC) market structure analysis, focusing on identifying liquidity sweep patterns at key structural levels. The script tracks price action to detect when institutional liquidity is being targeted through systematic structure breaks.
Core Methodology:
The indicator employs a dual-pivot system (20/2 bars) to identify market structure points internally, then monitors for liquidity sweeps at these levels:
Trend Continuation Sweeps: When price breaks above Higher Highs (uptrend) or below Lower Lows (downtrend)
Trend Reversal Sweeps: When price breaks below Higher Lows (uptrend) or above Lower Highs (downtrend)
Market Structure Engine:
Automatically establishes initial trend direction from first two pivot points
Tracks structure progression internally without visual clutter
Requires 2-candle confirmation (bullish/bearish) before finalizing new structure levels
Maintains pending structure states until proper confirmation occurs
Liquidity Sweep Detection:
The indicator identifies four distinct liquidity sweep scenarios:
Bullish Continuation: HH break in established uptrend
Bearish Continuation: LL break in established downtrend
Bullish Reversal: LH break signaling potential uptrend resumption
Bearish Reversal: HL break signaling potential downtrend resumption
Key Features:
Simplified Interface: Single settings group for all liquidity sweep configurations
Flexible Label Positioning: Choose where sweep labels appear on lines
Consistent Visual Style: All sweeps use the same color/style for clarity
Minimal Chart Clutter: No market structure labels, only essential sweep markers
Unique Implementation:
Unlike traditional SMC indicators that display all structure points, this tool focuses exclusively on actionable liquidity sweeps. It maintains the mathematical rigor of structure tracking internally while presenting only the critical sweep levels where institutional activity is likely concentrated.
Usage:
Liquidity sweeps often precede significant moves as they represent areas where stop-losses accumulate. Traders can use these levels to:
- Identify potential reversal zones after sweep completion
- Spot continuation patterns when sweeps align with trend
- Time entries after liquidity has been collected
- Set stop-loss levels beyond recent sweep points
This indicator simplifies complex SMC concepts into actionable liquidity sweep signals, making it suitable for traders who want to focus on key institutional levels without overwhelming chart analysis.
Quadro Volume Profile- ArchitThe volume profile indicator is an advanced charting tool that displays trading activity (volume) at specific price levels during a selected time period. Unlike traditional volume indicators, which show volume over time (below the price chart), the volume profile plots a histogram on the price axis to show where the most trading has occurred for each price point.
Liquidity Pro Map - ArchitLiquidity Indicator for gauging orders volatility. It is visually highlight where buy and sell liquidity is concentrated on a chart.
DSN-LocalPeakMarkerThis Indicator identifies local highs and lows and paints the related level.
The calculation is done on every new candle.
Quarterly Theory - 90m Cycles This Indicator Give you the Exact 90 mins cycles for the market and add background colors to each session over it.
ML-Enhanced Multi-Indicator Composite Signal🤖 ML-Enhanced Multi-Indicator Composite Signal
Revolutionary AI-Powered Trading Indicator with Adaptive Learning
Transform your trading with cutting-edge machine learning technology that automatically optimizes indicator weights based on real market performance!
🎯 What Makes This Indicator Special?
This isn't just another composite indicator. It's an intelligent trading system that learns from market data and continuously adapts to improve signal accuracy. Unlike static indicators with fixed weights, this AI-powered tool dynamically adjusts the importance of each technical indicator based on their actual prediction success rates.
⚡ Key Features
🤖 Adaptive Machine Learning Engine
Automatically tracks prediction accuracy for each indicator
Dynamically adjusts weights based on performance
Continuous learning and adaptation to market conditions
Configurable learning parameters for fine-tuning
📊 Multi-Indicator Fusion
SuperTrend: Trend direction and momentum
Moving Averages: Price trend confirmation (SMA/EMA/WMA/RMA)
VWAP: Volume-weighted price levels
Linear Regression: Mathematical trend analysis
🎯 Intelligent Signal Generation
Strong Buy/Buy/Sell/Strong Sell signals
Configurable threshold levels
Signal smoothing to reduce noise
Smart signal timing to avoid repetitive alerts
📈 Performance Analytics Dashboard
Real-time accuracy tracking for each indicator
Weight distribution visualization
ML vs. Equal weights comparison
Learning progress monitoring
🚀 How It Works
1. Data Collection Phase
The indicator continuously monitors the performance of each technical component, storing predictions and actual market outcomes.
2. Learning Phase
Using configurable learning periods (20-500 bars), the ML engine calculates accuracy rates for each indicator's predictions.
3. Weight Optimization
Based on performance data, the system automatically adjusts weights using a configurable learning rate, ensuring better-performing indicators have more influence.
4. Signal Generation
The optimized composite signal triggers buy/sell alerts when crossing predefined thresholds, with visual signals and background coloring.
⚙️ Customization Options
Machine Learning Parameters
Learning Period: 20-500 bars (default: 100)
Prediction Horizon: 1-20 bars (default: 5)
Learning Rate: 0.01-1.0 (default: 0.1)
Minimum Weight: Prevents any indicator from becoming irrelevant
Performance Smoothing: Reduces noise in accuracy calculations
Traditional Settings
SuperTrend: Period and multiplier adjustment
Moving Average: Type selection and length
VWAP: Source customization
Linear Regression: Length and source options
Signal Configuration
Threshold Levels: Customizable buy/sell trigger points
Signal Smoothing: Reduces false signals
Manual Override: Option to use fixed weights instead of ML
📱 Visual Features
Signal Line Display
Dynamic color coding based on signal strength
Threshold level lines for clear entry/exit points
Background coloring for quick market sentiment assessment
Performance Table
Real-time accuracy metrics for each indicator
Current weight distribution showing ML optimization
Performance comparison between ML and equal weights
Learning progress indicator
Signal Shapes
🚀 Strong Buy: Large green triangle with text
📈 Buy: Standard green triangle
📉 Sell: Standard red triangle
💥 Strong Sell: Large red triangle with text
🎓 Best Practices & Usage Tips
For Beginners
Start with default ML settings
Allow 100+ bars for proper learning
Focus on Strong Buy/Sell signals initially
Monitor the performance table to understand ML adaptation
For Advanced Traders
Adjust learning rate based on market volatility
Customize prediction horizon for your trading timeframe
Fine-tune threshold levels for your risk tolerance
Combine with additional confirmation indicators
Recommended Settings by Timeframe
Scalping (1m-5m): Learning Period: 50, Prediction Horizon: 3
Day Trading (15m-1h): Learning Period: 100, Prediction Horizon: 5
Swing Trading (4h-1D): Learning Period: 200, Prediction Horizon: 10
🔔 Alert System
Set up comprehensive alerts for:
Strong Buy/Sell signals with maximum consensus
Regular Buy/Sell signals for standard entries
Custom message templates with price and signal strength
Email, SMS, and webhook compatibility
⚠️ Important Notes
Learning Period: Allow sufficient data for ML optimization (minimum 50 bars recommended)
Market Conditions: Performance may vary during high volatility or trending vs. ranging markets
Backtesting: Test thoroughly on historical data before live trading
Risk Management: Always use proper position sizing and stop losses
🏆 Why Choose This Indicator?
✅ Adaptive Intelligence: Unlike static indicators, this tool evolves with market conditions
✅ Transparent Performance: See exactly how well each component is performing
✅ Comprehensive Analytics: Make informed decisions with detailed performance metrics
✅ Professional Grade: Developed by experienced traders for serious market participants
✅ Continuous Innovation: Regular updates and improvements based on user feedback
📊 Performance Tracking
The indicator provides unprecedented transparency into its decision-making process:
Individual indicator accuracy rates
Weight evolution over time
Improvement metrics vs. baseline
Learning curve visualization
Transform your trading with the power of adaptive machine learning. Let the market data guide your strategy optimization automatically!
Tags: Machine Learning, AI Trading, Composite Signal, Multi-Indicator, Adaptive Algorithm, Signal Generation, Trading Automation, Technical Analysis
Category: Trend Following, Oscillators, Signal Generators
Baseline Buy/Sell Alerts (v6) - FixedGood for indexes,metals and cryptos
Thanks Universe Thanks Angels
10MAs + BB10 MAs riboon + Bollinger Bands
I used two basic Multiple MA ribbons. so I just merge them to one indicaotor