Confluence Trend Matrix [NQ Labs]
Confluence Trend Matrix
- The Confluence Trend Matrix combines four independent trend signals into a single confluence score, ranging from -4 (full bearish agreement) to +4 (full bullish agreement). Instead of relying on one indicator in isolation, it measures how many independent factors currently agree on trend direction — the idea being that alignment across multiple methods is more informative than any single signal alone.
The four factors:
- Each factor scores +1 (bullish), -1 (bearish), or 0 (neutral):
EMA Structure — Evaluates price position relative to a fast and slow EMA. Scores bullish only when price is above the fast EMA and the fast EMA is above the slow EMA (clean uptrend structure), and mirrors for downtrends. Mixed conditions score neutral.
SuperTrend — Uses the SuperTrend direction (ATR-based) as a trend-following component. Bullish when SuperTrend is below price, bearish when above.
ADX-Gated Direction — Takes directional bias from DI+/DI-, but only counts it when ADX is above a strength threshold. In weak, directionless conditions this factor stays neutral, which helps filter out chop.
Higher-Timeframe Trend — Compares the higher-timeframe close against a higher-timeframe EMA, using confirmed HTF bars to avoid repainting. This anchors the lower-timeframe read to the broader trend.
How it's displayed:
Confluence Band — An ATR envelope around price that colors according to the aggregate score. The band grows more opaque as agreement strengthens toward ±4, giving an at-a-glance read of trend conviction. Band width is adjustable via the ATR multiplier.
Dashboard Table — A compact panel breaking down each of the four factors individually, plus the net score, an overall strength label, and net bias. This shows not just what the score is, but which specific factors are driving it.
Background Tint — A subtle highlight when confluence reaches maximum agreement (±4).
Alerts:
- Confluence flip (crossing between bullish and bearish territory)
- Maximum confluence reached (+4 or -4)
Settings:
- All factor parameters are adjustable — EMA lengths, SuperTrend factor and ATR period, ADX length and threshold, higher timeframe, and HTF EMA length — so the tool can be tuned to different markets and timeframes. Visual options include band width, transparency, table position, and colors.
Notes:
- This indicator is a trend-analysis and confluence-visualization tool. It does not generate buy or sell recommendations and makes no claim about future performance. It is intended as one input within a broader analysis process, not as a standalone system. As with any indicator, results vary across markets, timeframes, and conditions — test thoroughly before relying on it.
Open-source and free to use.
Feedback and suggestions are welcome. Indicateur

Indicateur

Indicateur

Cyberbikes Fusion (SMAEMA+MACD+RSI)## Cyberbikes Fusion (SMAEMA+MACD+RSI)
### What it is
A **trend + momentum fusion** indicator. Instead of watching three separate tools, it folds them into one signal:
1. **SMA+EMA blend** — your 8 moving averages (4 EMAs + 4 SMAs at 9/21/80/200) are merged into one combined line, then smoothed into its own SMA and EMA. This is the **trend** backbone.
2. **MACD histogram** — the **momentum** of the trend (is it accelerating or fading).
3. **RSI** — **overbought/oversold** pressure (0–100).
All three are normalized to the same 0–100 scale and weighted-averaged into a single "universal" reading. A light-blue **EMA (thick)** and **SMA (thin)** are drawn from that, and the gap between them is painted **green when bullish / rising** and **red when bearish / falling**.
### What each piece tells you
| Component | Answers the question |
|---|---|
| Combined SMA+EMA | *Which way is the broader trend leaning?* |
| MACD | *Is momentum building or stalling?* |
| RSI | *Is price stretched (overbought/oversold)?* |
| **Green/red color** | *Are all of the above agreeing right now?* |
The whole point is **confluence** — the signal only commits to green or red strongly when trend, momentum, and RSI **agree**. When they disagree, they partially cancel and it sits neutral. That agreement-filter is what reduces false signals versus reading any one indicator alone.
### How to use it
**The green/red flip is the primary signal:**
- **Red → green** = bullish shift (trend + momentum turning up together). Look for **long** setups.
- **Green → red** = bearish shift. Look for **exits or shorts**.
**Best practice — treat it as confirmation, not a standalone trigger:**
1. **Direction first** — only take longs while it's green, shorts while it's red. Don't fight the color.
2. **Confirm your entries** — when your own setup (support bounce, breakout, pullback) lines up *and* the color agrees, that's a higher-probability entry.
3. **Watch for the EMA/SMA cross** — the thick EMA crossing the thin SMA marks the momentum turn; the alerts (`Bullish`/`Bearish`) fire there.
4. **Stay out of chop** — if the color is flickering green/red rapidly, the market is ranging and signals are unreliable. Wait for a clean, sustained color.
### Timeframe behavior
The smoothing length **auto-adjusts to your chart timeframe** (shorter on higher timeframes), so it stays responsive without re-tuning. Higher timeframes (4h/Daily) give cleaner, fewer signals; lower timeframes (1–15m) give more signals but more noise.
### Honest limitations
- It's a **blend of lagging + momentum** tools — it confirms moves, it doesn't predict tops/bottoms.
- In **sideways/low-volume** markets it will whipsaw like any MA-based system. Size down or stand aside.
- Best used **with** price-action and a risk plan (stops/position sizing), never as a sole auto-trade trigger.
---
Want me to **bake this description into the script as a header comment block** (so it travels with the code), or write it up as a short `.md` doc saved next to the `.pine` file? Indicateur

Indicateur

MACD Divergence Suite [invincible3]MACD Divergence Suite
Overview
MACD Divergence Suite is an advanced MACD-based momentum and trend indicator designed to provide a clearer view of market direction, momentum strength, divergence, and multi-timeframe confirmation.
This indicator expands the traditional MACD by adding configurable moving average types, normalized MACD values, gradient cloud visualization, SMA-based candle coloring, divergence labels, signal arrows, and a compact multi-timeframe dashboard.
Configurable MACD Calculation
The indicator allows full customization of the MACD calculation. Users can choose the price source and select different moving average types for the fast line, slow line, and signal line.
Supported moving average types include:
• EMA
• SMA
• DEMA
• TEMA
• WMA
• VWMA
• HMA
• RMA
This makes the indicator flexible for different trading styles, assets, and timeframes.
Normalized MACD
The MACD values are normalized to a fixed scale, making momentum easier to compare across different markets and timeframes. This helps reduce the visual inconsistency that can happen when using raw MACD values on assets with very different price ranges.
Gradient MACD Cloud
A layered gradient cloud is plotted between the MACD line and the signal line. The cloud changes color based on bullish or bearish momentum and becomes visually stronger when the MACD spread increases.
This helps traders quickly identify momentum expansion, compression, and possible trend shifts.
Trend-Colored MACD Line
The main MACD line uses trend-sensitive coloring based on the selected bullish and bearish colors. Strong bullish movement appears with stronger bullish color, while strong bearish movement appears with stronger bearish color.
The signal line remains gray to keep the chart clean and easy to read.
Oscillator Bars
The oscillator bars show normalized MACD histogram strength. Bar colors use a gradient effect based on momentum strength, helping traders visually detect increasing or weakening momentum.
SMA Candle Coloring
The indicator includes SMA-based candle coloring on the main chart. Candles are colored bullish when price is above the selected SMA and bearish when price is below the selected SMA.
This provides quick trend confirmation directly on the price chart.
Divergence Detection
The indicator detects bullish and bearish divergence using the normalized MACD oscillator. Divergence lines and labels can appear on both the MACD pane and the price chart.
Bullish divergence highlights possible upside reversal areas, while bearish divergence highlights possible downside reversal areas.
Signal Arrows
MACD crossover signals are shown with arrows. The signals can be filtered using normalized MACD levels, helping reduce weak signals in neutral zones.
Arrow distance can also be adjusted so chart signals appear cleaner and do not overlap candles.
Multi-Timeframe Dashboard
A compact multi-timeframe dashboard summarizes market conditions across multiple timeframes.
The dashboard includes:
• Normalized MACD value
• MACD signal direction
• Histogram state
• Recent divergence status
• SMA-based trend condition
The trend row shows whether price is above or below the selected SMA, giving a simple Bull/Bear trend filter across timeframes.
Key Features
• Configurable MACD moving average types
• Adjustable fast, slow, and signal lengths
• Selectable price source
• Normalized MACD scale
• Gradient MACD cloud
• Trend-colored MACD line
• Gray signal line for cleaner visibility
• Strength-based oscillator bars
• SMA-based candle coloring
• Bullish and bearish divergence detection
• Divergence labels on MACD pane and price chart
• Multi-timeframe dashboard
• Optional normalized MACD signal filtering
• Adjustable signal arrow distance
• Custom bullish and bearish color presets
How to Use
Use the MACD line, signal line, and cloud to read momentum direction. A bullish cloud suggests positive momentum, while a bearish cloud suggests negative momentum.
Use the oscillator bars to confirm whether momentum is increasing or weakening.
Use divergence labels to identify potential reversal areas.
Use the SMA candle coloring and dashboard trend row as a trend filter. Bullish signals are generally stronger when price is above the SMA, while bearish signals are generally stronger when price is below the SMA.
Best Used For
This indicator is useful for:
• Trend-following analysis
• Momentum confirmation
• Multi-timeframe market structure
• Divergence-based reversal spotting
• Signal filtering
• Visual MACD analysis
Disclaimer
This indicator is intended for technical analysis and educational use only. It should not be used as financial advice. Always combine signals with proper risk management and additional market analysis.
Indicateur

MA Suite SMA + EMA [Institutional]MA Suite SMA + EMA
A single overlay that replaces a whole stack of separate moving-average indicators. It plots up to 6 fully configurable SMAs and 6 EMAs side by side, with everything you need to read trend structure at a glance — and nothing you have to fight with.
Core
- 6 SMA + 6 EMA slots, each with its own enable toggle, length, color, and line width.
- Sensible institutional defaults (20 / 50 / 100 / 150 / 200) with the 20, 50 and 200 emphasized by thickness.
- Disabled lines disappear from both the chart and the status line, so the data window stays clean — you only ever see the values you actually use.
Multi-timeframe
- Compute every MA from a higher timeframe (e.g. show daily MAs while viewing an intraday chart).
- Permanent 20-week and 200-week SMA anchors that hold their value on any lower timeframe, with optional smoothing to remove the weekly "staircase."
Slope projection
- Tick ext on any line to extend it forward along its current slope — a quick look at where a moving average is heading. The 200 SMA and both weekly anchors are projected by default.
Context tools
- % distance table showing how far price sits from each active MA — fast read on stretch and mean-reversion.
- Slope coloring (lines fade when falling) and an optional bias background (price above/below the 200 SMA).
- Golden / death-cross markers, a configurable ribbon fill, and an anchored VWAP with standard-deviation bands.
- Built-in alerts for MA crosses and price/MA crossovers.
One indicator, every moving-average reference an institutional trader actually looks at. Indicateur

Indicateur

SXA: Super Xtation Amplitude | MTF FrameworkSXA (Super Xtation Amplitude) is a multi-timeframe market positioning framework designed to provide a complete visual overview of price location within the broader market structure.
Rather than focusing on entry signals, SXA combines trend context, volatility, session activity, anchored VWAPs, prior-day reference levels, Fibonacci projections, and higher-timeframe moving averages into a single environment. The objective is to help traders understand where price is currently trading relative to statistically and structurally significant areas.
The indicator was built around a simple principle:
"Price behaves differently depending on where it is located within the market."
By integrating multiple forms of context into one view, SXA allows traders to quickly identify premium and discount zones, trend alignment, session-driven liquidity areas, and potential reaction levels without switching between multiple indicators.
FEATURES
• Smart Trend Engine
Multi-timeframe moving average framework designed to visualize short, intermediate, and macro directional bias.
• Dynamic Trend Clouds
Visual cloud structures help identify trend alignment and potential transition zones between bullish and bearish conditions.
• Higher Timeframe Context
Daily 50 SMA and 200 SMA provide broader market structure and long-term directional references.
• Prior Day Reference Levels
Automatic plotting of previous day's Open, High, Low, and Close.
• Fibonacci Expansion Grid
Extended Fibonacci projections derived from the previous day's range to identify potential reaction zones and liquidity targets.
• Anchored Session VWAPs
Includes:
* Daily VWAP
* European Session VWAP
* Pre-New York VWAP
* New York Session VWAP
* Post-European Session VWAP
These levels provide institutional-style references for price acceptance and value.
• Weekly Structure Levels
Dynamic weekly Open, High, and Low levels update in real time throughout the trading week.
• Session Mapping
Visual session boxes highlight important market periods, including the Asian session and Pre-New York range.
INTENDED USE
SXA is designed as a contextual decision-support tool rather than a standalone trading system.
The indicator can be used to:
* Assess overall market positioning.
* Identify trend alignment across multiple timeframes.
* Locate potential support and resistance zones.
* Track session-driven liquidity.
* Monitor volatility expansion and contraction.
* Build discretionary trade narratives.
* Enhance existing trading systems.
SXA does not generate buy or sell recommendations. Instead, it seeks to answer a more fundamental question:
"Where is price currently located within the broader market landscape?"
By providing that context at a glance, traders can make more informed decisions while reducing chart clutter and indicator overload.
Created by @Peter_n_n
Indicateur

Ribbon Conviction SystemRibbon Conviction System — Trend, Flow, Value and Adaptive Stop
Overview
This is a single decision-support system for intraday traders. It answers three questions on one chart: which way is the trend, how much conviction is behind the current move, and where a logical trailing stop sits. A moving-average ribbon defines direction, a conviction score from 0 to 100% grades every signal, and an adaptive volatility stop marks risk. The components are designed to work together as one filtered signal, not as a loose collection of separate indicators.
Why these components are combined
A moving-average crossover on its own fires constantly in sideways markets and gives no sense of whether a cross is meaningful. Each part added here exists to fix a specific weakness of the part before it, so the result is one filtered signal rather than several indicators stacked on a chart.
Ribbon (direction). Five Fibonacci-length averages — 8, 13, 21, 34, 55 — using a mix of Hull, EMA and Kaufman Adaptive Moving Average (KAMA). The KAMA anchors deliberately flatten in choppy conditions, so the ribbon stops giving direction when there is no trend. Weakness it leaves open: a crossover can still fire on a weak, low-conviction move.
Conviction score (filter). Instead of taking every crossover, each signal is graded 0–100% by blending four independent readings of the same bar, chosen because they measure different things rather than repeat each other:
Buy/sell flow — net buying versus selling pressure, inferred from lower-timeframe price-and-volume behaviour.
Effort vs move — how far price travelled for the volume spent; absorption and churn are penalised.
Trend quality — Kaufman Efficiency Ratio: directional travel divided by total path, separating trend from noise.
Price location — is price on the right side of value? Blends session VWAP slope, a swing-anchored VWAP, the session volume-profile value area (VAH/VAL/POC), and the prior session's VWAP and unfilled POC.
A flow-toxicity proxy (VPIN-style) then lowers the score when flow looks one-sided and unstable. Weakness it leaves open: all four readings come from the chart timeframe, so they can agree for the wrong reason.
Higher-timeframe agreement (independent confirmation). The same volatility-stop direction is computed on 3×, 5× and 15× the chart timeframe and folded in as a multiplier, not a fifth blended input. It is kept separate precisely because it is the one genuinely independent check on the chart-timeframe score: full agreement raises conviction, disagreement lowers it.
Adaptive volatility stop (risk). A Chande-style volatility stop whose ATR period and multiplier adapt through the Efficiency Ratio, so the stop tightens in clean trends and widens in chop. This turns the tool from "where is the signal" into "where is my risk if I take it."
How they work together
Direction (ribbon) decides the side. The conviction score decides whether a crossover on that side is worth showing and how strongly. Higher-timeframe agreement scales that conviction up or down. The adaptive stop shows the exit reference. Every signal is the product of all four stages working in sequence.
What it plots
The five-average ribbon with shaded bands; the 55 line is the bold trend-reference band.
Signal badges at qualifying crossovers, labelled with the band crossed and the conviction percent (for example "21 65%").
Optional value references: session VWAP, swing-anchored VWAP with bands, volume-profile VAH/VAL/POC, and the prior session's VWAP and POC.
The adaptive volatility stop as a step line with a live distance label.
A compact dashboard summarising trend, conviction and each component, higher-timeframe agreement, the stop, and the data mode.
A small higher-timeframe agreement ribbon.
How to use
Add it to an intraday chart. The defaults suit index futures, but direction works on any symbol.
Spot vs futures: many spot indices publish no real volume, which the flow, value-area and toxicity parts depend on. Under "Data source" the script auto-detects this and switches the volume-based parts to a time-at-price method so everything still works; you can also set the mode manually. The dashboard "Data" row shows which mode is active.
Trade in the ribbon's direction. Prefer signals with a higher conviction percent and higher-timeframe agreement, and treat low-conviction crosses as noise. Use "Hide signals weaker than" to suppress them.
Use the adaptive stop as a trailing-risk reference, sized to your own plan.
The "Look & size" group controls signal size, dashboard size and position, a "Minimal" preset (ribbon + signals + stop only), and band lightness.
Originality
The individual techniques — adaptive moving averages, the Efficiency Ratio, effort-versus-result, VWAP, volume profile and volatility stops — are publicly documented. What is original here is the integration: a single conviction score that fuses chart-timeframe flow, effort, efficiency and value, damps it by flow toxicity, and scales it by independent higher-timeframe agreement, then gates an adaptive-stop-aware signal on that score. The components were selected so each covers a distinct weakness, and redundant filters were deliberately left out to keep one clear signal.
Credits
Perry Kaufman — Adaptive Moving Average and Efficiency Ratio. Tushar Chande — Volatility Stop concept. The effort-versus-result component is an original, compact reimplementation inspired by the publicly described effort-versus-result method from the volume-spread-analysis lineage.
Disclaimer
This script is for education and information only. It is not financial, investment or trading advice and does not guarantee any outcome. Signals describe current conditions; they do not predict the future. Markets carry substantial risk of loss. Volume-based readings depend on the data feed and are unreliable on instruments without real volume. Always test on your own market and timeframe, and manage risk with your own stops and position sizing. The author is not a licensed financial advisor; consult a qualified professional before making financial decisions. You are solely responsible for your own trading decisions. Indicateur

Indicateur

Mean Reversion Pro 📊 Mean Reversion Pro — Data-Driven Edge on Any Market, Any Timeframe
Most mean reversion indicators tell you the price is "too far" from the moving average. This one tells you exactly how far is statistically worth trading — using your own chart's historical data as proof.
Works on all instruments and timeframes: futures (NQ, ES, CL, GC…), crypto (BTC, ETH, SOL…), forex (EUR/USD, GBP/USD…), indices (SPX, DAX, NASDAQ…), stocks, commodities — anything with a price and volume.
─────────────────────────────────────────
🔍 WHAT THIS INDICATOR DOES
─────────────────────────────────────────
Mean Reversion Pro silently analyses every historical instance where price deviated from a moving average by a given distance. For each of 15 tested threshold levels it computes:
• Win rate — % of times price returned to the MA within the timeout
• Expectancy — (win-rate × avg MFE) − (loss-rate × avg MAE)
• Profit Factor — gross gain / gross loss ratio
• Avg MAE — average adverse excursion (how far against you before reverting)
• Avg MFE — average favourable excursion (how far in your favour)
• Avg return time — average bars needed to reach the MA
It then automatically selects the threshold with the highest expectancy that also satisfies your minimum win-rate and minimum occurrences filters — and only then shows a signal. No manual optimisation. No curve-fitting.
─────────────────────────────────────────
⚙️ KEY FEATURES
─────────────────────────────────────────
✅ Universal — works on futures, crypto, forex, indices, stocks, commodities
✅ 3 threshold modes: fixed Points, ATR multiples, Z-Score (adapts to any volatility regime)
✅ 5 MA types: EMA, SMA, WMA, VWMA, Hull MA
✅ Auto-optimised threshold — the indicator finds the best level by itself
✅ Real-time dashboard: win-rate, expectancy, profit factor, MAE, MFE, return time (Long & Short)
✅ Dynamic bands: 1× and 1.5× optimal threshold zones drawn on the chart
✅ Non-repainting signals — only fires on confirmed, closed bars
✅ Optional filters: trend (EMA 50), volume, US session, minimum ATR
✅ Minimum history guard — signals are held until enough bars have been analysed
✅ All parameters fully exposed and documented with tooltips
─────────────────────────────────────────
📈 WHO IS THIS FOR
─────────────────────────────────────────
• Futures traders — NQ, MNQ, ES, MES, CL, GC, SI, ZB…
• Crypto traders — BTC, ETH, SOL and all altcoins on any exchange
• Forex traders — all major, minor and exotic pairs
• Index traders — SPX, NDX, DAX, FTSE, CAC, Nikkei…
• Stock traders and swing traders looking for mean reversion pullbacks
• Prop firm traders who need a systematic, rules-based edge
• Any trader tired of arbitrary support/resistance levels with no statistical backing
─────────────────────────────────────────
🧠 HOW TO USE IT
─────────────────────────────────────────
1. Apply to any chart on any timeframe
2. Let at least 500 bars load (recommended: 1000–2000 for robust statistics)
3. Choose Threshold Mode:
— Points → best for futures and indices (fixed price distances)
— ATR → best for crypto and forex (volatility-adjusted)
— Z-Score → best for statistical/quant approaches
4. Set your minimum Win Rate (default 65%) and minimum Occurrences (default 15)
5. A signal appears only when all statistical conditions are met AND your filters pass
6. Read the dashboard to assess setup quality before entering a trade
─────────────────────────────────────────
💡 WHY EXPECTANCY MATTERS MORE THAN WIN RATE
─────────────────────────────────────────
A strategy with 80% win rate can still lose money if the average loss is 5× the average win. Mean Reversion Pro uses expectancy — the only metric that combines win rate, average gain and average loss into a single number — as its selection criterion. A signal only appears when the math is in your favour.
─────────────────────────────────────────
⚠️ DISCLAIMER
─────────────────────────────────────────
This indicator is a decision-support tool only. It does not provide financial advice and does not guarantee future results. Past statistical performance is not indicative of future performance. Always use proper risk management. Indicateur

EMA Edge - Multi-EMA Backtest Table with Golden/Death CrossEMA Edge — Multi-EMA Backtest Table with Golden/Death Cross
A clean, all-in-one performance dashboard that backtests 6 long-only strategies side-by-side against a Buy & Hold benchmark — 5 single-EMA crossover strategies plus a classic Golden Cross / Death Cross strategy — with on-chart cross markers and built-in alerts.
Instead of guessing which EMA length works best for a given stock or timeframe, this indicator runs the math for you and shows the answer in a single glance, ranked against simply holding the asset.
What It Does
For each of 5 user-defined EMA lengths, the indicator simulates a simple long-only strategy:
Buy when price closes above the EMA (when flat)
Sell when price closes below the EMA (when long)
Equity starts at 100 and compounds across trades using the close-to-close return of each trade
A 6th strategy row tests the classic Golden/Death Cross:
Buy when the fast EMA crosses above the slow EMA (Golden Cross)
Sell when the fast EMA crosses below the slow EMA (Death Cross)
Special first-bar handling: if the fast EMA is already above the slow EMA at the start of your backtest window (i.e., we're mid-trend with no fresh Golden Cross to wait for), the strategy enters immediately at that bar's opening price. This avoids the unrealistic outcome of sitting in cash for years waiting for a cross that already happened.
All strategies are compared against a Buy & Hold baseline that starts at the close of the first in-range bar. If a position is open at the last bar, its equity is marked-to-market so every strategy is compared on equal terms — fully invested vs. partially invested at the cutoff.
Features
5 configurable EMAs — defaults 9 / 21 / 50 / 100 / 200, fully editable
Golden/Death Cross strategy — uses independent fast/slow EMA inputs (default 50 / 200)
Performance table showing Return %, delta vs. Buy & Hold, and Outperform / Underperform status per strategy
Flexible backtest window — X weeks, X years, or full chart lifetime
On-chart GC / DC markers with optional subtle background tint on cross bars
Built-in alerts for both Golden Cross and Death Cross events
Fully customizable table — 9 position options, 6 text sizes, all colors exposed as inputs
Soft, light color palette designed not to dominate the chart
Optional EMA plotting (off by default to keep the chart clean)
How To Read The Table
ColumnMeaningStrategyThe rule being testedReturnTotal % return of the strategy over the chosen windowVs StockDifference between the strategy's return and Buy & HoldStatus▲ Outperform if the strategy beat Buy & Hold, ▼ Underperform if not
Green-tinted rows = strategy beat Buy & Hold
Red-tinted rows = strategy underperformed Buy & Hold
Cream row = the Buy & Hold baseline itself
How To Use
Add the indicator to any chart — works on stocks, ETFs, crypto, forex, any timeframe.
Choose your backtest window (e.g., 1 Year, 5 Years, or Lifetime).
Scan the table to see which strategy historically beat Buy & Hold on this asset.
Use the on-chart GC / DC labels to spot historical and live cross events. Right-click any marker → Add Alert to be notified on new crosses.
Tip: Test the same EMA lengths across daily and weekly timeframes and across different assets. You'll usually find that what works on a steady index like SPY does not work on a volatile single stock, and vice versa. That's the entire point of the table — to make those differences visible instead of assumed.
Key Inputs
EMA 1–5: Lengths for the 5 single-EMA strategies
Show EMAs: Plot EMAs on chart (off by default)
Use Lifetime Performance: Backtest from the very first bar instead of a fixed window
Performance Timeframe Type / Value: Weeks or Years lookback
Crosses group: Toggle GC/DC display, set fast/slow EMA lengths, customize colors
Table Style group: Position, text size, background and text colors
Notes & Limitations
All strategies are long-only — no shorts, no leverage, no stops, no commissions, no slippage. This is a clean rule-based comparison, not a turnkey trading system. Live results will differ.
Entries and exits use close prices, except for the GC/DC strategy's first-bar entry when already in a golden state, which uses open.
Open positions at the last bar are marked-to-market so the comparison vs. Buy & Hold is apples-to-apples.
Past performance is not indicative of future results. Use this as a research and screening tool.
The GC/DC strategy uses separate EMA lengths from the 5 table EMAs by design, so you can run 9/21/50/100/200 in the table while still testing the classic 50/200 cross.
Alerts Available
Golden Cross: Fast EMA crossed above Slow EMA
Death Cross: Fast EMA crossed below Slow EMA
If you find this useful, a boost is appreciated. Suggestions and feedback welcome in the comments.
Open-source — feel free to study, fork, and adapt. Indicateur

Indicateur

VWAP Control Shift Map [AGPro Series]VWAP Control Shift Map
🧠 Core Idea
Has VWAP control shifted from mean reversion to directional acceptance?
📌 Overview / What it does
VWAP Control Shift Map is a VWAP control and acceptance visualization tool built to identify when price is balanced around value, accepted above control, accepted below control, or rejected back into the VWAP band.
The script builds a rolling volume-weighted control line, maps a VWAP control band, labels acceptance and rejection events, and summarizes the current VWAP state in a compact AG Pro panel.
This script does not predict future price direction, automate trades, or provide guaranteed buy/sell signals. It is a structured decision-support map for VWAP control, acceptance quality, mean-reversion risk, and shift context.
🎯 Purpose & Design Philosophy
VWAP is one of the most watched value references across intraday and swing trading contexts.
The problem is that price can cross VWAP many times without meaningful control transfer. This script was built to separate casual VWAP interaction from stronger acceptance, rejection, and reversion behavior.
The design philosophy is to make VWAP context visually readable: where control sits, which side is accepted, whether reversion risk is rising, and whether the shift has quality.
⚡ Why This Script Is Different
Most VWAP tools plot a line, add bands, and leave interpretation entirely to the user.
This script does NOT simply mark every VWAP touch as important and does NOT treat every cross as a trend signal.
Instead, it frames VWAP as a control zone: acceptance above, acceptance below, rejection back into value, and mean-reversion risk are all organized into one visual map.
⚙️ Methodology
1. VWAP Control Detection
The script calculates a rolling volume-weighted control line using price and volume over the selected control window.
2. Control Band Mapping
It builds a volatility-adjusted band around VWAP to represent the current value-control area.
3. Acceptance Evaluation
Consecutive closes outside the band are used to identify directional acceptance.
4. Rejection Evaluation
If price returns into the band after a shift, the script marks VWAP rejection behavior.
5. Visual Output
The chart displays the VWAP control line, bordered control zone, centered band label, event labels, right-side state tags, and AG Pro panel.
🗺️ How to Read the Chart
The VWAP control line represents the rolling volume-weighted value reference.
The control band represents the active VWAP acceptance area.
Labels mark acceptance, rejection, and mean-reversion events.
Right-side tags show the current control state and shift quality.
The panel summarizes VWAP control, acceptance state, control side, reversion risk, shift quality, control band, and next context.
🚦 Signals & States
• VWAP BALANCE → price has not established a clear accepted side
• ACCEPT ABOVE → price has accepted above the VWAP control band
• ACCEPT BELOW → price has accepted below the VWAP control band
• VWAP REJECTION → a control shift returned back into the band
• REVERSION RISK → price is back inside the band after a directional control state
🔔 Alerts Logic
VWAP Control Shift Up alert triggers when price accepts above the VWAP control band.
VWAP Control Shift Down alert triggers when price accepts below the VWAP control band.
VWAP Rejection alert triggers when price returns back into the band after a control shift.
Alerts are attention markers. They are not trade instructions.
🧩 Confluence Logic
The context becomes stronger when acceptance direction, VWAP slope, distance from VWAP, and candle body pressure align.
The context becomes weaker when price quickly returns into the control band after an attempted shift.
📊 When to Use
• VWAP-based intraday analysis
• Swing charts where volume-weighted value remains relevant
• Mean-reversion versus directional acceptance decisions
• Markets with liquid volume and clean price structure
• Trend continuation or failed acceptance review
⚠️ When NOT to Use
• Very illiquid symbols
• Markets with unreliable volume
• Extremely noisy low-timeframe charts
• News shock environments where VWAP control changes abruptly
• Any context where a single indicator is being used without broader structure
🎛️ Key Inputs
• VWAP Control Length → controls the rolling volume-weighted control window
• Band Volatility Length → controls how the band width is calculated
• Control Band Multiplier → adjusts VWAP control band width
• Acceptance Bars → defines how many closes are needed for acceptance
• Rejection Window → controls failed-shift timing
• Visual settings → control the panel, zone, labels, font sizes, and projection
🖥️ Interface & Visual Design
The interface is designed for clean, premium chart reading.
The VWAP band uses visible four-edge zone boundaries so the control area remains clear in both editor and published TradingView views.
The panel uses the AG Pro merged blue header standard and keeps the current context readable without covering the main chart.
🧪 Practical Usage Workflow
1. Read the panel state.
2. Check whether price is inside, above, or below the VWAP control band.
3. Review acceptance or rejection labels.
4. Compare shift quality with reversion risk.
5. Use broader market structure before making any decision.
🔍 Interpretation Guidelines
VWAP control is not a prediction.
Acceptance shows where price has spent enough time outside the control band to suggest directional control.
Rejection shows that the attempted control shift returned back toward value.
Mean-reversion risk increases when price moves back into the VWAP control area after directional acceptance.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an auto-trading system.
It does not guarantee profitable trades.
It does not replace risk management or independent analysis.
⚠️ Limitations & Transparency
VWAP behavior can vary by timeframe, market session, liquidity, and volume quality.
Rolling VWAP control may differ from exchange-session VWAP or anchored VWAP tools.
Extreme volatility can temporarily reduce the usefulness of control-band interpretation.
Outputs should always be interpreted within broader market context.
🧠 Market Context Notes
VWAP often works as a value reference, but value can shift when acceptance becomes persistent.
A clean control shift is stronger when price accepts outside the band while VWAP slope supports the move.
A weak shift often returns back into the band and becomes a rejection or mean-reversion context.
🧾 Use Case Examples
When price accepts above the VWAP control band with strong shift quality, the chart may be showing directional control above value.
When price accepts below the band and VWAP turns down, the control context may favor downside acceptance.
When price quickly returns into the band after acceptance, VWAP rejection risk becomes more important.
🧱 System Philosophy
AGPro Series tools are built to convert complex market behavior into visual decision maps.
The goal is not certainty. The goal is structured context, cleaner interpretation, and better chart discipline.
🔐 Non-Promise Statement
No script can know the future.
No signal is certain.
No visual state should be treated as a guaranteed outcome.
📉 Risk Disclosure
Trading involves risk.
Markets can move unexpectedly.
Users are responsible for their own decisions, risk management, and trade execution.
This script does not provide financial advice.
📚 Educational Note
This tool is intended for educational and analytical use. It can help traders study VWAP control, acceptance shifts, rejection behavior, and mean-reversion risk.
Indicateur

Pymander's MA SuitePymander's MA Suite is a versatile and all-in-one toolkit designed to give you total control over your trend analysis. Whether you’re a scalper looking for quick crossovers or a swing trader tracking long-term trends, this suite is built to be the only moving average indicator you’ll ever need.
What makes it unique?
Unlike standard MA ribbons that lock you into one type of calculation, EZ MA Suite gives you 5 fully independent slots. You can mix and match different lengths, sources, and—most importantly—12 different MA types in a single indicator. We’ve also cleaned up the visuals with "premium" signal placement and modern icons so your chart stays professional and clutter-free.
The Powerhouse MA Selection
You have access to a massive library of moving averages to fit any strategy:
The Classics: SMA, EMA, WMA, RMA, VWMA.
The Smooth & Fast: HMA (Hull), ALMA (Arnaud Legoux), and LSMA (Least Squares).
The Lag-Killers: DEMA (Double), TEMA (Triple), and ZLEMA (Zero Lag).
The Adaptive: KAMA (Kaufman), which adjusts itself based on market noise!
Stay on the Right Side of the Move
We’ve integrated a smart Buy/Sell Signal engine based on crossovers. You simply pick which of your 5 MAs is the "Fast" one and which is the "Slow" one.
But here’s the game-changer: The Trend Filter.
To help you avoid "choppy" fakeouts, you can enable a trend filter using a third MA (like a 200 SMA). When active, the suite will only show Buy signals if you're in an uptrend and Sell signals if you're in a downtrend. It’s all about keeping you aligned with the "big money" flow!
💬 We want to hear from you!
I built this to make our trading lives easier, but I’d love to know how you’re using it. Do you have a favorite MA combination? Is there a specific feature you’d like to see next? Drop your feedback and let’s keep improving this suite together!
Wishing you all lots of luck and many, many green days!!
— Pymander Indicateur

Adaptive Momentum Velocity Ribbon🔶 OVERVIEW
Risk management is the backbone of successful trading, but static trailing stops often fail to account for the "momentum" of a move. The Kinetic Trailing Stop & Targets is an adaptive volatility-based system designed to breathe with the market.
Unlike standard ATR trailing stops that move at a fixed distance, this indicator uses a "kinetic" engine. It calculates the relationship between price momentum and current volatility to determine how aggressively the stop should follow price. When momentum is high, the stop "tightens" to protect profits; during quiet periods, it expands to avoid being "stopped out" by minor noise.
🔶 THE KINETIC ENGINE: HOW IT WORKS
The indicator relies on a multi-layered calculation to determine the stop-loss placement:
Dynamic Volatility Ratio: The tool tracks the current ATR relative to its 50-bar high. This creates a "Volatility Ratio" that dictates the width of the buffer.
Momentum-Responsive Stepping: The stop doesn't just trail; it "steps." If the price makes a significant move (measured by a Momentum Score), the stop reacts kinetically, jumping closer to price to lock in gains.
The Guard Distance: To prevent the stop from becoming too tight and causing "premature exits," a minimum Guard Distance is maintained, ensuring price always has a statistically significant "air gap" to fluctuate within.
🔶 AUTOMATED TARGET MILESTONES
A standout feature of this tool is the Target Level System . The moment a trend flips (indicated by the diamond shapes), the indicator marks that price as the "Trend Origin."
Fixed Percentage Scaling: The indicator projects horizontal milestones (e.g., +2%, +4%, +6%) from the origin point.
Historical Milestone Logging: When price hits a target, a dashed line and label are permanently fixed to the chart, allowing you to see exactly where profit-taking opportunities occurred.
Active Target Tracking: The dashboard displays the next upcoming target and exactly what percentage "distance" remains until it is hit.
🔶 VISUAL FEATURES
Trend-Colored Candles: The entire chart's aesthetic shifts based on the trend. Bullish trends are painted in teal/green, while bearish trends shift to pink/red.
Flip Diamonds: High-visibility markers appear the moment a trend reversal is confirmed, signaling a shift in the stop-loss orientation.
Dynamic Cloud Fill: A gradient fill between the price and the stop line provides a visual representation of the "risk zone."
🔶 INDICATOR SETTINGS
ATR Smoothing Length: Adjusts the lookback for volatility. Longer lengths result in a smoother, slower-moving stop.
Sensitivity: Controls the "Kinetic" response. Higher sensitivity makes the stop jump more aggressively during momentum spikes.
Band Multiplier & Guard Distance: These two settings define the "outer" and "inner" limits of your stop-loss width.
Level Spacing (%): Set the distance between your target milestones (e.g., set to 1.0 for every 1% move).
🔶 TRADING UTILITY
Trend Following: Use the Kinetic Stop to ride long-term trends without getting shaken out by volatility spikes.
Scaling Out: Use the automated Target Levels as objective signals to scale out of a position (e.g., close 25% of the trade at each milestone).
Volatility Filter: By observing the distance between the price and the stop, you can visualize "volatility expansion"—if the gap is widening, the market is becoming more chaotic.
🔶 CONCLUSION
The Kinetic Trailing Stop & Targets is a professional-grade risk management suite. By combining momentum-aware trailing logic with fixed percentage targets, it provides traders with a clear, objective roadmap for both staying in a trade and knowing exactly when to exit. Indicateur

Hull MA Trend Zones [AGPro Series]Hull MA Trend Zones
📌 Overview
Hull MA Trend Zones is a premium HMA trend overlay built for traders who want a cleaner way to read Hull Moving Average direction, slope quality, and pullback behavior.
The script is centered on one clear idea: a strong HMA trend should not only move above or below a moving average; it should show measurable slope, orderly ribbon structure, and controlled pullback behavior around the active HMA path.
Instead of presenting a crowded moving average wall, the script uses a focused three-line HMA structure, a subtle pullback band, and concept-native trend zones that are tied directly to the active Hull MA state.
⚙️ How It Works
The engine calculates a fast HMA, an anchor HMA, and a slow HMA.
The anchor HMA is the main decision line. Its slope is normalized with ATR so the script can judge whether the current Hull MA movement is weak, transitional, or directional.
The ribbon structure then checks whether the fast, anchor, and slow HMA lines are aligned. This separates clean trend movement from mixed or unstable movement.
Finally, the pullback layer evaluates whether price is extending away from the HMA, testing the HMA zone, holding the HMA zone, rejecting from the HMA zone, or failing the active trend path.
🧭 What The Script Shows
- HMA ribbon for clean trend direction.
- ATR-based HMA pullback band around the anchor HMA.
- Rectangular HMA slope zones created from active directional states.
- Confirmed, quality-gated Bull Turn and Bear Turn labels.
- Optional Hold and Reject labels for pullback events.
- A compact AGPro panel with HMA State, Slope Strength, Pullback Status, and Quality Score.
📊 AGPro Panel
The panel is designed for fast scanning without taking over the chart.
HMA State shows whether the active read is bullish, bearish, transitional, or neutral.
Slope Strength converts the anchor HMA slope into a clear percentage-style reading.
Pullback Status explains whether price is extending, testing, holding, rejecting, or failing the HMA trend zone.
Quality Score combines slope strength, ribbon alignment, and pullback behavior into a single 0-100 reading.
🎯 What Makes It Different
Hull MA Trend Zones is not a generic moving average ribbon, not a ribbon compression map, and not a broad support/resistance tool.
Its focus is narrower and more practical: HMA slope, HMA trend-zone behavior, and pullback-to-HMA quality.
The rectangular zones are not drawn as generic support or resistance. They are HMA slope zones created from the active trend state and the ATR-sized HMA pullback area. This keeps the script visually useful while avoiding overlap with broader zone, corridor, or compression-style indicators.
The default visual design is intentionally restrained. Pullback labels are optional, turn labels require confirmation and a minimum quality score, and old zones are capped so the chart keeps a cleaner premium look on both intraday and higher-timeframe charts.
🔧 Key Settings
Fast HMA Length controls the responsive side of the ribbon.
Anchor HMA Length controls the main trend path, slope state, pullback band, and panel logic.
Slow HMA Length helps identify whether the HMA ribbon is aligned or still transitional.
Slope Lookback and Trend Slope Threshold control how selective the HMA state engine is.
Zone Width ATR controls the height of the HMA pullback band and slope-zone area.
Zone Forward Bars controls how far the active slope zone projects while the same trend state remains valid.
Turn Confirmation and Minimum Turn Label Score control how selective the default turn labels are.
Label Cooldown Bars, Max Visible Labels, and Label Offset ATR keep chart density suitable for publication-quality screenshots.
Panel Location, Panel Theme, Label Font Size, and Panel Font Size are adjustable.
✅ Suggested Use
Use Hull MA Trend Zones to study trend continuation, Hull MA pullback quality, HMA slope transitions, and cleaner moving-average trend behavior.
It is especially useful when you want an HMA-focused overlay that remains readable on active charts and avoids the clutter of large multi-average systems.
The script is designed as a public-free AGPro Series tool with a clean visual identity, a focused HMA concept, and a TradingView-safe publication structure. Indicateur

Indicateur

Bull/Bear Trend Ribbon | 6-Layer Smooth Trend Tracking System描述 / Description
是什么 / What
本指标基于 复合平滑均线 + 线性回归预测 构建了一套多时间框架趋势跟踪系统。
它计算了从短期到中长期的 7 条复合均线(A1–A7),每条均线融合了 3 组不同周期的 EMA,再对每条均线进行 6 期线性回归(linreg) 得到最终曲线(VAR1–VAR7)。
代码中默认绘制 VAR1–VAR6 共 6 条曲线,形成一条“趋势丝带”。每条曲线根据 当前值是否大于前一根 K 线的值 动态变色:
🔴 粉色(#FF00FF):上升方向
🟢 绿色(#00FF00):下降方向
This indicator builds a multi-timeframe trend tracking system based on composite smoothed moving averages + linear regression.
It calculates 7 composite MAs (A1–A7) from short to medium-long term. Each composite MA averages three EMAs of different lengths, then applies a 6-period linear regression (linreg) to produce the final curves (VAR1–VAR7).
By default, VAR1 through VAR6 are plotted, forming a “trend ribbon”. Each curve changes color dynamically based on whether its current value is greater than the previous bar’s value:
🔴 Pink (#FF00FF) – rising direction
🟢 Green (#00FF00) – falling direction
为什么 / Why
传统单根均线易产生滞后和噪音,而多周期复合均线能平滑价格波动,同时保留不同时间维度的趋势信息。在此基础上叠加 线性回归,进一步滤除随机扰动,提前捕捉趋势的转折倾向。
通过 6 条曲线的排列顺序与颜色变化,你可以直观判断:
趋势强度:丝带发散且全部同色 → 强趋势
趋势衰竭:丝带收敛、颜色频繁交错 → 震荡或变盘前兆
多空力量对比:粉色曲线增多 vs 绿色曲线增多
A single moving average often suffers from lag and noise. Multi‑period composite MAs smooth price fluctuations while preserving trend information across different time dimensions. Adding linear regression further filters random noise and helps detect potential trend reversals earlier.
By observing the arrangement and color changes of the 6 curves, you can intuitively assess:
Trend strength – ribbon diverges and all curves share the same color → strong trend
Trend exhaustion – ribbon converges, colors frequently alternate → consolidation or reversal ahead
Bull/bear power balance – increasing number of pink curves vs. green curves
怎么用 / How to Use
直接加载:将脚本添加到图表(适用于任何品种和 K 线周期)。
观察丝带整体方向:
-多数曲线为粉色且向上发散 → 多头趋势
-多数曲线为绿色且向下发散 → 空头趋势
寻找入场时机:
-多头开仓:短期曲线(VAR1/VAR2)从绿色转粉色,并上穿长期曲线(VAR5/VAR6)
-空头开仓:短期曲线从粉色转绿色,并下穿长期曲线
离场/止损:当丝带开始频繁变色、曲线相互缠绕时,考虑平仓或收紧止损。
Add to chart – works on any symbol and timeframe.
Observe overall ribbon direction
Most curves pink and diverging upward → bullish trend
Most curves green and diverging downward → bearish trend
Entry signals
Long entry – short‑term curves (VAR1/VAR2) turn from green to pink and cross above long‑term curves (VAR5/VAR6)
Short entry – short‑term curves turn from pink to green and cross below long‑term curves
Exit / stop loss – consider closing or tightening stops when the ribbon changes color frequently and curves become entangled.
什么时候用 / When to Use
趋势行情(单边上涨或下跌)中效果最佳,丝带干净、信号明确。
大周期过滤:建议在日线或 4 小时图上判断主趋势,然后在 1 小时/15 分钟图上利用丝带的短线方向寻找顺势入场点。
避免在剧烈震荡或低波动市场中依赖丝带的颜色翻转信号,此时假信号较多。
Works best in trending markets (strong up or down) – the ribbon is clean and signals are clear.
Higher timeframe filter – use Daily or 4H to determine the main trend, then use the ribbon’s short‑term direction on 1H/15min for pullback entries in the trend direction.
Avoid relying solely on color‑flip signals in highly ranging or low‑volatility markets – false signals increase.
⚠️ 注意事项 / Caution
非买卖点直接提示:本指标不提供“买入/卖出”文字标签,需要交易者自行根据曲线交叉与颜色变化判断。
无未来函数:ta.linreg(source, length, 0) 中 offset=0 是不包含未来的经典实现,仅基于当前及历史值计算,无未来函数风险。
宝塔线未包含在此版本:标题中的“宝塔线”为本指标的原始设想,当前发布的版本仅含多空趋势丝带。
参数固定:均线周期与回归长度均为内设值,无法通过设置界面调整。如需自定义,请修改 Pine 脚本源码。
适用周期:建议 1 小时及以上周期信号更稳定;分钟周期上颜色切换可能过于频繁。
风险提示:指标仅为技术分析工具,不构成投资建议。请结合资金管理与风控策略使用。
No direct buy/sell labels – the indicator does not provide “BUY/SELL” signals. Traders must interpret crossovers and color changes themselves.
No lookahead bias – ta.linreg(source, length, 0) with offset=0 uses only current and historical data. No future function risk.
“Pagoda” not included in this version – the title originally mentioned “Pagoda lines”, but this release only includes the trend ribbon.
Fixed parameters – MA periods and regression length are hardcoded and cannot be changed via settings. To customize, edit the Pine script source.
Recommended timeframe – 1H or higher for more stable signals. Lower timeframes may produce excessive color flipping.
Risk disclosure – The indicator is a technical analysis tool only and does not constitute investment advice. Always use proper risk management.
Indicateur

EAB: Multi-Timeframe Moving AveragesEAB: Multi-Timeframe Moving Averages is a clean and customizable indicator designed to display key moving averages across multiple timeframes in a single chart.
It allows traders to visualize short, medium, and long-term trends using a consistent and structured framework, aligned with a professional trading workflow.
Features
Multi-timeframe support: Intraday, Daily, Weekly and Monthly
Fully customizable moving averages (type, length, source, color and visibility)
Label system displayed directly on the chart (e.g., EMA 10, MA 50)
Optional moving average cloud between key averages
Weekly moving average overlay on the daily chart for higher timeframe context
How to use
Enable or disable moving averages from each timeframe section.
Configure type (EMA, SMA, etc.) and length according to your strategy.
Use EMA 10 and EMA 20 for short-term trend direction.
Use MA 50 and MA 200 for structure and key support/resistance levels.
Combine multiple timeframes to confirm trend alignment.
Notes
Labels are displayed only on the last visible bar to keep the chart clean.
Each timeframe can be configured independently.
Moving average clouds can be enabled or disabled for better visual clarity. Indicateur

AG Pro Moving Average Ribbon Stress Meter [AGPro Series]AG Pro Moving Average Ribbon Stress Meter
Overview / What It Does
This indicator is designed to read the internal condition of a moving-average ribbon rather than treating the ribbon as a simple trend overlay. Instead of asking only whether the ribbon is bullish or bearish, it asks a different question: is the ribbon structurally calm, starting to load, becoming strained, or losing internal order.
The script builds a six-line moving-average ribbon, measures how those averages interact with each other, and converts that interaction into a stress framework. The result is a visual map that helps show whether the ribbon is organized, stretched, unstable, or resetting after stress.
In practical terms, the script is built to help users evaluate ribbon quality, internal synchronization, and the degree of structural pressure inside the moving-average stack. It is not intended to forecast future prices, call tops or bottoms, or replace broader market analysis. Its purpose is to organize what the ribbon is doing now and how stable or unstable that structure appears to be.
The chart output combines multiple layers: the ribbon itself, a central stress spine, edge bands, optional stress aura, event labels, and a compact status panel. Together, these elements aim to make the ribbon easier to interpret without requiring the user to manually inspect every moving average line on every bar.
Unique Edge
Many ribbon-style tools focus on directional bias, crossovers, or broad expansion and contraction. This script focuses on internal ribbon stress.
Its main distinction is that it does not treat all ribbon trends as equal. A ribbon can be rising while still carrying internal disagreement. A ribbon can also look compressed or visually clean while underlying alignment, slope behavior, width dynamics, or price stretch are beginning to deteriorate. This script is built to surface those conditions.
The goal is not to reduce the market to a single signal. The goal is to provide a structured visual read on whether the moving-average stack is operating in a calm state, a loaded state, a strained state, or a more unstable condition. That makes it more useful as a workflow tool than as a simple trend-colour overlay.
Another point of differentiation is presentation. The script uses a ribbon-focused visual design so that the user can read internal condition directly from the chart. Focus modes, theme presets, stress spine layering, and a compact panel are included to keep the display informative without turning the chart into a dense dashboard.
Methodology
The script evaluates ribbon condition through five stress components.
1) Order Stress
This measures whether the moving averages are stacked cleanly or whether their order is becoming mixed. Lower stress suggests cleaner structural order. Higher stress suggests more internal disorder.
2) Slope Dispersion Stress
This evaluates how consistently the moving averages are sloping together. When the ribbon lines are moving with similar directional agreement, synchronization is stronger. When their slopes diverge, internal stress rises.
3) Width Instability Stress
This tracks whether the ribbon width is behaving in a stable or unstable way. A ribbon can widen in an orderly way or in a more erratic way. This component attempts to distinguish between those conditions.
4) Curvature Stress
This evaluates bending in the ribbon core. Strong changes in ribbon curvature may indicate increasing internal pressure or transition.
5) Price Stretch Stress
This measures how far price is moving from the ribbon core relative to ribbon width and ATR-based normalization. This is not a directional claim. It is a structure-based distance measure.
These components are weighted and blended into a smoothed Stress Score. That score then feeds the state engine.
Primary states include Calm, Loaded, Strained, Critical, Fractured, and Recovery. The panel and visual styling use those states to summarize the ribbon condition at the current bar.
Signals & Alerts
This script is built around state transitions and structural events rather than buy/sell promises.
Depending on settings, users may see event labels and alerts such as:
Stress Build
Shows that stress has crossed into an early loading phase.
Strained
Shows that the ribbon has moved into a more stressed internal state.
Critical Load
Highlights a higher-pressure condition where instability has become more meaningful.
Ribbon Fracture
Marks a stronger structural failure condition when stress and ribbon order deterioration align.
Stress Reset
Shows that a previously elevated stress condition has cooled enough to register recovery.
Order Restored
Highlights improvement in ribbon order after disorder had been present.
These events are not trade instructions. They are context markers intended to help users track shifts in ribbon condition. Alerts should be interpreted together with market structure, timeframe context, volatility, and personal risk management.
Key Inputs
Source and MA Type
The ribbon can be built from different moving-average types and data sources.
Ribbon Lengths
Users can define the six ribbon lengths to fit their preferred structure and timeframe.
Stress Engine Inputs
ATR length, slope lookback, width lookback, curvature lookback, smoothing, and component references allow users to calibrate how sensitive the stress model should be.
Weights
The script includes separate weights for order stress, slope dispersion, width instability, curvature stress, and price stretch stress.
Thresholds
Loaded, Strained, Critical, and Fracture thresholds can be adjusted for tighter or looser state transitions.
Theme Presets and Focus Mode
Theme presets and focus modes allow the ribbon to be displayed in different visual styles while preserving the same logic.
Events and Panel
Users can control label density, label spacing, marker visibility, and panel position.
Limitations & Transparency
This script is an interpretation framework built around moving-average relationships. It does not know future price movement, and it does not claim certainty. Like any model built on smoothed market data, it will react more slowly in some environments and may produce fewer useful transitions in others.
Different assets and timeframes can produce different ribbon personalities. A threshold or weight set that feels balanced on one market may feel too sensitive or too quiet on another. Users should expect to adapt settings if they move between instruments with very different volatility or trend behavior.
The stress model is also deliberately selective. It does not try to label every fluctuation or classify every candle. Its purpose is to organize ribbon condition, not to describe every possible market state.
This indicator should also not be confused with a complete trading plan. It does not define entries, exits, position sizing, or account risk. It is best used as a structural context tool inside a broader workflow.
Risk Disclosure
This script is for chart analysis and educational use. It is not financial advice, investment advice, or a promise of outcome.
No indicator can guarantee performance, remove risk, or eliminate false readings. Market conditions change, correlations shift, and trend behavior can weaken or reverse without warning. Any decision taken from this script should be made within a broader framework that includes price structure, liquidity, volatility, timeframe alignment, and risk control.
Users are responsible for testing settings, understanding the limitations of moving-average tools, and deciding whether the information produced by the script fits their own process.
Indicateur

AG Pro KAMA Efficiency Zones [AGPro Series]AG Pro KAMA Efficiency Zones
Overview
KAMA stands for Kaufman’s Adaptive Moving Average.
AG Pro KAMA Efficiency Zones is built around KAMA not as a simple trend-following line, but as an adaptive market reference for evaluating how efficiently price is moving. Instead of focusing only on direction, the script is designed to classify the quality of directional travel and separate cleaner movement from noisier, lower-clarity conditions.
The core idea is straightforward: markets do not move with the same quality all the time. Some phases show relatively efficient directional travel where price stays organized around an adaptive path. Other phases become mixed, unstable, or reversion-prone, where direction weakens and noise becomes more dominant. This script is designed to map those changes visually through adaptive KAMA-based zones, state labels, and a compact panel that summarizes the current condition.
This makes the tool structurally different from a basic moving average overlay. The objective is not to present KAMA as a one-line signal source. The objective is to use KAMA as the center of a state engine that helps users distinguish efficient trend phases from transitional or noisy environments.
What this script does
AG Pro KAMA Efficiency Zones evaluates price behavior around a Kaufman’s Adaptive Moving Average and organizes that behavior into visual market states. It does this by combining adaptive smoothing, slope behavior, distance from KAMA, and persistence around the KAMA path.
The result is a chart framework that can help answer questions such as:
• Is price moving in an efficient bullish or bearish path?
• Is the market entering a mixed transition phase?
• Has movement quality deteriorated into a noisier reversion-prone environment?
• Is the adaptive path becoming stronger, weaker, or less stable?
By turning those questions into zones and state-based chart feedback, the script aims to improve context rather than replace judgment.
Unique edge
The distinguishing feature of this script is that it does not treat KAMA as a standard moving average. Instead, it uses KAMA as the center of a layered efficiency model.
That model focuses on the quality of movement, not just the existence of movement.
Many tools emphasize momentum, volatility, volume pressure, or overbought/oversold conditions. This script is designed for a different purpose. It is a movement-quality map. It attempts to show whether price is traveling in a relatively efficient path or whether that path is degrading into a noisier condition where directional clarity may be weaker.
This means the script is less about predicting a move and more about classifying the environment in which a move is taking place.
How it works
The script begins with KAMA, or Kaufman’s Adaptive Moving Average. KAMA is useful because it adapts its responsiveness according to market behavior. In cleaner directional phases it can respond more quickly, while in noisier phases it can become more conservative. That makes it a practical centerline for an efficiency-based state model.
On top of KAMA, the script evaluates several components:
1. Efficiency behavior
The script measures how directly price is moving relative to its recent path. This helps estimate whether price action is acting efficiently or becoming more erratic.
2. KAMA slope behavior
The slope of KAMA is normalized so that directional angle can be evaluated in a more consistent way. Stronger and more persistent slope behavior supports higher-quality trend classifications.
3. Price-to-KAMA relationship
Price position around KAMA helps determine whether movement is aligned with the adaptive path or drifting around it without clear structure.
4. Persistence
The script also looks at how consistently price remains on one side of KAMA. That persistence can help distinguish a more stable move from a weaker and less durable one.
These components are blended into a composite efficiency model that drives the active state and the corresponding visual zone.
States and zones
The script classifies market behavior into four main states:
Efficient Bull Trend
This state reflects a comparatively organized bullish environment where price and adaptive slope are aligned in a cleaner upward path.
Efficient Bear Trend
This state reflects a comparatively organized bearish environment where price and adaptive slope are aligned in a cleaner downward path.
Transition
This is a mixed condition. Direction may be weakening, changing, or failing to achieve the quality required for an efficient trend classification.
Noise / Reversion
This state reflects lower movement quality, weaker slope behavior, or a more unstable relationship between price and the adaptive path.
The visual zone structure is designed to reinforce those classifications on the chart. Instead of using only one line, the script builds layered KAMA-centered bands so the user can read not only direction, but also how structured or fragile the current condition may be.
How to read the chart
The KAMA line is the adaptive spine of the script.
The outer and inner bands represent zone structure around that adaptive path. In stronger trend states, the script increases the visual emphasis of the KAMA path and its supporting zone layers. In weaker or more mixed conditions, the script softens those visuals and allows the chart to communicate reduced clarity.
State labels appear when the script confirms a meaningful shift in condition. These labels are intended to highlight a change in market state, not to promise a trade outcome.
The on-chart panel summarizes the active reading using fields such as State, Efficiency, Score Band, Adaptive Bias, Active Zone, and Stability. This gives the user a compact interpretation layer without requiring every decision to be made directly from raw chart inspection.
Key inputs
KAMA Efficiency Length
Controls the lookback used in the KAMA efficiency logic. Lower values react faster. Higher values smooth more noise.
KAMA Fast Response and KAMA Slow Response
Define the adaptive responsiveness range of the KAMA engine.
ATR Length
Used to normalize slope and distance so the tool behaves more consistently across different symbols and volatility conditions.
KAMA Slope Lookback
Controls how the script measures directional slope over time.
Persistence Length
Influences how much consistency price must show around KAMA before a move is treated as more structured.
Efficient Trend Threshold and Noise Threshold
These thresholds help determine when the model classifies a move as higher quality or lower quality.
Zone Band ATR Width
Adjusts the width of the adaptive visual zone.
State Hold Bars
Helps reduce rapid state flipping by requiring a condition to persist before the active state changes.
Panel Font Size and Label Size
Allow visual customization for different chart layouts and monitor sizes.
Alerts
The script includes state-oriented alerts intended to notify the user when market condition changes. These are designed around state transitions and movement-quality shifts rather than promotional “buy now” style messaging.
Examples include bullish and bearish efficiency shifts, transition detection, noise-zone detection, efficiency recovery, efficiency breakdown, and trend strengthening.
Alerts should be interpreted as contextual information. They are intended to support review and analysis, not to function as a standalone decision system.
What this script is not
This script is not a guarantee engine.
It does not predict future price with certainty.
It does not eliminate risk.
It is not a substitute for broader market structure analysis, execution planning, or risk management.
It should not be treated as a self-sufficient entry/exit system without additional confirmation and user judgment.
Limitations and transparency
All adaptive models are sensitive to parameter choices. Changing responsiveness, thresholds, smoothing, or persistence settings can materially affect the way states appear on the chart.
Because the script is state-based, some shifts will naturally occur after the earliest turning point in price. That is part of the tradeoff involved in using confirmation and persistence to reduce noise.
In highly erratic or news-driven conditions, classification can also become less stable. During those periods, transition or noise-oriented readings may occur more often, and users should interpret the visual output in that context.
The script is best viewed as an analytical framework for movement quality and adaptive context, not as a promise of directional success.
Practical use cases
Users may find the script useful for:
• separating cleaner trend phases from mixed or unstable phases
• filtering chart environments before applying another workflow
• evaluating whether direction is gaining or losing efficiency
• adding adaptive context to discretionary analysis
• comparing how different symbols behave around a KAMA-centered efficiency structure
Risk disclosure
This script is for analytical and educational use. It does not provide financial advice, investment advice, or guaranteed outcomes. Market conditions can change quickly, and any indicator can produce false, delayed, or incomplete signals. Users remain responsible for their own decisions, validation process, and risk management.
In short, AG Pro KAMA Efficiency Zones is designed to help read the quality of movement, not just the direction of movement. It uses KAMA as an adaptive reference point and converts that reference into a structured zone and state model so users can assess whether price behavior appears efficient, transitional, or noisy.
Indicateur
